mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-12-15 23:13:41 +00:00
rewrite tray
This commit is contained in:
@ -37,19 +37,26 @@ public:
|
||||
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 switchToProfileSlot(QAction *action);
|
||||
|
||||
private:
|
||||
bool debug;
|
||||
MainWindow *mainWindow;
|
||||
// contextual actions
|
||||
QMenu *menu;
|
||||
QAction *exit;
|
||||
QAction *showMainWindow;
|
||||
QAction *showNetctlAutoWindow;
|
||||
QAction *showStatus;
|
||||
QMenu *menuActions;
|
||||
QMenu *startProfileMenu;
|
||||
QMenu *switchToProfileMenu;
|
||||
QMap<QString, QAction*> contextMenu;
|
||||
// functions
|
||||
void createActions();
|
||||
void init();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user