knotes Library API Documentation

knoteconfigdlg.h

00001 /*******************************************************************
00002  KNotes -- Notes for the KDE project
00003 
00004  Copyright (c) 1997-2001, 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., 675 Mass Ave, Cambridge, MA 02139, 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 
00061 private:
00062     void storeSettings();
00063 
00064     bool _global;
00065 
00066     KConfig *_config;
00067 
00068     KColorButton *_fgColor;
00069     KColorButton *_bgColor;
00070 
00071     KIntNumInput *_widthEdit;
00072     KIntNumInput *_heightEdit;
00073     KIntNumInput *_tabEdit;
00074 
00075     QCheckBox   *_autoIndentSwitch;
00076     QCheckBox   *_richTextSwitch;
00077     KLineEdit   *_mailEdit;
00078     QPushButton *_titleFont;
00079     QPushButton *_textFont;
00080 };
00081 
00082 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:40:19 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001