~cmiller/ubuntu/trusty/icewm/translations-cause-crash-lp447883

« back to all changes in this revision

Viewing changes to src/wmtaskbar.h

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2008-03-10 21:24:25 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080310212425-562btgm3vbwzvhu0
Tags: 1.2.35-1
* New upstream release with one fix from CVS
* Automatic linking with gcc -lsupc++ fixed (failed in recent versions),
  also using "-Wl,--as-needed"
* Documentation update - README.Debian reordered by importance
* Changed font defaults in Xft specifications to consider Bitstream Vera
  family as alternative font (closes: #360060, #319191, #349952, #456463),
  also documented how to configure alternative fonts
* Added Bernhard's iconify_on_wm_hints as dpatch (closes: #428566, #389919)
* force use of bash in upstream's Makefile to keep the installation
  magic as-is (closes: #459181)

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#ifdef CONFIG_TASKBAR
28
28
class TaskBar;
29
29
 
 
30
class EdgeTrigger: public YWindow, public YTimerListener {
 
31
public:
 
32
    EdgeTrigger(TaskBar *owner);
 
33
    virtual ~EdgeTrigger();
 
34
 
 
35
    void startHide();
 
36
    void stopHide();
 
37
 
 
38
    virtual void handleDNDEnter();
 
39
    virtual void handleDNDLeave();
 
40
 
 
41
    virtual void handleCrossing(const XCrossingEvent &crossing);
 
42
    virtual bool handleTimer(YTimer *t);
 
43
private:
 
44
    TaskBar *fTaskBar;
 
45
    YTimer *fAutoHideTimer;
 
46
    bool fDoShow;
 
47
};
 
48
 
30
49
class TaskBar:
31
50
    public YFrameClient,
32
 
    public YTimerListener,
33
51
    public YActionListener,
34
52
    public YPopDownListener,
35
53
    public YXTrayNotifier
46
64
    virtual void handleEndDrag(const XButtonEvent &down, const XButtonEvent &up);
47
65
 
48
66
    virtual void handleCrossing(const XCrossingEvent &crossing);
 
67
#if false
49
68
    virtual bool handleTimer(YTimer *t);
 
69
#endif
50
70
 
51
71
    virtual void actionPerformed(YAction *action, unsigned int modifiers);
52
72
    virtual void handlePopDown(YPopupWindow *popup);
65
85
    void popupStartMenu();
66
86
    void popupWindowListMenu();
67
87
 
68
 
    virtual void handleDNDEnter();
69
 
    virtual void handleDNDLeave();
70
88
    void popOut();
71
89
    void showBar(bool visible);
72
90
    void handleCollapseButton();
90
108
    void trayChanged();
91
109
    YXTray *netwmTray() { return fTray2; }
92
110
 
 
111
    bool autoTimer(bool show);
 
112
    void updateFullscreen(bool fullscreen);
 
113
    Window edgeTriggerWindow() { return fEdgeTrigger->handle(); }
 
114
 
93
115
private:
94
116
    TaskPane *fTasks;
95
117
 
126
148
    YXTray *fTray2;
127
149
 
128
150
    bool fIsHidden;
 
151
    bool fFullscreen;
129
152
    bool fIsCollapsed;
130
153
    bool fIsMapped;
131
154
    bool fMenuShown;
 
155
#if false
132
156
    YTimer *fAutoHideTimer;
 
157
#endif
133
158
 
134
159
    YMenu *taskBarMenu;
135
160
 
145
170
    void initMenu();
146
171
    void initApplets();
147
172
    void updateLayout(int &size_w, int &size_h);
 
173
 
 
174
    EdgeTrigger *fEdgeTrigger;
148
175
};
149
176
 
150
177
extern TaskBar *taskBar; // !!! get rid of this