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

kmail

  • sources
  • kde-4.14
  • 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 ProgressStatusBarWidget;
29 }
30 class KMMainWin : public KXmlGuiWindow
31 {
32  Q_OBJECT
33 
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; }
40 
44  bool restoreDockedState( int number );
45 
46 public slots:
47  void displayStatusMsg(const QString&);
48  void slotEditToolbars();
49  void slotUpdateGui();
50  void setupStatusBar();
51 
52 protected:
53 
55  void saveProperties( KConfigGroup & );
56 
57  bool queryClose ();
58 
59 protected slots:
60  void slotQuit();
61  void slotShowTipOnStart();
62 
63 private slots:
64  void slotToggleMenubar(bool dontShowWarning = false);
65  void slotConfigureShortcuts();
66 
67 private:
68  KPIM::ProgressStatusBarWidget *mProgressBar;
69  KMMainWidget *mKMMainWidget;
70  KToggleAction *mHideMenuBarAction;
71  bool mReallyClose;
72 };
73 
74 #endif
QWidget
KMMainWin::slotEditToolbars
void slotEditToolbars()
Definition: kmmainwin.cpp:146
KMMainWin::slotQuit
void slotQuit()
Definition: kmmainwin.cpp:181
KMMainWin
Definition: kmmainwin.h:30
KMMainWin::KMMainWin
KMMainWin(QWidget *parent=0)
Definition: kmmainwin.cpp:52
KMMainWin::slotShowTipOnStart
void slotShowTipOnStart()
Definition: kmmainwin.cpp:214
KMMainWin::saveProperties
void saveProperties(KConfigGroup &)
Reimplemented to save the docked state.
Definition: kmmainwin.cpp:199
KMMainWin::slotUpdateGui
void slotUpdateGui()
Definition: kmmainwin.cpp:155
KMMainWin::queryClose
bool queryClose()
Definition: kmmainwin.cpp:207
KXmlGuiWindow
KMMainWin::setupStatusBar
void setupStatusBar()
Definition: kmmainwin.cpp:169
KMMainWidget
Definition: kmmainwidget.h:91
QString
KMMainWin::~KMMainWin
virtual ~KMMainWin()
Definition: kmmainwin.cpp:101
KMMainWin::displayStatusMsg
void displayStatusMsg(const QString &)
Definition: kmmainwin.cpp:107
KPIM::ProgressStatusBarWidget
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:188
KMMainWin::mainKMWidget
KMMainWidget * mainKMWidget() const
Definition: kmmainwin.h:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:33 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
  • pimprint

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