1
#ifndef _KVI_FILEDIALOG_H_
2
#define _KVI_FILEDIALOG_H_
3
//=============================================================================
5
// File : kvi_filedialog.h
6
// Creation date : Mon Nov 20 2000 03:52:12 CEST by Szymon Stefanek
8
// This file is part of the KVirc irc client distribution
9
// Copyright (C) 2000-2008 Szymon Stefanek (pragma at kvirc dot net)
11
// This program is FREE software. You can redistribute it and/or
12
// modify it under the terms of the GNU General Public License
13
// as published by the Free Software Foundation; either version 2
14
// of the License, or (at your opinion) any later version.
16
// This program is distributed in the HOPE that it will be USEFUL,
17
// but WITHOUT ANY WARRANTY; without even the implied warranty of
18
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19
// See the GNU General Public License for more details.
21
// You should have received a copy of the GNU General Public License
22
// along with this program. If not, write to the Free Software Foundation,
23
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25
//=============================================================================
28
* \file kvi_filedialog.h
29
* \author Szymon Stefanek
30
* \brief File dialog helpers
37
#include "kvi_settings.h"
38
#include "kvi_string.h"
39
#include "kvi_tal_filedialog.h"
41
#include <QStringList>
44
* \class KviFileDialog
45
* \brief File dialog class
47
class KVIRC_API KviFileDialog : public KviTalFileDialog
52
* \brief Constructs the file dialog object
53
* \param szDirName The directory where to use the dialog
54
* \param szFilter The filter to use
55
* \param pParent The parent widget
56
* \param name The name of the dialog
57
* \param bModal Whether to have a modal behaviour
58
* \return KviFileDialog
60
KviFileDialog(const QString & szDirName, const QString & szFilter = QString(), QWidget * pParent = 0, const char * name = 0, bool bModal = false);
63
* \brief Destroys the file dialog object
68
* \param szBuffer The buffer where to store the data
69
* \param szCaption The caption of the dialog
70
* \param szInitial The initial directory
71
* \param szFilter The filter to use
72
* \param bShowHidden Whether to show hidden files
73
* \param bShowNative Whether to show native dialogs
74
* \param pParent The parent widget
77
static bool askForOpenFileName(QString & szBuffer, const QString & szCaption, const QString & szInitial = QString(), const QString & szFilter = QString(), bool bShowHidden = false, bool bShowNative = true, QWidget * pParent = 0);
80
* \param szBuffer The buffer where to store the data
81
* \param szCaption The caption of the dialog
82
* \param szInitial The initial directory
83
* \param szFilter The filter to use
84
* \param bShowHidden Whether to show hidden files
85
* \param bConfirmOverwrite Whether to avoid the check for an already existing file being overwritten
86
* \param bShowNative Whether to show native dialogs
87
* \param pParent The parent widget
90
static bool askForSaveFileName(QString & szBuffer, const QString & szCaption, const QString & szInitial = QString(), const QString & szFilter = QString(), bool bShowHidden = false, bool bConfirmOverwrite = false, bool bShowNative = true, QWidget * pParent = 0);
93
* \param szBuffer The buffer where to store the data
94
* \param szCaption The caption of the dialog
95
* \param szInitial The initial directory
96
* \param szFilter The filter to use
97
* \param bShowHidden Whether to show hidden files
98
* \param bShowNative Whether to show native dialogs
99
* \param pParent The parent widget
102
static bool askForDirectoryName(QString & szBuffer, const QString & szCaption, const QString & szInitial, const QString & szFilter = QString(), bool bShowHidden = false, bool bShowNative = true, QWidget * pParent = 0);
105
* \param szBuffer The buffer where to store the data
106
* \param szCaption The caption of the dialog
107
* \param szInitial The initial directory
108
* \param szFilter The filter to use
109
* \param bShowHidden Whether to show hidden files
110
* \param bShowNative Whether to show native dialogs
111
* \param pParent The parent widget
114
static bool askForOpenFileNames(QStringList & szBuffer, const QString & szCaption, const QString & szInitial, const QString & szFilter = QString(), bool bShowHidden = false, bool bShowNative = true, QWidget * pParent = 0);
117
#endif //_KVI_FILEDIALOG_H_