SVN_SILENT made messages (.desktop file)
[kdepim.git] / kmail / kmmainwin.h
blob35c7d8cf4b825cf429e6f361ab42662028ba7bc9
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 namespace KPIM {
28 class ProgressStatusBarWidget;
30 class KMMainWin : public KXmlGuiWindow
32 Q_OBJECT
34 public:
35 // the main window needs to have a name since else restoring the window
36 // settings by kwin doesn't work
37 explicit KMMainWin(QWidget *parent = 0);
38 virtual ~KMMainWin();
39 KMMainWidget *mainKMWidget() const { return mKMMainWidget; }
41 /// Same as KMMainWin::restore(), except that it also restores the docked state,
42 /// which we have saved in saveProperties().
43 /// TODO: KDE5: Move to kdelibs, see http://reviewboard.kde.org/r/504
44 bool restoreDockedState( int number );
46 public slots:
47 void displayStatusMsg(const QString&);
48 void slotEditToolbars();
49 void slotUpdateGui();
50 void setupStatusBar();
52 protected:
54 /// Reimplemented to save the docked state
55 void saveProperties( KConfigGroup & );
57 bool queryClose ();
59 protected slots:
60 void slotQuit();
61 void slotShowTipOnStart();
63 private slots:
64 void slotNewMailReader();
65 void slotToggleMenubar(bool dontShowWarning = false);
66 void slotConfigureShortcuts();
68 private:
69 KPIM::ProgressStatusBarWidget *mProgressBar;
70 KMMainWidget *mKMMainWidget;
71 KToggleAction *mHideMenuBarAction;
72 bool mReallyClose;
75 #endif