aboutsummaryrefslogtreecommitdiff
path: root/lumina-fileinfo/MainUI.h
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-08-31 14:22:07 -0400
committerKen Moore <moorekou@gmail.com>2015-08-31 14:22:07 -0400
commitd8139ce95ae39cd2b4cf6c7fd08cc6dcb119a485 (patch)
tree9259e2302c33a133bf37e41957f63d34bfa7d382 /lumina-fileinfo/MainUI.h
parentAdd a new "PathToAbsolute()" function to LuminaUtils for converting a possibl... (diff)
downloadlumina-d8139ce95ae39cd2b4cf6c7fd08cc6dcb119a485.tar.gz
lumina-d8139ce95ae39cd2b4cf6c7fd08cc6dcb119a485.tar.bz2
lumina-d8139ce95ae39cd2b4cf6c7fd08cc6dcb119a485.zip
Completely overhaul lumina-fileinfo so that it is just a front-end to the XDGDesktop structure now, instead of using the regex's and template files like before. This also makes it easier to update later, since there are more information fields in the XDGDesktop structure than lumina-fileinfo currently handles (TryExec, Actions, ShowIn, etc).
Diffstat (limited to 'lumina-fileinfo/MainUI.h')
-rw-r--r--lumina-fileinfo/MainUI.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/lumina-fileinfo/MainUI.h b/lumina-fileinfo/MainUI.h
new file mode 100644
index 00000000..bc2729fd
--- /dev/null
+++ b/lumina-fileinfo/MainUI.h
@@ -0,0 +1,55 @@
+//===========================================
+// Lumina-DE source code
+// Copyright (c) 2015, Ken Moore
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+// Note: Some of this class (particularly parts of the UI), were initially created by:
+// William (william-os4y on GitHub: https://github.com/william-os4y)
+// March -> April, 2015
+// This utility was re-written by Ken Moore on August 31, 2015
+// Primarily to align the utility with the LWinInfo & XDGDesktop classes
+//===========================================
+#ifndef _LUMINA_FILE_INFO_MAIN_UI_H
+#define _LUMINA_FILE_INFO_MAIN_UI_H
+
+#include <QDialog>
+
+#include <LuminaXDG.h>
+
+namespace Ui{
+ class MainUI;
+};
+
+class MainUI : public QDialog{
+ Q_OBJECT
+public:
+ MainUI();
+ ~MainUI();
+
+ void LoadFile(QString path, QString type=""); //type=[APP, LINK]
+
+public slots:
+ void UpdateIcons();
+
+private:
+ Ui::MainUI *ui;
+ bool canwrite;
+ void ReloadAppIcon();
+
+private slots:
+ //Initialization functions
+ void SetupConnections();
+
+ //UI Buttons
+ void on_push_close_clicked();
+ void on_push_save_clicked();
+ void on_tool_xdg_getCommand_clicked(QString prev = "");
+ void on_tool_xdg_getDir_clicked();
+ void on_push_xdg_getIcon_clicked();
+
+ //XDG Value Changed
+ void xdgvaluechanged();
+};
+
+#endif
bgstack15