summaryrefslogtreecommitdiffstats
path: root/src/client/toolbar/toolbar.h
diff options
context:
space:
mode:
authorSimon Rettberg2018-09-06 11:32:54 +0200
committerSimon Rettberg2018-09-06 11:32:54 +0200
commitcb93788148785758be72fcb2afe2039e7a882c53 (patch)
treec2095f4ac5995d53e62bd9e247345a1b60c3bf5a /src/client/toolbar/toolbar.h
parent[client] Fix memory leak (diff)
downloadpvs2-cb93788148785758be72fcb2afe2039e7a882c53.tar.gz
pvs2-cb93788148785758be72fcb2afe2039e7a882c53.tar.xz
pvs2-cb93788148785758be72fcb2afe2039e7a882c53.zip
[client] New addon system for buttons and menu
Instead of integrating workspace switching and screen locking directly into PVS2, introduce an addon system to insert new functionality into the toolbar, as buttons or menu entries.
Diffstat (limited to 'src/client/toolbar/toolbar.h')
-rw-r--r--src/client/toolbar/toolbar.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/client/toolbar/toolbar.h b/src/client/toolbar/toolbar.h
index 67e9347..48fbf03 100644
--- a/src/client/toolbar/toolbar.h
+++ b/src/client/toolbar/toolbar.h
@@ -27,11 +27,6 @@ namespace Ui
class Toolbar;
}
-enum class Desktop {
- Primary,
- Manager,
-};
-
class Toolbar : public QWidget
{
Q_OBJECT
@@ -69,8 +64,7 @@ private:
bool isManagerPc();
QString identifyMgrIP();
void init();
- void initMenu();
- void toggleDesktop(Desktop d);
+ void initButtonsAndMenus();
QProcess lockDesktopP;
@@ -80,7 +74,6 @@ private slots:
void onConnected(ServerConnection* connection);
void onServerAttentionChanged(const bool on);
void onDoDisconnect();
- void onBtnLockDesktop();
void onBtnAttention();
void exit();
void cameraBlink();
@@ -90,8 +83,6 @@ private slots:
void delayedHideBar();
void showAboutDialog();
void showInformationDialog();
- void enableLockBtn();
- void updateButtonVisibility();
void setToolbarPosition(const QRect &geometry);
};