-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
76 lines (57 loc) · 1.61 KB
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
Copyright (c) 2009 Riccardo Iaconelli <[email protected]>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
*/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <KParts/MainWindow>
#include <KLibLoader>
class QModelIndex;
namespace Ui {
class MainWindowClass;
};
class QDockWidget;
class QStringList;
class KListWidget;
class EditPage;
class PackageModel;
class StartPage;
class Sidebar;
// our own previewer
class Previewer;
class MainWindow : public KParts::MainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
QStringList recentProjects();
public Q_SLOTS:
void quit();
void changeTab(int tab);
void loadProject(const QString &name, const QString &type);
private:
enum WorkflowTabs { StartPageTab = 0,
EditTab,
PublishTab,
DocsTab,
PreviewTab };
void createMenus();
void showEditor();
void hideEditor();
void createDockWidgets();
StartPage *m_startPage;
QDockWidget *m_workflow;
Sidebar *m_sidebar;
QDockWidget *m_previewerWidget;
Previewer *m_previewer;
KLibFactory *m_factory;
EditPage *m_editPage;
KParts::ReadWritePart *m_part;
PackageModel *m_model;
int m_oldTab;
};
#endif // MAINWINDOW_H