Add expandurl action
[kdepim.git] / kaddressbook / mainwindow.h
blob8f976ceae493332de4a9a3408b87a4b4e93edde2
1 /*
2 This file is part of KAddressBook.
4 Copyright (c) 2007 Tobias Koenig <tokoe@kde.org>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef MAINWINDOW_H
22 #define MAINWINDOW_H
24 #include <KXmlGuiWindow>
26 class MainWidget;
27 class KToggleAction;
28 class MainWindow : public KXmlGuiWindow
30 Q_OBJECT
32 public:
33 MainWindow();
34 ~MainWindow();
35 MainWidget *mainWidget() const;
36 private Q_SLOTS:
37 void configure();
38 void configureKeyBindings();
39 void configureToolbars() Q_DECL_OVERRIDE;
40 void newToolbarConfig();
42 void slotToggleMenubar(bool dontShowWarning = true);
43 private:
44 void initActions();
46 MainWidget *mMainWidget;
47 KToggleAction *mHideMenuBarAction;
50 #endif