summaryrefslogtreecommitdiffstats
path: root/src/tdedocker.h
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2020-03-16 21:58:44 +0900
committerMichele Calgaro <[email protected]>2020-03-16 21:58:44 +0900
commitab3e99d8ee8ef5b53dcd1e6f90e3cdbbc08322e3 (patch)
treee622bfddde12ec89c8a84bfefec8dce7140109db /src/tdedocker.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 <[email protected]>
Diffstat (limited to 'src/tdedocker.h')
-rw-r--r--src/tdedocker.h23
1 files changed, 8 insertions, 15 deletions
diff --git a/src/tdedocker.h b/src/tdedocker.h
index 46d0e13..c445a36 100644
--- a/src/tdedocker.h
+++ b/src/tdedocker.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
@@ -19,41 +19,34 @@
// $Id: tdedocker.h,v 1.11 2005/02/09 03:32:26 cs19713 Exp $
-#ifndef _KDOCKER_H
-#define _KDOCKER_H
+#ifndef _TDEDOCKER_H
+#define _TDEDOCKER_H
-#include <tqapplication.h>
+#include <tdeapplication.h>
#include <X11/Xlib.h>
-#define KDOCKER_APP_VERSION "1.3"
-
class TrayLabelMgr;
-class TDEDocker : public TQApplication
+class TDEDocker : public TDEApplication
{
Q_OBJECT
public:
- TDEDocker(int& argc, char** argv);
+ TDEDocker();
TrayLabelMgr *trayLabelMgr(void) { return mTrayLabelMgr; }
void dumpState(const TQString &file);
- void printUsage(char optopt = 'h');
protected:
bool x11EventFilter(XEvent * event);
- void saveState(TQSessionManager &sm);
private:
- TQString saveSession();
- bool restoreSession();
void notifyPreviousInstance(Window prevInstance);
- void printVersion();
-
Window mSelectionOwner;
TrayLabelMgr *mTrayLabelMgr;
+ bool firstSaveState;
};
-#endif // _KDOCKER_H
+#endif // _TDEDOCKER_H