Scribus
Open source desktop publishing at your fingertips
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
gtdialogs.h
1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
7
/***************************************************************************
8
* Copyright (C) 2004 by Riku Leino *
9
* tsoots@gmail.com *
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
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. See the *
19
* GNU General Public License for more details. *
20
* *
21
* You should have received a copy of the GNU General Public License *
22
* along with this program; if not, write to the *
23
* Free Software Foundation, Inc., *
24
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
25
***************************************************************************/
26
27
#ifndef GTDIALOGS_H
28
#define GTDIALOGS_H
29
30
#include <QDialog>
31
32
#include "scribusapi.h"
33
34
class
PrefsContext
;
35
class
QComboBox;
36
class
QCheckBox;
37
class
gtFileDialog
;
38
39
40
class
SCRIBUS_API
gtImporterDialog
:
public
QDialog
41
{
42
Q_OBJECT
43
private
:
44
QComboBox* importerCombo;
45
QCheckBox* rememberCheck;
46
QPushButton* okButton;
47
public
:
48
gtImporterDialog
(
const
QStringList& importers,
int
currentSelection);
49
~
gtImporterDialog
();
50
bool
shouldRemember();
51
QString getImporter();
52
};
53
54
class
SCRIBUS_API
gtDialogs
55
{
56
private
:
57
gtFileDialog
* fdia;
58
QString fileName;
59
QString encoding;
60
int
importer;
61
PrefsContext
* prefs;
62
QString pwd;
63
public
:
64
gtDialogs
();
65
~
gtDialogs
();
66
const
QString& getFileName();
67
const
QString& getEncoding();
68
int
getImporter();
69
bool
importTextOnly();
70
bool
runFileDialog(
const
QString& filters,
const
QStringList& importers);
71
bool
runImporterDialog(
const
QStringList& importers);
72
};
73
74
#endif // GTDIALOGS_H
gtImporterDialog
Definition:
gtdialogs.h:40
gtFileDialog
Enhanced file dialog for get-text plugins This class is separated from gtdialogs.h file due the huge ...
Definition:
gtfiledialog.h:21
gtDialogs
Definition:
gtdialogs.h:54
PrefsContext
Definition:
prefscontext.h:40
scribus
ui
gtdialogs.h
Generated on Tue Sep 29 2015 09:15:19 for Scribus by
1.8.9.1