• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdeui
 

kdeui

  • kdeui
kconfigdialog.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (C) 2003 Benjamin C Meyer (ben+kdelibs at meyerhome dot net)
4  * Copyright (C) 2003 Waldo Bastian <bastian@kde.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public License
17  * along with this library; see the file COPYING.LIB. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21 #ifndef KCONFIGDIALOG_H
22 #define KCONFIGDIALOG_H
23 
24 class KConfig;
25 class KConfigSkeleton;
26 class KConfigDialogManager;
27 #include <kdialogbase.h>
28 #include <tqasciidict.h>
29 
72 class KDEUI_EXPORT KConfigDialog : public KDialogBase {
73 Q_OBJECT
74 
75 signals:
79  void widgetModified();
80 
85  void settingsChanged();
86 
95  void settingsChanged(const char *dialogName);
96 
97 public:
121  // KDE4: Add the "separator" parameter as in KDialogBase
122  // Make "dialogType" an int
123  KConfigDialog( TQWidget *parent, const char *name,
124  KConfigSkeleton *config,
125  DialogType dialogType = IconList,
126  int dialogButtons = Default|Ok|Apply|Cancel|Help,
127  ButtonCode defaultButton = Ok,
128  bool modal=false );
129 
135  ~KConfigDialog();
136 
151  // KDE4: Add a default value for itemName & pixmapName
152  void addPage( TQWidget *page, const TQString &itemName,
153  const TQString &pixmapName,
154  const TQString &header=TQString::null,
155  bool manage=true );
156 
173  // KDE4: Add a default value for itemName & pixmapName
174  void addPage( TQWidget *page, KConfigSkeleton *config,
175  const TQString &itemName,
176  const TQString &pixmapName,
177  const TQString &header=TQString::null );
178 
185  static KConfigDialog* exists( const char* name );
186 
193  static bool showDialog( const char* name );
194 
198  virtual void show();
199 
200 protected slots:
207  virtual void updateSettings();
208 
216  virtual void updateWidgets();
217 
224  virtual void updateWidgetsDefault();
225 
226 protected:
227 
233  virtual bool hasChanged() { return false; }
234 
239  virtual bool isDefault() { return true; }
240 
241 protected slots:
245  void updateButtons();
246 
250  void settingsChangedSlot();
251 
252 private:
256  void addPageInternal(TQWidget *page, const TQString &itemName,
257  const TQString &pixmapName, const TQString &header);
258 
263  void setupManagerConnections(KConfigDialogManager *manager);
264 
265 private:
269  static TQAsciiDict<KConfigDialog> openDialogs;
270 
271  class KConfigDialogPrivate;
275  KConfigDialogPrivate *d;
276 };
277 
278 #endif //KCONFIGDIALOG_H
279 
KConfigDialogManager
KDialogBase::addPage
TQFrame * addPage(const TQString &itemName, const TQString &header=TQString::null, const TQPixmap &pixmap=TQPixmap())
Add a page to the dialog when the class is used in TreeList , IconList or Tabbed mode.
Definition: kdialogbase.cpp:1296
KDialogBase::ButtonCode
ButtonCode
Definition: kdialogbase.h:197
KConfigSkeleton
KDialogBase
A dialog base class with standard buttons and predefined layouts.
Definition: kdialogbase.h:191
KDialogBase::DialogType
DialogType
Definition: kdialogbase.h:237
KConfigDialog
Standard KDE configuration dialog class.
Definition: kconfigdialog.h:72
KConfigDialog::hasChanged
virtual bool hasChanged()
Returns whether the current state of the dialog is different from the current configutation.
Definition: kconfigdialog.h:233
KConfigDialog::isDefault
virtual bool isDefault()
Returns whether the current state of the dialog is the same as the default configuration.
Definition: kconfigdialog.h:239
KConfig

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.8.13
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |