• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

kresources

  • sources
  • kde-4.12
  • kdepimlibs
  • kresources
configpage.h
Go to the documentation of this file.
1 /*
2  This file is part of libkresources.
3 
4  Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
5  Copyright (c) 2002 Jan-Pascal van Best <janpascal@vanbest.org>
6  Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
7 
8  This library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU Library General Public
10  License as published by the Free Software Foundation; either
11  version 2 of the License, or (at your option) any later version.
12 
13  This library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Library General Public License for more details.
17 
18  You should have received a copy of the GNU Library General Public License
19  along with this library; see the file COPYING.LIB. If not, write to
20  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  Boston, MA 02110-1301, USA.
22 */
33 #ifndef KRESOURCES_CONFIGPAGE_H
34 #define KRESOURCES_CONFIGPAGE_H
35 
36 #include <QtCore/QStringList>
37 #include <QWidget>
38 #include <QtCore/QList>
39 
40 #include <ksharedptr.h>
41 
42 #include "manager.h"
43 
44 class QTreeWidget;
45 class QTreeWidgetItem;
46 
47 namespace KRES {
48 
49 class KRESOURCES_EXPORT ResourcePageInfo : public KShared
50 {
51  public:
52  ResourcePageInfo();
53  ~ResourcePageInfo();
54  Manager<Resource> *mManager;
55  KConfig *mConfig;
56 
57  private:
58  class Private;
59  Private *const d;
60 };
61 
62 class Resource;
63 class ConfigViewItem;
64 
71 class KRESOURCES_EXPORT ConfigPage : public QWidget, public ManagerObserver<Resource>
72 {
73  Q_OBJECT
74 
75  public:
76  ConfigPage( QWidget *parent = 0 );
77  virtual ~ConfigPage();
78 
79  void load();
80  void save();
81  virtual void defaults();
82 
83  public Q_SLOTS:
84  void slotFamilyChanged( int pos );
85  void slotAdd();
86  void slotRemove();
87  void slotEdit();
88  void slotStandard();
89  void slotSelectionChanged();
90 
91  public:
92  // From ManagerObserver<Resource>
93  virtual void resourceAdded( Resource *resource );
94  virtual void resourceModified( Resource *resource );
95  virtual void resourceDeleted( Resource *resource );
96 
97  protected:
98  ConfigViewItem *findItem( Resource *resource );
99 
100  protected Q_SLOTS:
101  void slotItemClicked( QTreeWidgetItem *item );
102 
103  Q_SIGNALS:
104  void changed( bool );
105 
106  private:
107  class Private;
108  Private *const d;
109 };
110 
111 }
112 
113 #endif
KRES::ManagerObserver
Observer class for Manager class.
Definition: manager.h:48
KRES::ConfigPage
A resource configuration page.
Definition: configpage.h:71
KRES::Resource
This class provides a resource which is managed in a general way.
Definition: resource.h:75
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kresources

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



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