end work on interfaces

This commit is contained in:
arcan1s
2015-03-14 06:42:06 +03:00
parent ef2694d7a7
commit f80d6aae6b
38 changed files with 676 additions and 569 deletions

View File

@ -31,25 +31,24 @@ class TrayIcon : public QSystemTrayIcon
public:
explicit TrayIcon(QObject *parent = 0,
const QMap<QString,QString> settings = QMap<QString,QString>(),
const bool debugCmd = false);
~TrayIcon();
public slots:
int showInformation();
int showInformationInWindow();
void updateMenu();
private slots:
void itemActivated(const QSystemTrayIcon::ActivationReason reason);
bool enableProfileSlot();
bool restartProfileSlot();
bool startProfileSlot(QAction *action);
bool stopProfileSlot();
bool stopAllProfilesSlot();
bool switchToProfileSlot(QAction *action);
void enableProfileTraySlot();
void restartProfileTraySlot();
void startProfileTraySlot(QAction *action);
void stopAllProfilesTraySlot();
void switchToProfileTraySlot(QAction *action);
private:
bool debug;
bool useHelper = true;
MainWindow *mainWindow;
// contextual actions
QMenu *menuActions;