2 Copyright (C) 2013-2016 Montel Laurent <montel@kde.org>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; see the file COPYING. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
19 #ifndef CONTACTEDITORMAINWINDOW_H
20 #define CONTACTEDITORMAINWINDOW_H
22 #include <KXmlGuiWindow>
24 class ContactEditorPage
;
26 class KRecentFilesAction
;
29 class ContactEditorMainWindow
: public KXmlGuiWindow
33 explicit ContactEditorMainWindow();
34 ~ContactEditorMainWindow();
37 void closeEvent(QCloseEvent
*) Q_DECL_OVERRIDE
;
41 void slotCloseTheme();
42 void slotAddExtraPage();
44 void slotUploadTheme();
47 void slotInstallTheme();
48 void slotInsertFile();
49 void slotManageTheme();
50 void slotUpdateView();
52 void slotCanInsertFile(bool b
);
53 void slotThemeSelected(const QUrl
&);
54 void slotSaveAsTheme();
57 enum ActionSaveTheme
{
63 bool loadTheme(const QString
&directory
);
66 bool saveCurrentProject(ActionSaveTheme act
);
68 void closeThemeEditor();
69 ContactEditorPage
*mContactEditor
;
70 QAction
*mNewThemeAction
;
71 QAction
*mCloseThemeAction
;
72 QAction
*mAddExtraPage
;
73 QAction
*mCloseAction
;
75 QAction
*mUploadTheme
;
77 QAction
*mInstallTheme
;
79 QAction
*mManageTheme
;
81 QAction
*mSaveAsAction
;
82 KRecentFilesAction
*mRecentFileAction
;
85 #endif // CONTACTEDITORMAINWINDOW_H