aboutsummaryrefslogtreecommitdiff
path: root/libLumina/LuminaThemes.h
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-08-18 10:34:24 -0400
committerKen Moore <moorekou@gmail.com>2015-08-18 10:34:24 -0400
commitbe7850a7e808e48cf7ddcdf6f6bc9f80c0d5c331 (patch)
tree73cf77e14ddd6d00da0ca6a009545d649fde39cf /libLumina/LuminaThemes.h
parentMerge branch 'master' of github.com:pcbsd/lumina (diff)
downloadlumina-be7850a7e808e48cf7ddcdf6f6bc9f80c0d5c331.tar.gz
lumina-be7850a7e808e48cf7ddcdf6f6bc9f80c0d5c331.tar.bz2
lumina-be7850a7e808e48cf7ddcdf6f6bc9f80c0d5c331.zip
Update the lumina theme engine/class so that custom environment variables may be set/loaded for all apps using the theme engine (including the session - which propagates to new non-lumina applications as well)
Diffstat (limited to 'libLumina/LuminaThemes.h')
-rw-r--r--libLumina/LuminaThemes.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/libLumina/LuminaThemes.h b/libLumina/LuminaThemes.h
index 3767eb7a..6dcff89d 100644
--- a/libLumina/LuminaThemes.h
+++ b/libLumina/LuminaThemes.h
@@ -17,6 +17,7 @@
#include <QFile>
#include <QDir>
#include <QTimer>
+#include <QDateTime>
class LTHEME{
public:
@@ -46,11 +47,18 @@ public:
//Additional info for a cursor theme
static QStringList cursorInformation(QString name); //returns: [Name, Comment, Sample Image File]
+ //Environment settings
+ static QStringList CustomEnvSettings(); //view all the key=value settings
+ static void LoadCustomEnvSettings(); //will push the custom settings into the environment (recommended before loading the initial QApplication)
+ static bool setCustomEnvSetting(QString var, QString val); //variable/value pair (use an empty val to clear it)
+ static QString readCustomEnvSetting(QString var);
+
};
//Simple class to setup a utility to use the Lumina theme
//-----Example usage in "main.cpp" -------------------------------
+// LTHEME::LoadCustomEnvSettings();
// QApplication a(argc,argv);
// LuminaThemeEngine themes(&a)
//------------------------------------------------------------------------------------
@@ -71,15 +79,16 @@ private:
QFileSystemWatcher *watcher;
QString theme,colors,icons, font, fontsize, cursors; //current settings
QTimer *syncTimer;
+ QDateTime lastcheck;
private slots:
void watcherChange();
void reloadFiles();
signals:
- void updateIcons();
- void updateCursors();
-};
-
+ void updateIcons(); //Icon theme changed
+ void updateCursors(); //Cursor theme changed
+ void EnvChanged(); //Some environment variable(s) changed
+};
#endif
bgstack15