File failed to load: https://isis.astrogeology.usgs.gov/8.3.0/Object/assets/jax/output/NativeMML/config.js
Isis 3 Programmer Reference
ToolPad.h
1#ifndef Qisis_ToolPad_h
2#define Qisis_ToolPad_h
3
4#include <QToolBar>
5#include <QActionGroup>
6
7namespace Isis {
14 class ToolPad : public QToolBar {
15 Q_OBJECT
16
17 public:
25 ToolPad(const QString &label, QWidget *parent) : QToolBar(label, parent) {
26 p_actionGroup = new QActionGroup(parent);
27 p_actionGroup->setExclusive(true);
28 setIconSize(QSize(22, 22));
29 }
30
31
38 void addAction(QAction *action) {
39 action->setCheckable(true);
40 p_actionGroup->addAction(action);
41 QToolBar::addAction(action);
42 }
43
44 private:
45 QActionGroup *p_actionGroup;
46 };
47};
48
49#endif
void addAction(QAction *action)
Adds an action to the action group and tool bar.
Definition ToolPad.h:38
ToolPad(const QString &label, QWidget *parent)
Toolpad constructor.
Definition ToolPad.h:25
QActionGroup * p_actionGroup
Group of actions.
Definition ToolPad.h:45
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 02/24/2025 16:15:18