~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kdm/kcm/kdm-dlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (C) 1997 Thomas Tanghus (tanghus@earthling.net)
 
3
 
 
4
    This program is free software; you can redistribute it and/or
 
5
    modify it under the terms of the GNU General Public
 
6
    License as published by the Free Software Foundation; either
 
7
    version 2 of the License, or (at your option) any later version.
 
8
 
 
9
    This program 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 GNU
 
12
    General Public License for more details.
 
13
 
 
14
    You should have received a copy of the GNU Library General Public License
 
15
    along with this library; see the file COPYING.LIB.  If not, write to
 
16
    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
17
    Boston, MA 02110-1301, USA.
 
18
*/
 
19
 
 
20
 
 
21
#ifndef __KDMDLG_H__
 
22
#define __KDMDLG_H__
 
23
 
 
24
#include <QWidget>
 
25
 
 
26
class KLineEdit;
 
27
class Positioner;
 
28
class QLabel;
 
29
class QPushButton;
 
30
class QRadioButton;
 
31
 
 
32
class KDMDialogWidget : public QWidget {
 
33
    Q_OBJECT
 
34
 
 
35
  public:
 
36
    KDMDialogWidget(QWidget *parent);
 
37
 
 
38
    void load();
 
39
    void save();
 
40
    void defaults();
 
41
    QString quickHelp() const;
 
42
 
 
43
    bool eventFilter(QObject *, QEvent *);
 
44
 
 
45
  Q_SIGNALS:
 
46
    void changed();
 
47
 
 
48
  protected:
 
49
    void iconLoaderDragEnterEvent(QDragEnterEvent *event);
 
50
    void iconLoaderDropEvent(QDropEvent *event);
 
51
    bool setLogo(const QString &logo);
 
52
 
 
53
  private Q_SLOTS:
 
54
    void slotAreaRadioClicked(int id);
 
55
    void slotLogoButtonClicked();
 
56
 
 
57
  private:
 
58
    enum { KdmNone, KdmClock, KdmLogo };
 
59
    QLabel       *logoLabel;
 
60
    QPushButton  *logobutton;
 
61
    KLineEdit    *greetstr_lined;
 
62
    QString      logopath;
 
63
    QRadioButton *noneRadio;
 
64
    QRadioButton *clockRadio;
 
65
    QRadioButton *logoRadio;
 
66
    Positioner   *positioner;
 
67
 
 
68
};
 
69
 
 
70
#endif