/**********************************************************************
** Author: Nicolas Remy
** Copyright (C) 2002-2004 The Board of Trustees of the Leland Stanford Junior
** University
** All rights reserved.
**
** This file is part of the luckybackup project
**
** This file may be distributed and/or modified under the terms of the
** license defined by the Stanford Center for Reservoir Forecasting and
** appearing in the file LICENSE.XFREE included in the packaging of this file.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
** See http://www.gnu.org/copyleft/gpl.html for GPL licensing information.
**
** Contact the Stanford Center for Reservoir Forecasting, Stanford University
** if any conditions of this licensing are not clear to you.
**
**********************************************************************/
/*
===============================================================================================================================
This file is part of "luckyBackup" project
Copyright, Loukas Avgeriou
luckyBackup is distributed under the terms of the GNU General Public License
luckyBackup is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
luckyBackup is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with luckyBackup. If not, see .
project version : Please see "main.cpp" for project version
developer : luckyb
last modified : 22 May 2016
===============================================================================================================================
===============================================================================================================================
*/
#ifndef __GSTLAPPLI_GUI_UTILS_QDIRDIALOG_H__
#define __GSTLAPPLI_GUI_UTILS_QDIRDIALOG_H__
//#include
//#include
#include
class QDirDialog : public QFileDialog {
Q_OBJECT
public:
QDirDialog( const QString& extension,
const QString& dirName, QWidget* parent = 0,
const char* name = 0,
QFileDialog::FileMode mode = QFileDialog::DirectoryOnly,
bool modal = false );
QDirDialog( const QString& extension,
QWidget* parent = 0,
const char* name = 0,
QFileDialog::FileMode mode = QFileDialog::DirectoryOnly,
bool modal = false );
QString selectedDirectory() const { return selected_directory_; }
protected slots:
virtual void check_selected_directory( const QString& dirName );
virtual void accept();
protected:
virtual void init_dialog( QFileDialog::FileMode mode );
protected:
QString selected_directory_;
QString extension_;
};
#endif