casa
$Rev:20696$
|
#include <QtMouseToolBar.qo.h>
Public Member Functions | |
QtMouseToolBar (QtMouseToolState *msbtns, QtDisplayPanel *qdp=0, QWidget *parent=0) | |
~QtMouseToolBar () | |
QtMouseToolButton * | button (const std::string &name) |
Protected Slots | |
virtual void | chgMouseBtn_ (std::string tool, Int button) |
Connected to the QtMouseToolState::mouseBtnChg() signal. | |
Protected Attributes | |
QtMouseToolState * | msbtns_ |
Overridden from QToolBar, responding to clicks from any mouse button. | |
Vector< String > | tools_ |
Names of tools within this toolbar (in order) | |
std::map< std::string, QtMouseToolButton * > | buttons_ |
Definition at line 119 of file QtMouseToolBar.qo.h.
casa::QtMouseToolBar::QtMouseToolBar | ( | QtMouseToolState * | msbtns, |
QtDisplayPanel * | qdp = 0 , |
||
QWidget * | parent = 0 |
||
) |
casa::QtMouseToolBar::~QtMouseToolBar | ( | ) | [inline] |
Definition at line 130 of file QtMouseToolBar.qo.h.
QtMouseToolButton* casa::QtMouseToolBar::button | ( | const std::string & | name | ) |
virtual void casa::QtMouseToolBar::chgMouseBtn_ | ( | std::string | tool, |
Int | button | ||
) | [protected, virtual, slot] |
Connected to the QtMouseToolState::mouseBtnChg() signal.
Changes the tool button's (QAction's) state (icon, whether checked), to reflect the [new] mouse button assignment for a given mouse tool.
std::map<std::string,QtMouseToolButton*> casa::QtMouseToolBar::buttons_ [protected] |
Definition at line 156 of file QtMouseToolBar.qo.h.
QtMouseToolState* casa::QtMouseToolBar::msbtns_ [protected] |
Overridden from QToolBar, responding to clicks from any mouse button.
Relays that mouse button to central registry for assignment to desired tool. void mouseReleaseEvent(QMouseEvent *event); Holds button state for all mouse-tool bars and display panels.
Definition at line 151 of file QtMouseToolBar.qo.h.
Vector<String> casa::QtMouseToolBar::tools_ [protected] |
Names of tools within this toolbar (in order)
Definition at line 154 of file QtMouseToolBar.qo.h.