• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KUtils

  • kutils
kcmultidialog_p.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 Copyright (C) 2007 Matthias Kretz <kretz@kde.org>
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 version 2 as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
17
18*/
19
20#ifndef KCMULTIDIALOG_P_H
21#define KCMULTIDIALOG_P_H
22
23#include "kcmultidialog.h"
24#include <kpagedialog_p.h>
25#include <QtCore/QList>
26#include <QtCore/QStringList>
27
28class KCModuleProxy;
29class KPageWidgetItem;
30
31class KCMultiDialogPrivate : public KPageDialogPrivate
32{
33 Q_DECLARE_PUBLIC(KCMultiDialog)
34 protected:
35 KCMultiDialogPrivate()
36 : currentModule(0)
37 {
38 }
39
40 KCModuleProxy *currentModule;
41
42 struct CreatedModule
43 {
44 KCModuleProxy *kcm;
45 KPageWidgetItem *item;
46 QStringList componentNames;
47 };
48
49 typedef QList<CreatedModule> ModuleList;
50 ModuleList modules;
51
52 void _k_slotCurrentPageChanged(KPageWidgetItem *current, KPageWidgetItem *previous);
53 virtual void _k_clientChanged();
54 void _k_dialogClosed();
55 void _k_updateHeader(bool use, const QString &message);
56
57 private:
58 void init();
59 void apply();
60 bool resolveChanges(KCModuleProxy *currentProxy);
61 bool moduleSave(KCModuleProxy *module);
62};
63
64#endif // KCMULTIDIALOG_P_H
65// vim: sw=4 sts=4 et tw=100
KCModuleProxy
Encapsulates a KCModule for embedding.
Definition: kcmoduleproxy.h:68
KCMultiDialogPrivate
Definition: kcmultidialog_p.h:32
KCMultiDialogPrivate::_k_clientChanged
virtual void _k_clientChanged()
Definition: kcmultidialog.cpp:108
KCMultiDialogPrivate::_k_updateHeader
void _k_updateHeader(bool use, const QString &message)
Definition: kcmultidialog.cpp:175
KCMultiDialogPrivate::modules
ModuleList modules
Definition: kcmultidialog_p.h:50
KCMultiDialogPrivate::ModuleList
QList< CreatedModule > ModuleList
Definition: kcmultidialog_p.h:49
KCMultiDialogPrivate::currentModule
KCModuleProxy * currentModule
Definition: kcmultidialog_p.h:40
KCMultiDialogPrivate::KCMultiDialogPrivate
KCMultiDialogPrivate()
Definition: kcmultidialog_p.h:35
KCMultiDialogPrivate::_k_dialogClosed
void _k_dialogClosed()
Definition: kcmultidialog.cpp:191
KCMultiDialogPrivate::_k_slotCurrentPageChanged
void _k_slotCurrentPageChanged(KPageWidgetItem *current, KPageWidgetItem *previous)
Definition: kcmultidialog.cpp:83
KCMultiDialog
A class that offers a KPageDialog containing arbitrary KControl Modules.
Definition: kcmultidialog.h:38
KPageDialogPrivate
KPageWidgetItem
QList
kcmultidialog.h
KCMultiDialogPrivate::CreatedModule
Definition: kcmultidialog_p.h:43
KCMultiDialogPrivate::CreatedModule::kcm
KCModuleProxy * kcm
Definition: kcmultidialog_p.h:44
KCMultiDialogPrivate::CreatedModule::componentNames
QStringList componentNames
Definition: kcmultidialog_p.h:46
KCMultiDialogPrivate::CreatedModule::item
KPageWidgetItem * item
Definition: kcmultidialog_p.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KUtils

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal