summaryrefslogtreecommitdiffabout
path: root/microkde/kresources/syncwidget.h
Unidiff
Diffstat (limited to 'microkde/kresources/syncwidget.h') (more/less context) (show whitespace changes)
-rw-r--r--microkde/kresources/syncwidget.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/microkde/kresources/syncwidget.h b/microkde/kresources/syncwidget.h
new file mode 100644
index 0000000..e94252c
--- a/dev/null
+++ b/microkde/kresources/syncwidget.h
@@ -0,0 +1,62 @@
1/*
2 This file is part of libkresources.
3 Copyright (c) 2004 Ulf Schenk
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19*/
20
21// $Id$
22
23#ifndef KRESOURCES_SYNCWIDGET_H
24#define KRESOURCES_SYNCWIDGET_H
25
26#include <qwidget.h>
27
28#include <kconfig.h>
29
30#include "resource.h"
31
32namespace KRES {
33
34class SyncWidget : public QWidget
35{
36 Q_OBJECT
37
38public:
39 SyncWidget( QWidget *parent = 0, const char *name = 0 );
40
41 /**
42 Sets the widget to 'edit' mode. Reimplement this method if you are
43 interested in the mode change (to disable some GUI element for
44 example). By default the widget is in 'create new' mode.
45 */
46 virtual void setInEditMode( bool value );
47
48public slots:
49 virtual void loadSettings( Resource *resource );
50 virtual void saveSettings( Resource *resource );
51
52signals:
53//US void setReadOnly( bool value );
54//US void setPersistentReadOnly( bool value );
55
56
57protected:
58//US Resource* mResource;
59};
60
61}
62#endif