2009-12-05 08:42:24 -05:00
|
|
|
/****************************************************************
|
|
|
|
* RShare is distributed under the following license:
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006, crypton
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
|
|
|
****************************************************************/
|
|
|
|
|
|
|
|
#ifndef _ApplicationWindow_H
|
|
|
|
#define _ApplicationWindow_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
|
2012-10-22 09:51:40 -04:00
|
|
|
//#include "ExampleDialog.h"
|
2009-12-05 08:42:24 -05:00
|
|
|
#include "ui_ApplicationWindow.h"
|
|
|
|
|
|
|
|
class ApplicationWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
/** Default Constructor */
|
2013-10-18 17:10:33 -04:00
|
|
|
ApplicationWindow(QWidget *parent = 0, Qt::WindowFlags flags = 0);
|
2009-12-05 08:42:24 -05:00
|
|
|
|
|
|
|
/** Destructor. */
|
|
|
|
~ApplicationWindow();
|
|
|
|
|
|
|
|
/* A Bit of a Hack... but public variables for
|
|
|
|
* the dialogs, so we can add them to the
|
|
|
|
* Notify Class...
|
|
|
|
*/
|
2012-10-22 09:51:40 -04:00
|
|
|
|
|
|
|
//ExampleDialog *exampleDialog;
|
2009-12-05 08:42:24 -05:00
|
|
|
//ChannelsDialog *channelsDialog;
|
|
|
|
//GroupsDialog *groupsDialog;
|
|
|
|
//StatisticDialog *statisticDialog;
|
|
|
|
|
2014-05-01 09:08:22 -04:00
|
|
|
QList<QPair<MainPage*, QAction*> > &getNotify() { return mNotify; }
|
|
|
|
|
2009-12-05 08:42:24 -05:00
|
|
|
protected:
|
|
|
|
void closeEvent(QCloseEvent *);
|
|
|
|
|
|
|
|
private:
|
|
|
|
/** Creates a new action for a config page. */
|
|
|
|
QAction* createPageAction(QIcon img, QString text, QActionGroup *group);
|
|
|
|
/** Adds a new action to the toolbar. */
|
|
|
|
void addAction(QAction *action, const char *slot = 0);
|
2012-10-22 09:51:40 -04:00
|
|
|
|
2014-05-01 09:08:22 -04:00
|
|
|
private:
|
|
|
|
QList<QPair<MainPage*, QAction*> > mNotify;
|
|
|
|
|
2009-12-05 08:42:24 -05:00
|
|
|
/** Qt Designer generated object */
|
|
|
|
Ui::ApplicationWindow ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|