Changeset View
Changeset View
Standalone View
Standalone View
src/Gui/KSMainWindow.cpp
Show All 12 Lines | |||||
13 | * | 13 | * | ||
14 | * You should have received a copy of the GNU Lesser General Public License | 14 | * You should have received a copy of the GNU Lesser General Public License | ||
15 | * along with this program; if not, write to the Free Software | 15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | * Boston, MA 02110-1301, USA. | 17 | * Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #include "KSMainWindow.h" | 20 | #include "KSMainWindow.h" | ||
21 | | ||||
21 | #include "Config.h" | 22 | #include "Config.h" | ||
rkflx: Please keep this. | |||||
23 | #include "SettingsDialog/SettingsDialog.h" | ||||
24 | | ||||
25 | #include <KAboutData> | ||||
26 | #include <KGuiItem> | ||||
27 | #include <KHelpMenu> | ||||
28 | #include <KIO/OpenFileManagerWindowJob> | ||||
29 | #include <KLocalizedString> | ||||
30 | #include <KNS3/KMoreToolsMenuFactory> | ||||
31 | #include <KStandardAction> | ||||
32 | #include <KStandardGuiItem> | ||||
33 | #include <KWindowSystem> | ||||
22 | 34 | | |||
23 | #include <QDesktopServices> | 35 | #include <QDesktopServices> | ||
24 | #include <QJsonArray> | 36 | #include <QJsonArray> | ||
25 | #include <QPrintDialog> | 37 | #include <QPrintDialog> | ||
26 | #include <QShortcut> | | |||
27 | #include <QTimer> | | |||
28 | #include <QPushButton> | 38 | #include <QPushButton> | ||
39 | #include <QTimer> | ||||
29 | #include <QVBoxLayout> | 40 | #include <QVBoxLayout> | ||
30 | | ||||
31 | #ifdef XCB_FOUND | 41 | #ifdef XCB_FOUND | ||
32 | #include <QX11Info> | 42 | #include <QX11Info> | ||
33 | #include <xcb/xcb.h> | | |||
34 | #endif | 43 | #endif | ||
35 | 44 | | |||
36 | #include <KLocalizedString> | | |||
37 | #include <KGuiItem> | | |||
38 | #include <KStandardAction> | | |||
39 | #include <KStandardGuiItem> | | |||
40 | #include <KHelpMenu> | | |||
41 | #include <KAboutData> | | |||
42 | #include <KWindowSystem> | | |||
43 | #include <KIO/OpenFileManagerWindowJob> | | |||
44 | #include <KNS3/KMoreToolsMenuFactory> | | |||
45 | | ||||
46 | #include "SettingsDialog/SettingsDialog.h" | | |||
47 | #include "ExportMenu.h" | | |||
48 | #include "ExportManager.h" | | |||
49 | #include "SpectacleConfig.h" | | |||
50 | 45 | | |||
51 | static const int DEFAULT_WINDOW_HEIGHT = 420; | 46 | static const int DEFAULT_WINDOW_HEIGHT = 420; | ||
52 | static const int DEFAULT_WINDOW_WIDTH = 840; | 47 | static const int DEFAULT_WINDOW_WIDTH = 840; | ||
53 | static const int MAXIMUM_WINDOW_WIDTH = 1000; | 48 | static const int MAXIMUM_WINDOW_WIDTH = 1000; | ||
54 | 49 | | |||
55 | KSMainWindow::KSMainWindow(bool onClickAvailable, QWidget *parent) : | 50 | KSMainWindow::KSMainWindow(bool onClickAvailable, QWidget *parent) : | ||
56 | QDialog(parent), | 51 | QDialog(parent), | ||
57 | mKSWidget(new KSWidget), | 52 | mKSWidget(new KSWidget), | ||
▲ Show 20 Lines • Show All 340 Lines • Show Last 20 Lines |
Please keep this.