summaryrefslogtreecommitdiffstats
path: root/ksirc/displayMgrMDI.h
blob: dc64565c0281c3005b531ddfb931eb99668ed485 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef __displaymgrmdi_h__
#define __displaymgrmdi_h__

#include "displayMgr.h"
#include "mditoplevel.h"

class DisplayMgrMDI : public TQObject, public DisplayMgr
{
    TQ_OBJECT
  
public:
    DisplayMgrMDI();
    virtual ~DisplayMgrMDI();

    virtual void newTopLevel(TQWidget *, bool show = FALSE);
    virtual void removeTopLevel(TQWidget *);

    virtual void show(TQWidget *);
    virtual void hide(TQWidget *);
    virtual void raise(TQWidget *, bool takefocus = false);

    virtual void setCaption(TQWidget *, const TQString&);

public slots:
    virtual void slotCycleTabsLeft();
    virtual void slotCycleTabsRight();

protected slots:
    void reparentReq();
    void moveWindowLeft();
    void moveWindowRight();
    void setTabPosition(int);
    void setFullScreen(bool);

protected:
    void moveWindow(int step);
    void refreshMenuEntry();

private:
    MDITopLevel *topLevel();

    TQGuardedPtr<MDITopLevel> m_topLevel;
    int m_moveRightTab, m_moveLeftTab;
    TQPopupMenu *m_popupWindows;
};


#endif