KDevelop API Documentation

toolsconfigwidget.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2002 by Bernd Gehrmann                                  *
00003  *   bernd@kdevelop.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  ***************************************************************************/
00011 
00012 #ifndef _TOOLSCONFIGWIDGET_H_
00013 #define _TOOLSCONFIGWIDGET_H_
00014 
00015 #include "toolsconfigwidgetbase.h"
00016 #include "tools_part.h"
00017 #include <qdict.h>
00018 
00019 
00020 struct ToolsConfigEntry;
00021 
00022 
00023 class ToolsConfigWidget : public ToolsConfigWidgetBase
00024 {
00025     Q_OBJECT
00026     
00027 public:
00028     ToolsConfigWidget(QWidget *parent=0, const char *name=0);
00029     ~ToolsConfigWidget();
00030 
00031 public slots:
00032     void accept();
00033 
00034 private:
00035     virtual void toolsmenuaddClicked();
00036     virtual void toolsmenuremoveClicked();
00037     virtual void filecontextaddClicked();
00038     virtual void filecontextremoveClicked();
00039     virtual void dircontextaddClicked();
00040     virtual void dircontextremoveClicked();
00041 
00042     virtual bool eventFilter(QObject *o, QEvent *e);
00043 
00044     void readGroup(const QString &group, QDict<ToolsConfigEntry> *entryDict);
00045     void storeGroup(const QString &group, const QDict<ToolsConfigEntry> &entryDict);
00046     void fillListBox(QListBox *lb, const QDict<ToolsConfigEntry> &entryDict);
00047     bool addEntry(ToolsConfigEntry *entry, QDict<ToolsConfigEntry> *entryDict);
00048 
00049     void readConfig();
00050     void storeConfig();
00051     void updateListBoxes();
00052     
00053     QDict<ToolsConfigEntry> m_toolsmenuEntries;
00054     QDict<ToolsConfigEntry> m_filecontextEntries;
00055     QDict<ToolsConfigEntry> m_dircontextEntries;
00056     
00057     ToolsPart *m_part;
00058 };
00059 
00060 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:58 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003