Ran qt3to4
[basket4.git] / src / mainwindow.h
blobc3b77c7b616c5ed0aa3130e46c6cf9a0a53742f4
1 /***************************************************************************
2 * Copyright (C) 2003 by S�astien Laot *
3 * slaout@linux62.org *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program 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 *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
21 #ifndef CONTAINER_H
22 #define CONTAINER_H
24 #include <kmainwindow.h>
25 #include <qtabbar.h>
26 #include <qtabwidget.h>
27 #include <qlabel.h>
28 //Added by qt3to4:
29 #include <QResizeEvent>
30 #include <Q3PopupMenu>
31 #include <Q3VBoxLayout>
32 #include <QMoveEvent>
33 #include <ksystemtray.h>
34 #include <q3ptrlist.h>
35 #include <qpoint.h>
36 #include <qclipboard.h>
37 #include <kaction.h>
38 #include <qpixmap.h>
39 #include <qdesktopwidget.h>
40 #include <qtimer.h>
41 #include <qsplitter.h>
43 class QWidget;
44 class QPoint;
45 class KAction;
46 class KToggleAction;
47 class Q3PopupMenu;
48 class QSignalMapper;
49 class QStringList;
50 class QToolTipGroup;
51 class KPassivePopup;
52 class Basket;
53 class DecoratedBasket;
54 class Container;
55 class RegionGrabber;
56 class NoteSelection;
57 class BNPView;
58 class ClickableLabel;
59 namespace KSettings { class Dialog; };
62 /** The window that contain baskets, organized by tabs.
63 * @author S�astien Laot
65 class MainWindow : public KMainWindow
67 Q_OBJECT
68 public:
69 /** Construtor, initializer and destructor */
70 MainWindow(QWidget *parent = 0, const char *name = 0);
71 ~MainWindow();
72 private:
73 void setupActions();
74 public slots:
75 bool askForQuit();
76 /** Settings **/
77 // void toggleToolBar();
78 void toggleStatusBar();
79 void showShortcutsSettingsDialog();
80 void configureToolbars();
81 void configureNotifications();
82 void showSettingsDialog();
83 void minimizeRestore();
84 void quit();
85 void changeActive();
86 void slotNewToolbarConfig();
88 protected:
89 bool queryExit();
90 bool queryClose();
91 virtual void resizeEvent(QResizeEvent*);
92 virtual void moveEvent(QMoveEvent*);
93 public:
94 void polish();
96 private:
97 // Settings actions :
98 // KToggleAction *m_actShowToolbar;
99 KToggleAction *m_actShowStatusbar;
100 KAction *actQuit;
101 KAction *actAppConfig;
102 Q3PtrList<KAction> actBasketsList;
104 private:
105 Q3VBoxLayout *m_layout;
106 BNPView *m_baskets;
107 bool m_startDocked;
108 KSettings::Dialog *m_settings;
109 bool m_quit;
112 #endif // CONTAINER_H