• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kmail

  • sources
  • kde-4.12
  • kdepim
  • kmail
kmmainwin.h
Go to the documentation of this file.
1 /*
2  * kmail: KDE mail client
3  * Copyright (c) 1996-1998 Stefan Taferner <taferner@kde.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 Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  *
19  */
20 #ifndef __KMMAINWIN
21 #define __KMMAINWIN
22 
23 #include <kxmlguiwindow.h>
24 
25 class KMMainWidget;
26 class KToggleAction;
27 namespace KPIM {
28  class StatusbarProgressWidget;
29  class ProgressDialog;
30 }
31 using KPIM::StatusbarProgressWidget;
32 using KPIM::ProgressDialog;
33 
34 class KMMainWin : public KXmlGuiWindow
35 {
36  Q_OBJECT
37 
38 public:
39  // the main window needs to have a name since else restoring the window
40  // settings by kwin doesn't work
41  explicit KMMainWin(QWidget *parent = 0);
42  virtual ~KMMainWin();
43  KMMainWidget *mainKMWidget() const { return mKMMainWidget; }
44  StatusbarProgressWidget* progressWidget() const { return mLittleProgress; }
45  ProgressDialog* progressDialog() const { return mProgressDialog; }
46 
50  bool restoreDockedState( int number );
51 
52 public slots:
53  void displayStatusMsg(const QString&);
54  void slotEditToolbars();
55  void slotUpdateGui();
56  void setupStatusBar();
57 
58 protected:
59 
61  void saveProperties( KConfigGroup & );
62 
63  bool queryClose ();
64 
65 protected slots:
66  void slotQuit();
67  void slotShowTipOnStart();
68 
69 private slots:
70  void slotNewMailReader();
71  void slotToggleMenubar(bool dontShowWarning = false);
72 
73 private:
74  KMMainWidget *mKMMainWidget;
75  StatusbarProgressWidget *mLittleProgress;
76  ProgressDialog *mProgressDialog;
77  KToggleAction *mHideMenuBarAction;
78  bool mReallyClose;
79 };
80 
81 #endif
KMMainWin::slotEditToolbars
void slotEditToolbars()
Definition: kmmainwin.cpp:162
KMMainWin::slotQuit
void slotQuit()
Definition: kmmainwin.cpp:202
KMMainWin
Definition: kmmainwin.h:34
KMMainWin::KMMainWin
KMMainWin(QWidget *parent=0)
Definition: kmmainwin.cpp:54
KMMainWin::slotShowTipOnStart
void slotShowTipOnStart()
Definition: kmmainwin.cpp:235
KMMainWin::saveProperties
void saveProperties(KConfigGroup &)
Reimplemented to save the docked state.
Definition: kmmainwin.cpp:220
QWidget
KMMainWin::slotUpdateGui
void slotUpdateGui()
Definition: kmmainwin.cpp:171
KMMainWin::queryClose
bool queryClose()
Definition: kmmainwin.cpp:228
KXmlGuiWindow
KMMainWin::setupStatusBar
void setupStatusBar()
Definition: kmmainwin.cpp:185
KMMainWin::progressWidget
StatusbarProgressWidget * progressWidget() const
Definition: kmmainwin.h:44
KMMainWidget
Definition: kmmainwidget.h:83
KMMainWin::~KMMainWin
virtual ~KMMainWin()
Definition: kmmainwin.cpp:105
KPIM::StatusbarProgressWidget
KPIM::ProgressDialog
KMMainWin::displayStatusMsg
void displayStatusMsg(const QString &)
Definition: kmmainwin.cpp:111
KMMainWin::progressDialog
ProgressDialog * progressDialog() const
Definition: kmmainwin.h:45
KMMainWin::restoreDockedState
bool restoreDockedState(int number)
Same as KMMainWin::restore(), except that it also restores the docked state, which we have saved in s...
Definition: kmmainwin.cpp:209
KMMainWin::mainKMWidget
KMMainWidget * mainKMWidget() const
Definition: kmmainwin.h:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal