~ubuntu-branches/debian/lenny/italc/lenny

« back to all changes in this revision

Viewing changes to lib/include/lock_widget.h

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Winnertz
  • Date: 2008-06-17 13:46:54 UTC
  • mfrom: (1.2.1 upstream) (4.1.1 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080617134654-cl0gi4u524cv1ici
Tags: 1:1.0.9~rc3-1
* Package new upstream version
  - upstream ported the code to qt4.4 (Closes: #481974)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  lock_widget.h - widget for locking a client
 
3
 *
 
4
 *  Copyright (c) 2006 Tobias Doerffel <tobydox/at/users/dot/sf/dot/net>
 
5
 *  
 
6
 *  This file is part of iTALC - http://italc.sourceforge.net
 
7
 *
 
8
 *  This is free software; you can redistribute it and/or modify
 
9
 *  it under the terms of the GNU General Public License as published by
 
10
 *  the Free Software Foundation; either version 2 of the License, or
 
11
 *  (at your option) any later version.
 
12
 *
 
13
 *  This software is distributed in the hope that it will be useful,
 
14
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
 *  GNU General Public License for more details.
 
17
 *
 
18
 *  You should have received a copy of the GNU General Public License
 
19
 *  along with this software; if not, write to the Free Software
 
20
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
 
21
 *  USA.
 
22
 */
 
23
 
 
24
 
 
25
#ifndef _LOCK_WIDGET_H
 
26
#define _LOCK_WIDGET_H
 
27
 
 
28
#ifdef HAVE_CONFIG_H
 
29
#include <config.h>
 
30
#endif
 
31
 
 
32
#include <QtGui/QWidget>
 
33
#include <QtGui/QPixmap>
 
34
 
 
35
#include "system_key_trapper.h"
 
36
 
 
37
 
 
38
class IC_DllExport lockWidget : public QWidget
 
39
{
 
40
public:
 
41
        enum types
 
42
        {
 
43
                DesktopVisible, Black, NoBackground
 
44
        } ;
 
45
 
 
46
        lockWidget( types _type = Black );
 
47
        virtual ~lockWidget();
 
48
 
 
49
 
 
50
private:
 
51
        virtual void paintEvent( QPaintEvent * );
 
52
#ifdef BUILD_LINUX
 
53
        virtual bool x11Event( XEvent * _e );
 
54
#endif
 
55
 
 
56
        QPixmap m_background;
 
57
        types m_type;
 
58
        systemKeyTrapper m_sysKeyTrapper;
 
59
 
 
60
} ;
 
61
 
 
62
 
 
63
#endif
 
64