umbrello  2.32.3
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
cmdlineexportallviewsevent.h
Go to the documentation of this file.
1 /***************************************************************************
2  * This program is free software; you can redistribute it and/or modify *
3  * it under the terms of the GNU General Public License as published by *
4  * the Free Software Foundation; either version 2 of the License, or *
5  * (at your option) any later version. *
6  * *
7  * copyright (C) 2006-2020 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef CMDLINEEXPORTALLVIEWSEVENT_H
12 #define CMDLINEEXPORTALLVIEWSEVENT_H
13 
14 #include <QUrl>
15 #include <QEvent>
16 
27 class CmdLineExportAllViewsEvent : public QEvent
28 {
29 public:
30 
31  static QEvent::Type eventType();
32 
33  CmdLineExportAllViewsEvent(const QString &imageType, const QUrl &directory, const bool useFolders);
34 
36 
37  void exportAllViews();
38 
39 private:
40 
41  static const QEvent::Type type_;
42 
43  QString m_imageType;
44  QUrl m_directory;
45  bool m_useFolders;
46 
47 };
48 
49 #endif
Definition: cmdlineexportallviewsevent.h:28
QString m_imageType
The type of the images the views will be exported to.
Definition: cmdlineexportallviewsevent.h:43
void exportAllViews()
Definition: cmdlineexportallviewsevent.cpp:72
virtual ~CmdLineExportAllViewsEvent()
Definition: cmdlineexportallviewsevent.cpp:63
static QEvent::Type eventType()
Definition: cmdlineexportallviewsevent.cpp:39
static const QEvent::Type type_
Definition: cmdlineexportallviewsevent.h:41
bool m_useFolders
If tree structure of the views in the document must be created in the target directory.
Definition: cmdlineexportallviewsevent.h:45
CmdLineExportAllViewsEvent(const QString &imageType, const QUrl &directory, const bool useFolders)
Definition: cmdlineexportallviewsevent.cpp:51
QUrl m_directory
The url of the directory where the images will be saved.
Definition: cmdlineexportallviewsevent.h:44
std::string Type
Definition: basictypes.h:385