Warning, file /sdk/cervisia/cervisiashell.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  *  Copyright (C) 1999-2002 Bernd Gehrmann
0003  *                          bernd@mail.berlios.de
0004  *  Copyright (c) 2002-2004 Christian Loose <christian.loose@kdemail.net>
0005  *
0006  * This program is free software; you can redistribute it and/or modify
0007  * it under the terms of the GNU General Public License as published by
0008  * the Free Software Foundation; either version 2 of the License, or
0009  * (at your option) any later version.
0010  *
0011  * This program is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0014  * GNU General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU General Public License
0017  * along with this program; if not, write to the Free Software
0018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
0019  */
0020 
0021 #ifndef CERVISIASHELL_H
0022 #define CERVISIASHELL_H
0023 
0024 #include <kparts/mainwindow.h>
0025 #include <kparts/readonlypart.h>
0026 
0027 /**
0028  * A basic shell that embeds the Cervisia part directly to make a standalone
0029  * GUI available.
0030  */
0031 class CervisiaShell : public KParts::MainWindow
0032 {
0033     Q_OBJECT
0034 
0035 public:
0036     explicit CervisiaShell(const char *name = 0);
0037     ~CervisiaShell() override;
0038 
0039 public slots:
0040     void openURL();
0041     void openURL(const QUrl &url);
0042     void slotConfigureKeys();
0043     void slotConfigureToolBars();
0044 
0045 protected slots:
0046     void slotNewToolbarConfig();
0047 
0048 protected:
0049     void setupActions();
0050 
0051     void closeEvent(QCloseEvent *event) override;
0052     void readProperties(const KConfigGroup &config) override;
0053     void saveProperties(KConfigGroup &config) override;
0054 
0055 private:
0056     void readSettings();
0057     void writeSettings();
0058 
0059     KParts::ReadOnlyPart *m_part;
0060     QString m_lastOpenDir;
0061 };
0062 
0063 #endif // CERVISIASHELL_H
0064 
0065 // Local Variables:
0066 // c-basic-offset: 4
0067 // End: