~x2go/x2go/x2goclient_master

« back to all changes in this revision

Viewing changes to sessionmanagedialog.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
 
 
18
 
#ifndef SESSIONMANAGEDIALOG_H
19
 
#define SESSIONMANAGEDIALOG_H
20
 
#include "x2goclientconfig.h"
21
 
 
22
 
#include <QDialog>
23
 
class QTreeWidget;
24
 
class QTreeWidgetItem;
25
 
class QPushButton;
26
 
class QModelIndex;
27
 
class ONMainWindow;
28
 
/**
29
 
        @author Oleksandr Shneyder <oleksandr.shneyder@obviously-nice.de>
30
 
*/
31
 
 
32
 
class SessionManageDialog : public QDialog
33
 
{
34
 
    Q_OBJECT
35
 
public:
36
 
    SessionManageDialog ( QWidget * parent,
37
 
                          bool onlyCreateIcon=false,
38
 
                          Qt::WFlags f=0 );
39
 
    ~SessionManageDialog();
40
 
    void loadSessions();
41
 
private:
42
 
    void initFolders(QTreeWidgetItem* parent, QString path);
43
 
private:
44
 
    QTreeWidget* sessions;
45
 
    QPushButton* editSession;
46
 
    QPushButton* removeSession;
47
 
    QPushButton* createSessionIcon;
48
 
    ONMainWindow* par;
49
 
    QString currentPath;
50
 
private slots:
51
 
    void slot_activated ( QTreeWidgetItem * item, int);
52
 
    void slotNew();
53
 
    void slot_edit();
54
 
    void slot_createSessionIcon();
55
 
    void slot_delete();
56
 
    void slot_dclicked ( QTreeWidgetItem * item, int );
57
 
};
58
 
 
59
 
#endif