QGIS API Documentation
3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
src
gui
qgsencodingfiledialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsencodingfiledialog.h - File dialog which queries the encoding type
3
--------------------------------------
4
Date : 16-Feb-2005
5
Copyright : (C) 2005 by Marco Hugentobler
6
email :
[email protected]
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSENCODINGFILEDIALOG_H
17
#define QGSENCODINGFILEDIALOG_H
18
19
#include <QFileDialog>
20
#include "qgis_gui.h"
21
#include "
qgis_sip.h
"
22
23
class
QComboBox;
24
class
QPushButton;
25
30
class
GUI_EXPORT
QgsEncodingFileDialog
:
public
QFileDialog
31
{
32
Q_OBJECT
33
public
:
37
QgsEncodingFileDialog
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
,
const
QString &caption = QString(),
const
QString &directory = QString(),
const
QString &filter = QString(),
const
QString &encoding = QString() );
39
QString encoding()
const
;
41
void
addCancelAll();
43
bool
cancelAll();
44
45
public
slots:
46
void
saveUsedEncoding();
47
48
void
pbnCancelAll_clicked();
49
50
private
:
52
QComboBox *mEncodingComboBox =
nullptr
;
53
54
/* The button to click */
55
QPushButton *mCancelAllButton =
nullptr
;
56
57
/* Set if user clicked 'Cancel All' */
58
bool
mCancelAll;
59
};
60
65
class
GUI_EXPORT
QgsEncodingSelectionDialog
:
public
QDialog
66
{
67
Q_OBJECT
68
69
public
:
77
QgsEncodingSelectionDialog
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
,
const
QString &caption = QString(),
const
QString &encoding = QString(), Qt::WindowFlags flags = Qt::WindowFlags() );
78
83
QString encoding()
const
;
84
89
void
setEncoding(
const
QString &encoding );
90
91
private
:
92
QComboBox *mEncodingComboBox =
nullptr
;
93
};
94
95
96
#endif
QgsEncodingFileDialog
A file dialog which lets the user select the preferred encoding type for a data provider.
Definition
qgsencodingfiledialog.h:31
QgsEncodingSelectionDialog
A dialog which presents the user with a choice of file encodings.
Definition
qgsencodingfiledialog.h:66
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:53
Generated on Thu Dec 26 2024 02:19:01 for QGIS API Documentation by
1.9.8