mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-20 19:06:09 -05:00
Cleaned ApplicationWindow (unfinished modules).
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5711 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e92ef1a1be
commit
6c784c3062
3 changed files with 40 additions and 1164 deletions
|
|
@ -22,34 +22,16 @@
|
|||
#ifndef _ApplicationWindow_H
|
||||
#define _ApplicationWindow_H
|
||||
|
||||
#include <QtGui>
|
||||
#include <QMainWindow>
|
||||
#include <QFileDialog>
|
||||
|
||||
#include "ExampleDialog.h"
|
||||
|
||||
|
||||
//#include "ExampleDialog.h"
|
||||
#include "ui_ApplicationWindow.h"
|
||||
|
||||
|
||||
class ApplicationWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/** Main dialog pages. */
|
||||
enum Page {
|
||||
Graph = 0, /** Network Graph */
|
||||
Channels = 1, /** Channels page. */
|
||||
SharedDirectories = 2, /** Shared Directories page. */
|
||||
Search = 3, /** Search page. */
|
||||
Transfers = 4, /** Transfers page. */
|
||||
Chat = 5, /** Chat page. */
|
||||
Messages = 6, /** Messages page. */
|
||||
Statistics = 8 /** Statistic page. */
|
||||
|
||||
};
|
||||
|
||||
/** Default Constructor */
|
||||
ApplicationWindow(QWidget *parent = 0, Qt::WFlags flags = 0);
|
||||
|
||||
|
|
@ -60,54 +42,23 @@ public:
|
|||
* the dialogs, so we can add them to the
|
||||
* Notify Class...
|
||||
*/
|
||||
|
||||
ExampleDialog *exampleDialog;
|
||||
|
||||
//ExampleDialog *exampleDialog;
|
||||
//ChannelsDialog *channelsDialog;
|
||||
//GroupsDialog *groupsDialog;
|
||||
//StatisticDialog *statisticDialog;
|
||||
|
||||
public slots:
|
||||
/** Called when this dialog is to be displayed */
|
||||
void show();
|
||||
/** Shows the config dialog with focus set to the given page. */
|
||||
void show(Page page);
|
||||
|
||||
|
||||
private slots:
|
||||
|
||||
void updateMenu();
|
||||
|
||||
void toggleVisibility(QSystemTrayIcon::ActivationReason e);
|
||||
void toggleVisibilitycontextmenu();
|
||||
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent *);
|
||||
|
||||
|
||||
private slots:
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
/** Create the actions on the tray menu or menubar */
|
||||
void createActions();
|
||||
|
||||
/** 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);
|
||||
|
||||
void loadStyleSheet(const QString &sheetName);
|
||||
|
||||
QSystemTrayIcon *trayIcon;
|
||||
QAction *toggleVisibilityAction;
|
||||
QMenu *menu;
|
||||
|
||||
|
||||
/** Qt Designer generated object */
|
||||
Ui::ApplicationWindow ui;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue