summaryrefslogtreecommitdiffstats
path: root/src/customtraylabel.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-03-16 21:58:44 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-03-16 21:58:44 +0900
commitab3e99d8ee8ef5b53dcd1e6f90e3cdbbc08322e3 (patch)
treee622bfddde12ec89c8a84bfefec8dce7140109db /src/customtraylabel.h
parentd9e1d9fa71544a674d213117c0b675a0e874e556 (diff)
downloadtdedocker-ab3e99d8ee8ef5b53dcd1e6f90e3cdbbc08322e3.tar.gz
tdedocker-ab3e99d8ee8ef5b53dcd1e6f90e3cdbbc08322e3.zip
Conversion to TDE application.
Notable changes: 1) save/restore data are saved in TDE session files. 2) remove -a, -l options. Removed "Launch on startup" option. 3) docked application are restored automatically by the TDE session manager. After being restored, tdedocker will wait for 5 seconds to let the various applications be restored, then it will try to grab the required windows. 4) save/restore of docked applications is now working properly. 5) due to the way TDE manages command line options, at the moment additional parameters cannot be passed to the application to be docked. This will be address in a subsequent commit. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/customtraylabel.h')
-rw-r--r--src/customtraylabel.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/customtraylabel.h b/src/customtraylabel.h
index d7fa764..c022ec4 100644
--- a/src/customtraylabel.h
+++ b/src/customtraylabel.h
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2004 Girish Ramakrishnan All Rights Reserved.
- *
+ *
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
@@ -28,6 +28,7 @@
class TQStringList;
class TQPopupMenu;
+class TDEPopupMenu;
class TQString;
class TQSettings;
class TQWidget;
@@ -42,10 +43,9 @@ public:
CustomTrayLabel(const TQStringList& argv, pid_t pid, TQWidget* parent = 0);
// Session management
- bool saveState(TQSettings& settings);
- bool restoreState(TQSettings& settings);
+ void saveState(TDEConfig *config);
+ bool restoreState(TDEConfig *config);
- bool isLaunchOnStartup(void) const { return mAutoLaunch->isOn(); }
bool isDockWhenObscured(void) const { return mDockWhenObscured->isOn(); }
void setAppName(const TQString& name);
@@ -53,10 +53,9 @@ public:
public slots:
// overridden to update our menu
void setDockWhenMinimized(bool dwm);
- void setDockWhenFocusLost(bool dfl) { mDockWhenFocusLost->setOn(dfl); }
+ void setDockWhenFocusLost(bool dfl) { mDockWhenFocusLost->setOn(dfl); }
void setSkipTaskbar(bool skip);
- void setLaunchOnStartup(bool launch);
void setDockWhenObscured(bool dock) { mDockWhenObscured->setOn(dock); }
void enableSessionManagement(bool sm) { mSessionManagement->setOn(sm); }
@@ -75,15 +74,14 @@ private slots:
void setCustomIcon(void);
void updateMenu();
void slotSetBalloonTimeout(void);
- void slotSetLaunchOnStartup(void);
private:
void installMenu();
bool mUndockWhenDead;
- TQPopupMenu *mOptionsMenu, *mMainMenu;
- TQAction *mDockOnRestore, *mAutoLaunch, *mBalloonTimeout, *mSkipTaskbar,
- *mDockWhenMinimized, *mDockWhenObscured, *mSessionManagement,
- *mDockWhenFocusLost;
+ TQPopupMenu *mMainMenu;
+ TDEPopupMenu *mOptionsMenu;
+ TQAction *mDockOnRestore, *mBalloonTimeout, *mSkipTaskbar, *mDockWhenMinimized,
+ *mDockWhenObscured, *mSessionManagement, *mDockWhenFocusLost;
int mShowId;
};