SVN_SILENT made messages (after extraction)
[kdepim.git] / kmail / kmmainwin.h
blob5a7f23a052aa95368d11446b351d3d0bb31c77f5
1 /*
2 * kmail: KDE mail client
3 * Copyright (c) 1996-1998 Stefan Taferner <taferner@kde.org>
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.
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.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef __KMMAINWIN
21 #define __KMMAINWIN
23 #include <kxmlguiwindow.h>
25 class KMMainWidget;
26 class KToggleAction;
27 class QLabel;
28 namespace KPIM
30 class ProgressStatusBarWidget;
32 class KMMainWin : public KXmlGuiWindow
34 Q_OBJECT
36 public:
37 // the main window needs to have a name since else restoring the window
38 // settings by kwin doesn't work
39 explicit KMMainWin(QWidget *parent = Q_NULLPTR);
40 virtual ~KMMainWin();
41 KMMainWidget *mainKMWidget() const
43 return mKMMainWidget;
46 /// Same as KMMainWin::restore(), except that it also restores the docked state,
47 /// which we have saved in saveProperties().
48 /// TODO: KDE5: Move to kdelibs, see http://reviewboard.kde.org/r/504
49 bool restoreDockedState(int number);
51 public Q_SLOTS:
52 void displayStatusMsg(const QString &);
53 void slotEditToolbars();
54 void slotUpdateGui();
55 void setupStatusBar();
57 protected:
59 /// Reimplemented to save the docked state
60 void saveProperties(KConfigGroup &) Q_DECL_OVERRIDE;
62 bool queryClose() Q_DECL_OVERRIDE;
64 protected Q_SLOTS:
65 void slotQuit();
66 void slotShowTipOnStart();
68 private Q_SLOTS:
69 void slotToggleMenubar(bool dontShowWarning = false);
70 void slotConfigureShortcuts();
72 private:
73 KPIM::ProgressStatusBarWidget *mProgressBar;
74 KMMainWidget *mKMMainWidget;
75 KToggleAction *mHideMenuBarAction;
76 bool mReallyClose;
77 QLabel *mMessageLabel;
80 #endif