~x2go/x2go/x2goclient_master

« back to all changes in this revision

Viewing changes to src/sharewidget.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 SHAREWIDGET_H
 
19
#define SHAREWIDGET_H
 
20
 
 
21
#include <configwidget.h>
 
22
 
 
23
/**
 
24
        @author Oleksandr Shneyder <oleksandr.shneyder@obviously-nice.de>
 
25
*/
 
26
class QTreeView;
 
27
class QStandardItemModel;
 
28
class QLabel;
 
29
class QCheckBox;
 
30
class QComboBox;
 
31
 
 
32
class ShareWidget : public ConfigWidget
 
33
{
 
34
                Q_OBJECT
 
35
        public:
 
36
                ShareWidget ( QString id, ONMainWindow * mw,
 
37
                              QWidget * parent=0, Qt::WindowFlags f=0 );
 
38
                ~ShareWidget();
 
39
                void setDefaults();
 
40
                void saveSettings();
 
41
        private slots:
 
42
                void slot_openDir();
 
43
                void slot_addDir();
 
44
                void slot_delDir();
 
45
                void slot_convClicked();
 
46
        private:
 
47
                QTreeView* expTv;
 
48
                QStandardItemModel* model;
 
49
                QLabel *ldir;
 
50
                QCheckBox* cbFsSshTun;
 
51
                QCheckBox* cbFsConv;
 
52
                QComboBox* cbFrom;
 
53
                QComboBox* cbTo;
 
54
                QLabel* lFrom;
 
55
                QLabel* lTo;
 
56
 
 
57
        private:
 
58
                void readConfig();
 
59
                void loadEnc ( QComboBox* cb );
 
60
 
 
61
};
 
62
 
 
63
#endif