CCIMXDesktop
Loading...
Searching...
No Matches
ToolLeftWidgets.h
1
#ifndef TOOLLEFTWIDGETS_H
2
#define TOOLLEFTWIDGETS_H
3
4
#include <QWidget>
5
6
class
QButtonGroup;
7
12
class
ToolLeftWidgets
:
public
QWidget {
13
Q_OBJECT
14
15
public
:
19
using
ToolButtonCallBack
= std::function<void(
void
)>;
20
25
explicit
ToolLeftWidgets
(QWidget* parent =
nullptr
);
26
31
struct
ToolButtonInstallPackage
{
32
const
QString&
name
;
33
const
QIcon&
icon
;
34
ToolButtonCallBack
callback
;
35
};
36
41
void
install_toolbuttons
(
const
ToolButtonInstallPackage
package);
42
43
private
:
47
QButtonGroup* action_group;
48
};
49
50
#endif
// TOOLLEFTWIDGETS_H
ToolLeftWidgets
The ToolLeftWidgets class A custom widget for displaying a vertical tool button panel.
Definition
ToolLeftWidgets.h:12
ToolLeftWidgets::ToolButtonCallBack
std::function< void(void)> ToolButtonCallBack
Callback function type for tool buttons.
Definition
ToolLeftWidgets.h:19
ToolLeftWidgets::install_toolbuttons
void install_toolbuttons(const ToolButtonInstallPackage package)
Install a tool button into the widget.
Definition
ToolLeftWidgets.cpp:24
ToolLeftWidgets::ToolButtonInstallPackage
ToolButtonInstallPackage Structure for packaging a tool button's configuration.
Definition
ToolLeftWidgets.h:31
ToolLeftWidgets::ToolButtonInstallPackage::icon
const QIcon & icon
Button icon.
Definition
ToolLeftWidgets.h:33
ToolLeftWidgets::ToolButtonInstallPackage::name
const QString & name
Button name or label.
Definition
ToolLeftWidgets.h:32
ToolLeftWidgets::ToolButtonInstallPackage::callback
ToolButtonCallBack callback
Callback function triggered on button press.
Definition
ToolLeftWidgets.h:34
extern_app
professionals
library
OpencvQtAdapter
ui_interface
tool_left_widgets
ToolLeftWidgets.h
Generated by
1.9.8