knotes Library API Documentation

knoteconfigdlg.h

00001 /*******************************************************************
00002  KNotes -- Notes for the KDE project
00003 
00004  Copyright (c) 1997-2003, The KNotes Developers
00005 
00006  This program is free software; you can redistribute it and/or
00007  modify it under the terms of the GNU General Public License
00008  as published by the Free Software Foundation; either version 2
00009  of the License, or (at your option) any later version.
00010 
00011  This program is distributed in the hope that it will be useful,
00012  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  GNU General Public License for more details.
00015 
00016  You should have received a copy of the GNU General Public License
00017  along with this program; if not, write to the Free Software
00018  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00019 *******************************************************************/
00020 
00021 #ifndef KNOTECONFIGDLG_H
00022 #define KNOTECONFIGDLG_H
00023 
00024 #include <kdialogbase.h>
00025 
00026 class QString;
00027 class QColor;
00028 class QCheckBox;
00029 class QPushButton;
00030 
00031 class KConfig;
00032 class KColorButton;
00033 class KLineEdit;
00034 class KIntNumInput;
00035 
00036 
00037 class KNoteConfigDlg : public KDialogBase
00038 {
00039     Q_OBJECT
00040 public:
00041     KNoteConfigDlg( const QString &configfile, const QString &title,
00042                     bool global, QWidget *parent=0, const char *name=0 );
00043     ~KNoteConfigDlg();
00044 
00045     void makeDisplayPage();
00046     void makeEditorPage();
00047     void makeActionsPage();
00048 
00049 protected slots:
00050     virtual void slotOk();
00051     virtual void slotApply();
00052 
00053     void slotChangeTitleFont();
00054     void slotChangeTextFont();
00055     void slotFGColor( const QColor& );
00056     void slotBGColor( const QColor& );
00057 
00058 signals:
00059     void updateConfig();
00060     void skipTaskbar( bool skip );
00061 
00062 private:
00063     void storeSettings();
00064 
00065     bool m_global;
00066 
00067     KConfig *m_config;
00068 
00069     KColorButton *m_fgColor;
00070     KColorButton *m_bgColor;
00071     KIntNumInput *m_widthEdit;
00072     KIntNumInput *m_heightEdit;
00073     QCheckBox    *m_skipTaskbarSwitch;
00074     
00075     KIntNumInput *m_tabEdit;
00076     QCheckBox    *m_autoIndentSwitch;
00077     QCheckBox    *m_richTextSwitch;
00078     QPushButton  *m_titleFont;
00079     QPushButton  *m_textFont;
00080 
00081     KLineEdit    *m_mailEdit;
00082 };
00083 
00084 #endif
KDE Logo
This file is part of the documentation for knotes Library Version 3.2.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Mar 6 17:18:05 2004 by doxygen 1.3.6-20040222 written by Dimitri van Heesch, © 1997-2003