VPTissue Reference Manual
ExportActions.h
Go to the documentation of this file.
1 #ifndef GUI_PROJECTACTIONS_EXPORTACTIONS_H_INCLUDED
2 #define GUI_PROJECTACTIONS_EXPORTACTIONS_H_INCLUDED
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
22 #include "session/ISession.h"
23 #include "workspace/IProject.h"
24 
25 #include <QObject>
26 #include <map>
27 #include <vector>
28 
29 class QAction;
30 class QWidget;
31 
32 namespace SimShell {
33 namespace Gui {
34 namespace ProjectActions {
35 
44 class ExportActions : public QObject
45 {
46  Q_OBJECT
47 public:
48  ExportActions(const std::shared_ptr<Ws::IProject>&,
49  const Session::ISession::ExportersType&,
50  QWidget* parent = nullptr);
51 
53  virtual ~ExportActions();
54 
57  const std::vector<QAction*>& GetActions() const;
58 
59 private slots:
60  void SLOT_Trigger();
61 
62 private:
63  std::shared_ptr<Ws::IProject> m_project;
64  QWidget* m_parent;
65  std::vector<QAction*> m_actions;
66  std::map<QObject*, std::pair<std::string, Session::ISession::ExporterType>>
67  m_callback_map;
68 };
69 
70 } // namespace
71 } // namespace
72 } // namespace
73 
74 #endif // end_of_inclde_guard
Interface for IProject.
virtual ~ExportActions()
Virtual destructor.
Interface for ISession.
const std::vector< QAction * > & GetActions() const
Get actions.
For a given Session::ISession::ExportersType instance, generates a list of actions that will trigger ...
Definition: ExportActions.h:44
see the online Qt documentation
see the online Qt documentation
Namespace for generic graphical shell for simulators.
Definition: SimSession.h:32