aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/systemstart/StartMenu.h
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-09-10 12:38:20 -0400
committerKen Moore <moorekou@gmail.com>2015-09-10 12:38:20 -0400
commit86543e806e27b8317eddce54fee9e0b04a031b51 (patch)
tree5f9046202839cbc6dc7b9b2aa9d6ad088ed811f9 /lumina-desktop/panel-plugins/systemstart/StartMenu.h
parentMerge pull request #154 from harcobbit/issue/11233 (diff)
downloadlumina-86543e806e27b8317eddce54fee9e0b04a031b51.tar.gz
lumina-86543e806e27b8317eddce54fee9e0b04a031b51.tar.bz2
lumina-86543e806e27b8317eddce54fee9e0b04a031b51.zip
Add a new panel plugin: systemstart
This plugins is an overall "start" menu for the system, combining the functionality of the userbutton and the system dashboard into a single unified interface.
Diffstat (limited to 'lumina-desktop/panel-plugins/systemstart/StartMenu.h')
-rw-r--r--lumina-desktop/panel-plugins/systemstart/StartMenu.h89
1 files changed, 89 insertions, 0 deletions
diff --git a/lumina-desktop/panel-plugins/systemstart/StartMenu.h b/lumina-desktop/panel-plugins/systemstart/StartMenu.h
new file mode 100644
index 00000000..20ed2fb7
--- /dev/null
+++ b/lumina-desktop/panel-plugins/systemstart/StartMenu.h
@@ -0,0 +1,89 @@
+//===========================================
+// Lumina-DE source code
+// Copyright (c) 2015, Ken Moore
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+#ifndef _LUMINA_DESKTOP_SYSTEM_START_PANEL_PLUGIN_H
+#define _LUMINA_DESKTOP_SYSTEM_START_PANEL_PLUGIN_H
+
+#include <QWidget>
+#include <QScrollArea>
+
+#include <LuminaXDG.h>
+
+namespace Ui{
+ class StartMenu;
+};
+
+class StartMenu : public QWidget{
+ Q_OBJECT
+public:
+ StartMenu(QWidget *parent = 0);
+ ~StartMenu();
+
+public slots:
+ void UpdateAll(); //for re-translation/icon changes
+ void UpdateMenu(bool forceall = false); //for item changes
+
+private:
+ Ui::StartMenu *ui;
+ QHash<QString, QList<XDGDesktop> > *sysapps;
+ QStringList favs;
+
+ //Simple utility functions
+ void ClearScrollArea(QScrollArea *area);
+ void SortScrollArea(QScrollArea *area);
+
+private slots:
+ void LaunchItem(QString path, bool fix = true);
+
+ //Application/Favorite Listings
+ void UpdateApps();
+ void UpdateFavs();
+
+ // Page update routines
+ void on_stackedWidget_currentChanged(int); //page changed
+
+ //Page Change Buttons
+ void on_tool_goto_apps_clicked();
+ void on_tool_goto_settings_clicked();
+ void on_tool_goto_logout_clicked();
+ void on_tool_back_clicked();
+
+ //Launch Buttons
+ void on_tool_launch_controlpanel_clicked();
+ void on_tool_launch_fm_clicked();
+ void on_tool_launch_store_clicked();
+ void on_tool_launch_desksettings_clicked();
+ void on_tool_launch_deskinfo_clicked();
+
+ //Logout Buttons
+ void on_tool_lock_clicked();
+ void on_tool_logout_clicked();
+ void on_tool_restart_clicked();
+ void on_tool_shutdown_clicked();
+ void on_tool_suspend_clicked();
+
+ //Audio Volume
+ void on_slider_volume_valueChanged(int);
+ void on_tool_launch_mixer_clicked();
+
+ //Screen Brightness
+ void on_slider_bright_valueChanged(int);
+
+ //Workspace
+ void on_tool_set_nextwkspace_clicked();
+ void on_tool_set_prevwkspace_clicked();
+
+ //Locale
+ void on_combo_locale_currentIndexChanged(int);
+
+ //Search
+ void on_line_search_editingFinished();
+
+signals:
+ void CloseMenu();
+};
+
+#endif \ No newline at end of file
bgstack15