plugin_configuration_dialog.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           plugin_configuration_dialog.h  -  description
00003                              -------------------
00004     begin                : Sam Jun 21 2003
00005     copyright            : (C) 2003 by Martin Witte
00006     email                : witte@kawo1.rwth-aachen.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 #ifndef KRADIO_PLUGIN_CONFIGURATION_DIALOG
00018 #define KRADIO_PLUGIN_CONFIGURATION_DIALOG
00019 
00020 #ifdef HAVE_CONFIG_H
00021 #include <config.h>
00022 #endif
00023 
00024 #include <kdialogbase.h>
00025 #include "widgetplugins.h"
00026 
00027 class PluginConfigurationDialog : public KDialogBase,
00028                                   public WidgetPluginBase
00029 {
00030 
00031 Q_OBJECT
00032 
00033 public:
00034     PluginConfigurationDialog(
00035                  int dialogFace, const QString &caption,
00036                  int buttonMask, ButtonCode defaultButton,
00037                  QWidget *parent=0, const char *name=0,
00038                  bool modal=true, bool separator=false);
00039 
00040     // PluginBase
00041 
00042     virtual QString pluginClassName() const { return "PluginConfigurationDialog"; }
00043 
00044     virtual void   saveState (KConfig *) const;
00045     virtual void   restoreState (KConfig *);
00046 
00047 protected :
00048 
00049     virtual ConfigPageInfo  createConfigurationPage();
00050     virtual AboutPageInfo   createAboutPage();
00051 
00052     // WidgetPluginBase
00053 
00054 public slots:
00055             void toggleShown() { WidgetPluginBase::pToggleShown(); }
00056     virtual void showOnOrgDesktop();
00057     virtual void show();
00058     virtual void hide();
00059     virtual void cancel() { slotCancel(); }
00060 
00061     // QWidget overrides
00062 
00063 protected:
00064     virtual void showEvent(QShowEvent *);
00065     virtual void hideEvent(QHideEvent *);
00066 
00067     virtual       QWidget *getWidget()         { return this; }
00068     virtual const QWidget *getWidget() const   { return this; }
00069 
00070     QString m_Caption;
00071 };
00072 
00073 
00074 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 28 Jan 2011 for kradio by  doxygen 1.6.1