OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ToolBarManager.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
10
11// Qt header
12#include <QtCore/qstring.h>
13#include <QtWidgets/qtoolbar.h> // Base class
14
15// std header
16#include <map>
17#include <list>
18
19class QTimer;
20class QLabel;
21class QMainWindow;
22
26public:
27 ToolBarManager(QMainWindow* _window);
28 virtual ~ToolBarManager();
29
30 void setCurrentTool(const QString& _toolName);
31
32 void addTool(const QString& _toolName, QToolBar* _toolBar);
33 void removeTool(const QString& _toolName);
34
35private:
36 QMainWindow* m_window;
37
38 QString m_currentTool;
39 std::map<QString, QToolBar*> m_toolBars;
40};
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NODEFAULT(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:22
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
Definition ToolBarManager.h:23
void addTool(const QString &_toolName, QToolBar *_toolBar)
Definition ToolBarManager.cpp:65
void removeTool(const QString &_toolName)
Definition ToolBarManager.cpp:80
void setCurrentTool(const QString &_toolName)
Definition ToolBarManager.cpp:30
virtual ~ToolBarManager()
Definition ToolBarManager.cpp:26
ToolBarManager(QMainWindow *_window)
Definition ToolBarManager.cpp:20