Seamly2D
Code documentation
export_format_combobox.h
Go to the documentation of this file.
1
/******************************************************************************
2
* @file export_format_combobox.h
3
** @author DS Caskey
4
** @date Mar 15, 2022
5
**
6
** @brief
7
** @copyright
8
**
9
** Seamly2D 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 3 of the License, or
12
** (at your option) any later version.
13
**
14
** Seamly2D is distributed in the hope that it will be useful,
15
** but WITHOUT ANY WARRANTY; without even the implied warranty of
16
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
** GNU General Public License for more details.
18
**
19
** You should have received a copy of the GNU General Public License
20
** along with Seamly2D. If not, see <http://www.gnu.org/licenses/>.
21
**
22
*****************************************************************************/
23
24
25
#ifndef LINEWEIGHT_COMBOBOX_H
26
#define LINEWEIGHT_COMBOBOX_H
27
28
#include <QComboBox>
29
#include <QWidget>
30
31
#include "../vmisc/def.h"
32
#include "../ifc/xml/vabstractpattern.h"
33
34
/**
35
* A comboBox for choosing an export format type.
36
*/
37
class
ExportFormatCombobox
:
public
QComboBox
38
{
39
Q_OBJECT
40
41
public
:
42
ExportFormatCombobox
(QWidget *parent =
nullptr
,
const
char
*name =
nullptr
);
43
virtual
~ExportFormatCombobox
();
44
45
void
init
();
46
47
LayoutExportFormat
getExportFormat
()
const
;
48
void
setExportFormat
(
LayoutExportFormat
&format);
49
static
QString
exportFormatDescription
(
LayoutExportFormat
format);
50
static
QString
makeHelpFormatList
();
51
void
setCurrentToDefault
();
52
53
private
slots:
54
void
updateExportFormat
(
int
index);
55
56
signals:
57
void
exportFormatChanged
(
const
LayoutExportFormat
&format);
58
59
private
:
60
static
QVector<std::pair<QString, LayoutExportFormat>
>
initFormats
();
61
static
bool
supportPSTest
();
62
static
bool
testPdf
();
63
static
bool
havePdf
;
64
static
bool
tested
;
65
LayoutExportFormat
m_currentFormat
;
66
};
67
68
#endif
ExportFormatCombobox
Definition:
export_format_combobox.h:38
ExportFormatCombobox::initFormats
static QVector< std::pair< QString, LayoutExportFormat > > initFormats()
Definition:
export_format_combobox.cpp:108
ExportFormatCombobox::supportPSTest
static bool supportPSTest()
Definition:
export_format_combobox.cpp:164
ExportFormatCombobox::ExportFormatCombobox
ExportFormatCombobox(QWidget *parent=nullptr, const char *name=nullptr)
Definition:
export_format_combobox.cpp:49
ExportFormatCombobox::setCurrentToDefault
void setCurrentToDefault()
Definition:
export_format_combobox.cpp:317
ExportFormatCombobox::exportFormatDescription
static QString exportFormatDescription(LayoutExportFormat format)
Definition:
export_format_combobox.cpp:201
ExportFormatCombobox::havePdf
static bool havePdf
Definition:
export_format_combobox.h:63
ExportFormatCombobox::testPdf
static bool testPdf()
Definition:
export_format_combobox.cpp:175
ExportFormatCombobox::tested
static bool tested
Definition:
export_format_combobox.h:64
ExportFormatCombobox::updateExportFormat
void updateExportFormat(int index)
Definition:
export_format_combobox.cpp:306
ExportFormatCombobox::exportFormatChanged
void exportFormatChanged(const LayoutExportFormat &format)
ExportFormatCombobox::getExportFormat
LayoutExportFormat getExportFormat() const
Definition:
export_format_combobox.cpp:87
ExportFormatCombobox::~ExportFormatCombobox
virtual ~ExportFormatCombobox()
Definition:
export_format_combobox.cpp:61
ExportFormatCombobox::m_currentFormat
LayoutExportFormat m_currentFormat
Definition:
export_format_combobox.h:65
ExportFormatCombobox::init
void init()
Definition:
export_format_combobox.cpp:66
ExportFormatCombobox::setExportFormat
void setExportFormat(LayoutExportFormat &format)
Definition:
export_format_combobox.cpp:95
ExportFormatCombobox::makeHelpFormatList
static QString makeHelpFormatList()
Definition:
export_format_combobox.cpp:291
QVector
Definition:
vdomdocument.h:75
LayoutExportFormat
LayoutExportFormat
Definition:
def.h:60
src
libs
vwidgets
export_format_combobox.h
Generated by
1.9.1