kate Library API Documentation

kateconfigdialog.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
00003    Copyright (C) 2002 Joseph Wenninger <jowenn@kde.org>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License version 2 as published by the Free Software Foundation.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017    Boston, MA 02111-1307, USA.
00018 */
00019 
00020 #ifndef __kate_configdialog_h__
00021 #define __kate_configdialog_h__
00022 
00023 #include "katemain.h"
00024 
00025 #include "../interfaces/plugin.h"
00026 #include "../interfaces/pluginconfiginterface.h"
00027 #include "../interfaces/pluginconfiginterfaceextension.h"
00028 
00029 #include <kate/document.h>
00030 #include <ktexteditor/configinterfaceextension.h>
00031 
00032 #include <kdialogbase.h>
00033 
00034 struct PluginPageListItem
00035 {
00036   Kate::Plugin *plugin;
00037   Kate::PluginConfigPage *page;
00038 };
00039 
00040 class KateConfigDialog : public KDialogBase
00041 {
00042   Q_OBJECT
00043 
00044   public:
00045     KateConfigDialog (KateMainWindow *parent, Kate::View *view);
00046     ~KateConfigDialog ();
00047 
00048   public:
00049     void addPluginPage (Kate::Plugin *plugin);
00050     void removePluginPage (Kate::Plugin *plugin);
00051 
00052   protected slots:
00053     void slotOk();
00054     void slotChanged();
00055 
00056   private:
00057     KateDocManager *docManager;
00058     KateViewManager *viewManager;
00059     KatePluginManager *pluginManager;
00060     KateMainWindow *mainWindow;
00061 
00062     Kate::View* v;
00063     bool dataChanged;
00064 
00065     class QCheckBox* cb_reopenProjects;
00066     class QCheckBox* cb_reopenFiles;
00067     class QCheckBox* cb_restoreVC;
00068     class QCheckBox *cb_singleInstance;
00069     class QCheckBox *cb_fullPath;
00070     class QCheckBox *cb_syncKonsole;
00071     class QCheckBox *cb_sortFiles;
00072     class QSpinBox *sb_numRecentFiles;
00073     class QCheckBox *cb_modNotifications;
00074     class QCheckBox *cb_saveMetaInfos;
00075     class QSpinBox *sb_daysMetaInfos;
00076     class QComboBox *combo_guiMode;
00077     Kate::ConfigPage *fileSelConfigPage;
00078     Kate::ConfigPage *configExternalToolsPage;
00079     QPtrList<PluginPageListItem> pluginPages;
00080     QPtrList<KTextEditor::ConfigPage> editorPages;
00081 };
00082 
00083 #endif
KDE Logo
This file is part of the documentation for kate Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Sep 8 02:43:13 2005 by doxygen 1.3.6 written by Dimitri van Heesch, © 1997-2003