aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/desktop-plugins/LDPlugin.h
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-11-03 11:41:29 -0500
committerKen Moore <ken@pcbsd.org>2014-11-03 11:41:29 -0500
commit53ce9ffd7903e59a6a215e50c39d8da194c0d42e (patch)
tree9ebaa097c957e9297f8026f6673af7df0e5fdce7 /lumina-desktop/desktop-plugins/LDPlugin.h
parentLarge quality of life update to Lumina: (diff)
downloadlumina-53ce9ffd7903e59a6a215e50c39d8da194c0d42e.tar.gz
lumina-53ce9ffd7903e59a6a215e50c39d8da194c0d42e.tar.bz2
lumina-53ce9ffd7903e59a6a215e50c39d8da194c0d42e.zip
Add a new desktop plugin: desktopview
This plugin provides an area of the screen for automatically displaying icons for anything in the ~/Desktop folder. An icon can be opened/run via a double-click of the mouse.
Diffstat (limited to 'lumina-desktop/desktop-plugins/LDPlugin.h')
-rw-r--r--lumina-desktop/desktop-plugins/LDPlugin.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lumina-desktop/desktop-plugins/LDPlugin.h b/lumina-desktop/desktop-plugins/LDPlugin.h
index e8a1f5f3..d71bde0a 100644
--- a/lumina-desktop/desktop-plugins/LDPlugin.h
+++ b/lumina-desktop/desktop-plugins/LDPlugin.h
@@ -45,6 +45,17 @@ public:
return PLUGID;
}
+ void setInitialSize(int width, int height){
+ //Note: Only run this in the plugin initization routine:
+ // if the plugin is completely new (first time used), it will be this size
+ if(settings->allKeys().isEmpty()){
+ //Brand new plugin: set initial size
+ settings->setValue("location/width",width);
+ settings->setValue("location/height",height);
+ settings->sync();
+ }
+ }
+
public slots:
virtual void LocaleChange(){
//This needs to be re-implemented in the subclassed plugin
bgstack15