source: src-qt4/PCDM/src/pcdm-gui.h @ b7bd617

9.2-releasereleng/10.0releng/10.0.1
Last change on this file since b7bd617 was b7bd617, checked in by Ken Moore <ken@…>, 6 months ago

Setup PCDM to throw the theme's background image on any additional monitors/screens while PCDM is running.

  • Property mode set to 100644
File size: 2.1 KB
Line 
1/* PCDM Login Manager:
2*  Written by Ken Moore (ken@pcbsd.org) 2012/2013
3*  Copyright(c) 2013 by the PC-BSD Project
4*  Available under the 3-clause BSD license
5*/
6
7#ifndef PCDMGUI_H
8#define PCDMGUI_H
9
10#include <QtGui/QWidget>
11#include <QMessageBox>
12#include <QFile>
13#include <QGraphicsScene>
14#include <QMainWindow>
15#include <QToolBar>
16#include <QToolButton>
17#include <QMenu>
18#include <QLabel>
19#include <QComboBox>
20#include <QPushButton>
21#include <QLineEdit>
22#include <QGridLayout>
23#include <QSpacerItem>
24#include <QProcessEnvironment>
25#include <QDesktopWidget>
26
27#include "pcdm-backend.h"
28#include "themeStruct.h"
29#include "fancySwitcher.h"
30#include "dialogKeyboard.h"
31#include "dialogLocale.h"
32#include "loginWidget.h"
33
34#define TMPLANGFILE QString("/tmp/.PCDMLang")
35
36class PCDMgui : public QMainWindow
37{
38    Q_OBJECT
39
40public:
41    PCDMgui();
42    ~PCDMgui();
43    void changeLang(QString code);
44    void progInit();
45
46private slots:
47    void slotStartLogin(QString,QString);
48    void slotLoginSuccess();
49    void slotLoginFailure();
50    void slotUserChanged(QString);
51    void slotUserSelected(QString);
52    void slotRestartComputer();
53    void slotShutdownComputer();
54    void slotClosePCDM();
55    void slotChangeLocale();
56    void slotChangeKeyboardLayout();
57    void slotPushVirtKeyboard();    // Start xvkbd
58    void slotLocaleChanged(QString);
59
60private:
61    //Objects
62    LoginWidget* loginW;
63    widgetKeyboard* wKey;
64    widgetLocale* wLoc;
65    QToolBar* toolbar;
66    QAction *virtkeyboardButton, *localeButton, *keyboardButton;
67    QToolButton *systemButton;
68    QMenu* systemMenu;
69    FancySwitcher* deSwitcher; // full switcher
70    bool simpleDESwitcher;
71    QList<QWidget*> screens;
72   
73    QProcess* vkbd;
74    ThemeStruct* currentTheme;
75
76    QTranslator* m_translator;
77    QString translationDir;
78   
79    QString hostname;
80    //Functions
81    void createGUIfromTheme();
82    void fillExtraScreens();
83    void retranslateUi();
84    void loadTheme();
85    void loadLastUser();
86    void loadLastDE(QString);
87    void saveLastLogin(QString, QString);
88
89signals:
90    void xLoginAttempt(QString, QString, QString);
91
92};
93
94#endif // PCDMGUI_H
Note: See TracBrowser for help on using the repository browser.