summaryrefslogtreecommitdiffstats
path: root/src/app/fullScreenAction.h
blob: e86511f51a320e3587e95755eaf219c927b49051 (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
// (C) 2005 Max Howell (max.howell@methylblue.com)
// See COPYING file for licensing information

#include <tdeaction.h>


/**
 * @class FullSCreenAction
 * @author Max Howell <max.howell@methylblue.com>
 * @short Adapted TDEToggleFullScreenAction, mainly because that class is shit
 */
class FullScreenAction : public TDEToggleAction
{
public:
    FullScreenAction( TQWidget *window, TDEActionCollection* );

    virtual void setChecked( bool );
    virtual void setEnabled( bool );

protected:
    virtual bool eventFilter( TQObject* o, TQEvent* e );

private:
    TQWidget *m_window;
    bool m_shouldBeDisabled;
    unsigned long m_state;
};