casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Slots | Protected Attributes | List of all members
casa::QtMouseToolBar Class Reference

#include <QtMouseToolBar.qo.h>

Inheritance diagram for casa::QtMouseToolBar:

Public Member Functions

 QtMouseToolBar (QtMouseToolState *msbtns, QtDisplayPanel *qdp=0, QWidget *parent=0)
 
 ~QtMouseToolBar ()
 
QtMouseToolButtonbutton (const std::string &name)
 

Protected Slots

virtual void chgMouseBtn_ (std::string tool, int button)
 Connected to the QtMouseToolState::mouseBtnChg() signal. More...
 

Protected Attributes

QtMouseToolStatemsbtns_
 Overridden from QToolBar, responding to clicks from any mouse button. More...
 
casacore::Vector
< casacore::String
tools_
 Names of tools within this toolbar (in order) More...
 
std::map< std::string,
QtMouseToolButton * > 
buttons_
 

Detailed Description

Definition at line 123 of file QtMouseToolBar.qo.h.

Constructor & Destructor Documentation

casa::QtMouseToolBar::QtMouseToolBar ( QtMouseToolState msbtns,
QtDisplayPanel qdp = 0,
QWidget *  parent = 0 
)
casa::QtMouseToolBar::~QtMouseToolBar ( )
inline

Definition at line 134 of file QtMouseToolBar.qo.h.

Member Function Documentation

QtMouseToolButton* casa::QtMouseToolBar::button ( const std::string &  name)
virtual void casa::QtMouseToolBar::chgMouseBtn_ ( std::string  tool,
int  button 
)
protectedvirtualslot

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.

Member Data Documentation

std::map<std::string,QtMouseToolButton*> casa::QtMouseToolBar::buttons_
protected

Definition at line 160 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 155 of file QtMouseToolBar.qo.h.

casacore::Vector<casacore::String> casa::QtMouseToolBar::tools_
protected

Names of tools within this toolbar (in order)

Definition at line 158 of file QtMouseToolBar.qo.h.


The documentation for this class was generated from the following file: