kradio4
r778
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
src
plugin_configuration_dialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
plugin_configuration_dialog.h - description
3
-------------------
4
begin : Sam Jun 21 2003
5
copyright : (C) 2003 by Martin Witte
6
email : emw-kradio@nocabal.de
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
#ifndef KRADIO_PLUGIN_CONFIGURATION_DIALOG
18
#define KRADIO_PLUGIN_CONFIGURATION_DIALOG
19
20
#ifdef HAVE_CONFIG_H
21
#include <config.h>
22
#endif
23
24
#include <kpagedialog.h>
25
#include "
widgetpluginbase.h
"
26
27
28
#ifdef KRADIO_ENABLE_FIXMES
29
#warning "FIXME: should we switch to KConfigDialog????"
30
#endif
31
class
PluginConfigurationDialog
:
public
KPageDialog,
32
public
WidgetPluginBase
33
{
34
35
Q_OBJECT
36
37
public
:
38
PluginConfigurationDialog
(
39
const
QString &
instanceID
,
40
KPageDialog::FaceType dialogFace,
41
const
QString &caption,
42
KDialog::ButtonCodes buttonMask,
43
KDialog::ButtonCode defaultButton,
44
QWidget *parent = 0,
45
const
QString &
name
= QString(),
46
bool
modal =
true
,
47
bool
separator =
false
48
);
49
50
// PluginBase
51
52
virtual
QString
pluginClassName
()
const
{
return
"PluginConfigurationDialog"
; }
53
54
virtual
void
saveState
( KConfigGroup &)
const
;
55
virtual
void
restoreState
(
const
KConfigGroup &);
56
virtual
void
restoreState
(
const
KConfigGroup &c,
bool
b) {
WidgetPluginBase::restoreState
(c,b); }
57
58
59
60
virtual
void
noticePluginsChanged
(
const
PluginList
&);
61
virtual
void
noticePluginRenamed
(
PluginBase
*
/*p*/
,
const
QString &
/*name*/
);
62
63
protected
:
64
65
virtual
ConfigPageInfo
createConfigurationPage
();
66
// virtual AboutPageInfo createAboutPage();
67
68
// WidgetPluginBase
69
70
public
slots:
71
virtual
void
toggleShown
() {
WidgetPluginBase::pToggleShown
(); }
72
virtual
void
cancel
() { reject(); }
73
74
// QWidget overrides
75
public
:
76
virtual
void
setVisible
(
bool
v);
77
78
protected
:
79
virtual
void
showEvent
(QShowEvent *);
80
virtual
void
hideEvent
(QHideEvent *);
81
82
// virtual QWidget *getWidget() { return this; }
83
// virtual const QWidget *getWidget() const { return this; }
84
85
QString
m_Caption
;
86
};
87
88
89
#endif
Generated by
1.8.1.2