2
* Copyright (C) 2004 Girish Ramakrishnan All Rights Reserved.
4
* This is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This software is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this software; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
20
// $Id: customtraylabel.h,v 1.8 2005/02/09 03:38:00 cs19713 Exp $
22
#ifndef _CUSTOMTRAYLABEL_H
23
#define _CUSTOMTRAYLABEL_H
26
#include "qtraylabel.h"
35
class CustomTrayLabel : public QTrayLabel
40
CustomTrayLabel(Window w, QWidget* p = 0, const QString& t = QString::null);
41
CustomTrayLabel(const QStringList& argv, pid_t pid, QWidget* parent = 0);
44
bool saveState(QSettings& settings);
45
bool restoreState(QSettings& settings);
47
bool isLaunchOnStartup(void) const { return mAutoLaunch->isOn(); }
48
bool isDockWhenObscured(void) const { return mDockWhenObscured->isOn(); }
50
void setAppName(const QString& name);
53
// overridden to update our menu
54
void setDockWhenMinimized(bool dwm);
55
void setSkipTaskbar(bool skip);
57
void setLaunchOnStartup(bool launch);
58
void setDockWhenObscured(bool dock) { mDockWhenObscured->setOn(dock); }
59
void enableSessionManagement(bool sm) { mSessionManagement->setOn(sm); }
62
void dropEvent(QDropEvent *ev);
63
bool canUnsubscribeFromRoot(void);
65
void obscureEvent(void);
66
void destroyEvent(void);
67
void mouseReleaseEvent(QMouseEvent * ev);
68
bool canDockWindow(Window w);
69
void processDead(void);
72
void setCustomIcon(void);
74
void slotSetBalloonTimeout(void);
75
void slotSetLaunchOnStartup(void);
80
QPopupMenu *mOptionsMenu, *mMainMenu;
81
QAction *mDockOnRestore, *mAutoLaunch, *mBalloonTimeout, *mSkipTaskbar,
82
*mDockWhenMinimized, *mDockWhenObscured, *mSessionManagement;
86
#endif // _CUSTOMTRAYLABEL_H