~x2go/x2go/x2goclient_master

« back to all changes in this revision

Viewing changes to src/appdialog.h

  • Committer: Mihai Moldovan
  • Date: 2015-03-04 20:15:47 UTC
  • Revision ID: git-v1:b7398771a7abd84ddcff407063edb95dd0a205d3
general: move *.cpp and *.h files to src/ and *.ts files to src/i18n/.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**************************************************************************
 
2
*   Copyright (C) 2005-2015 by Oleksandr Shneyder                         *
 
3
*   o.shneyder@phoca-gmbh.de                                              *
 
4
*                                                                         *
 
5
*   This program is free software; you can redistribute it and/or modify  *
 
6
*   it under the terms of the GNU General Public License as published by  *
 
7
*   the Free Software Foundation; either version 2 of the License, or     *
 
8
*   (at your option) any later version.                                   *
 
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         *
 
12
*   GNU General Public License for more details.                          *
 
13
*                                                                         *
 
14
*   You should have received a copy of the GNU General Public License     *
 
15
*   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
 
16
***************************************************************************/
 
17
#ifndef APPDIALOG_H
 
18
#define APPDIALOG_H
 
19
 
 
20
#include <QObject>
 
21
#include "ui_appdialog.h"
 
22
 
 
23
class QTreeWidgetItem;
 
24
class ONMainWindow;
 
25
 
 
26
class AppDialog: public QDialog, public Ui_AppDialog
 
27
{
 
28
    Q_OBJECT
 
29
public:
 
30
    AppDialog(ONMainWindow *parent = 0);
 
31
    ~AppDialog();
 
32
private:
 
33
    void loadApps();
 
34
    QTreeWidgetItem* initTopItem(QString text, QPixmap icon=QPixmap());
 
35
    ONMainWindow* mw;
 
36
    QTreeWidgetItem* media;
 
37
    QTreeWidgetItem* dev;
 
38
    QTreeWidgetItem* edu;
 
39
    QTreeWidgetItem* game;
 
40
    QTreeWidgetItem* graph;
 
41
    QTreeWidgetItem* net;
 
42
    QTreeWidgetItem* office;
 
43
    QTreeWidgetItem* set;
 
44
    QTreeWidgetItem* sys;
 
45
    QTreeWidgetItem* util;
 
46
    QTreeWidgetItem* other;
 
47
private slots:
 
48
    void slotSelectedChanged();
 
49
    void slotStartSelected();
 
50
    void slotDoubleClicked(QTreeWidgetItem* item);
 
51
    void slotSearchChanged(QString text);
 
52
};
 
53
 
 
54
#endif // APPDIALOG_H