• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Utility Library
 

KDevelop Utility Library

  • lib
  • util
configwidgetproxy.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 2004 Jens Dagerbo <jens.dagerbo@swipnet.se>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef _CONFIGWIDGETPROXY_H
21 #define _CONFIGWIDGETPROXY_H
22 
23 #include <tqobject.h>
24 #include <tqstring.h>
25 #include <tqmap.h>
26 
27 class KDevCore;
28 class KDialogBase;
29 
71 class ConfigWidgetProxy : public TQObject
72 {
73 Q_OBJECT
74 
75 
76 public:
79  ConfigWidgetProxy( KDevCore * core );
80  virtual ~ConfigWidgetProxy();
81 
88  void createGlobalConfigPage( TQString const & title, unsigned int pagenumber, TQString const & icon = "tdevelop" );
89 
96  void createProjectConfigPage( TQString const & title, unsigned int pagenumber, TQString const & icon = "tdevelop" );
97 
102  void removeConfigPage( int pagenumber );
103 
104 signals:
111  void insertConfigWidget( const KDialogBase * dlg, TQWidget * page, unsigned int pagenumber );
112 
113 private slots:
114  void slotConfigWidget( KDialogBase * );
115  void slotProjectConfigWidget( KDialogBase * );
116  void slotConfigWidgetDestroyed();
117  void slotAboutToShowPage( TQWidget * page );
118 
119 private:
120  typedef TQMap<unsigned int, TQPair<TQString,TQString> > TitleMap;
121  typedef TQMap<TQWidget*, int> PageMap;
122 
123  TitleMap _globalTitleMap;
124  TitleMap _projectTitleMap;
125  PageMap _pageMap;
126 };
127 
128 #endif
129 
130 // kate: space-indent off; indent-width 4; replace-tabs off; tab-width 4;
ConfigWidgetProxy::removeConfigPage
void removeConfigPage(int pagenumber)
Removes a config page from the proxy.
Definition: configwidgetproxy.cpp:54
ConfigWidgetProxy::createGlobalConfigPage
void createGlobalConfigPage(TQString const &title, unsigned int pagenumber, TQString const &icon="tdevelop")
Tells the proxy you want a page in the Global Settings.
Definition: configwidgetproxy.cpp:44
ConfigWidgetProxy::insertConfigWidget
void insertConfigWidget(const KDialogBase *dlg, TQWidget *page, unsigned int pagenumber)
The proxy emits this signal to notify the client that a specific config page has been requested...
ConfigWidgetProxy
This class can be used to implement demand-loading of config pages.
Definition: configwidgetproxy.h:71
ConfigWidgetProxy::createProjectConfigPage
void createProjectConfigPage(TQString const &title, unsigned int pagenumber, TQString const &icon="tdevelop")
Tells the proxy you want a page in the Project Settings.
Definition: configwidgetproxy.cpp:49
ConfigWidgetProxy::ConfigWidgetProxy
ConfigWidgetProxy(KDevCore *core)
Constructor.
Definition: configwidgetproxy.cpp:35

KDevelop Utility Library

Skip menu "KDevelop Utility Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

KDevelop Utility Library

Skip menu "KDevelop Utility Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Utility Library by doxygen 1.8.13
This website is maintained by Timothy Pearson.