~feng-kylin/youker-assistant/youker-assistant

« back to all changes in this revision

Viewing changes to mainui/cameramanager.h

  • Committer: kobe
  • Date: 2015-02-13 07:37:10 UTC
  • Revision ID: xiangli@ubuntukylin.com-20150213073710-0jyp02ilyi5njj10
Qt Version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef CAMERAMANAGER_H
 
2
#define CAMERAMANAGER_H
 
3
 
 
4
#include <QDialog>
 
5
 
 
6
#include "../component/kylinlistwidget.h"
 
7
#include "../component/kylintitlebar.h"
 
8
#include "../component/kylinlistwidgetitem.h"
 
9
 
 
10
class SessionDispatcher;
 
11
class MainWindow;
 
12
class CameraManager :public QDialog
 
13
{
 
14
  Q_OBJECT
 
15
public:
 
16
    CameraManager(QWidget *parent = 0, SessionDispatcher *proxy = 0);
 
17
    ~CameraManager();
 
18
    void setParentWindow(MainWindow *From) { mainwindow = From;}
 
19
    void initBackgroundList();
 
20
    void setLanguage();
 
21
    void initConnect();
 
22
    void setOKButtonEnable(bool enable);
 
23
 
 
24
public slots:
 
25
    void onCloseButtonClicked();
 
26
    void onOKButtonClicked();
 
27
    void onViewButtonClicked();
 
28
 
 
29
private:
 
30
    void initTitleBar();
 
31
 
 
32
private:
 
33
    MainWindow *mainwindow;
 
34
    SessionDispatcher *sessionproxy;
 
35
    KylinTitleBar *title_bar;
 
36
    QLabel *msg_label;
 
37
    QLabel *tip_label;
 
38
    QLabel *description_label;
 
39
    QPushButton *okBtn;
 
40
    QPushButton *viewBtn;
 
41
};
 
42
 
 
43
#endif // CAMERAMANAGER_H