casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Slots | Protected Attributes
casa::QtMouseToolBar Class Reference

#include <QtMouseToolBar.qo.h>

List of all members.

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.

Protected Attributes

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

Detailed Description

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


Constructor & Destructor Documentation

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

Definition at line 130 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 
) [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.


Member Data Documentation

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

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

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.

Names of tools within this toolbar (in order)

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


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