Debian Codegraph @

src/qdirdialog.h

raw symbols SCIP
1 /**********************************************************************
2 ** Author: Nicolas Remy
3 ** Copyright (C) 2002-2004 The Board of Trustees of the Leland Stanford Junior
4 ** University
5 ** All rights reserved.
6 **
7 ** This file is part of the luckybackup project
8 **
9 ** This file may be distributed and/or modified under the terms of the
10 ** license defined by the Stanford Center for Reservoir Forecasting and
11 ** appearing in the file LICENSE.XFREE included in the packaging of this file.
12 **
13 ** This file may be distributed and/or modified under the terms of the
14 ** GNU General Public License version 2 as published by the Free Software
15 ** Foundation and appearing in the file LICENSE.GPL included in the
16 ** packaging of this file.
17 **
18 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
19 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 **
21 ** See http://www.gnu.org/copyleft/gpl.html for GPL licensing information.
22 **
23 ** Contact the Stanford Center for Reservoir Forecasting, Stanford University
24 ** if any conditions of this licensing are not clear to you.
25 **
26 **********************************************************************/
27 /*
28 ===============================================================================================================================
29 This file is part of "luckyBackup" project
30 Copyright, Loukas Avgeriou
31 luckyBackup is distributed under the terms of the GNU General Public License
32 luckyBackup is free software: you can redistribute it and/or modify
33 it under the terms of the GNU General Public License as published by
34 the Free Software Foundation, either version 3 of the License, or
35 (at your option) any later version.
36
37 luckyBackup is distributed in the hope that it will be useful,
38 but WITHOUT ANY WARRANTY; without even the implied warranty of
39 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40 GNU General Public License for more details.
41
42 You should have received a copy of the GNU General Public License
43 along with luckyBackup. If not, see <http://www.gnu.org/licenses/>.
44
45 project version : Please see "main.cpp" for project version
46
47 developer : luckyb
48 last modified : 22 May 2016
49 ===============================================================================================================================
50 ===============================================================================================================================
51 */
52 #ifndef __GSTLAPPLI_GUI_UTILS_QDIRDIALOG_H__
53 #define __GSTLAPPLI_GUI_UTILS_QDIRDIALOG_H__
54
55 //#include <GsTLAppli/gui/common.h>
56
57 //#include <qfiledialog.h>
58 #include <QFileDialog>
59
60 class QDirDialog : public QFileDialog {
61
62 Q_OBJECT
63
64 public:
65 QDirDialog( const QString& extension,
66 const QString& dirName, QWidget* parent = 0,
67 const char* name = 0,
68 QFileDialog::FileMode mode = QFileDialog::DirectoryOnly,
69 bool modal = false );
70 QDirDialog( const QString& extension,
71 QWidget* parent = 0,
72 const char* name = 0,
73 QFileDialog::FileMode mode = QFileDialog::DirectoryOnly,
74 bool modal = false );
75
76 QString selectedDirectory() const { return selected_directory_; }
77
78
79 protected slots:
80 virtual void check_selected_directory( const QString& dirName );
81 virtual void accept();
82
83 protected:
84 virtual void init_dialog( QFileDialog::FileMode mode );
85
86 protected:
87 QString selected_directory_;
88 QString extension_;
89 };
90
91 #endif