Mode selector tool.
More...
#include <scenetoolmode.hpp>
|
| SceneToolMode (SceneToolbar *parent, const QString &toolTip) |
|
virtual void | showPanel (const QPoint &position) |
|
void | addButton (const std::string &icon, const std::string &id, const QString &tooltip="") |
|
void | addButton (ModeButton *button, const std::string &id) |
| The ownership of button is transferred to *this. More...
|
|
ModeButton * | getCurrent () |
| Will return a 0-pointer only if the mode does not have any buttons yet. More...
|
|
std::string | getCurrentId () const |
| Must not be called if there aren't any buttons yet. More...
|
|
void | setButton (const std::string &id) |
| Manually change the current mode. More...
|
|
| SceneTool (SceneToolbar *parent, Type type=Type_TopMode) |
|
virtual void | activate () |
|
| PushButton (const QIcon &icon, Type type, const QString &tooltip="", QWidget *parent=0) |
|
| PushButton (Type type, const QString &tooltip="", QWidget *parent=0) |
|
bool | hasKeepOpen () const |
|
QString | getBaseToolTip () const |
| Return tooltip used at construction (without any button-specific modifications) More...
|
|
Type | getType () const |
|
CSVWidget::SceneToolMode::SceneToolMode |
( |
SceneToolbar * |
parent, |
|
|
const QString & |
toolTip |
|
) |
| |
void CSVWidget::SceneToolMode::addButton |
( |
const std::string & |
icon, |
|
|
const std::string & |
id, |
|
|
const QString & |
tooltip = "" |
|
) |
| |
void CSVWidget::SceneToolMode::addButton |
( |
ModeButton * |
button, |
|
|
const std::string & |
id |
|
) |
| |
The ownership of button is transferred to *this.
void CSVWidget::SceneToolMode::adjustToolTip |
( |
const ModeButton * |
activeMode | ) |
|
|
private |
void CSVWidget::SceneToolMode::contextMenuEvent |
( |
QContextMenuEvent * |
event | ) |
|
|
privatevirtual |
bool CSVWidget::SceneToolMode::createContextMenu |
( |
QMenu * |
menu | ) |
|
|
privatevirtual |
bool CSVWidget::SceneToolMode::event |
( |
QEvent * |
event | ) |
|
|
protected |
Will return a 0-pointer only if the mode does not have any buttons yet.
std::string CSVWidget::SceneToolMode::getCurrentId |
( |
| ) |
const |
Must not be called if there aren't any buttons yet.
void CSVWidget::SceneToolMode::modeChanged |
( |
const std::string & |
id | ) |
|
|
signal |
void CSVWidget::SceneToolMode::selected |
( |
| ) |
|
|
privateslot |
void CSVWidget::SceneToolMode::setButton |
( |
std::map< ModeButton *, std::string >::iterator |
iter | ) |
|
|
private |
void CSVWidget::SceneToolMode::setButton |
( |
const std::string & |
id | ) |
|
Manually change the current mode.
void CSVWidget::SceneToolMode::showPanel |
( |
const QPoint & |
position | ) |
|
|
virtual |
std::map<ModeButton *, std::string> CSVWidget::SceneToolMode::mButtons |
|
private |
int CSVWidget::SceneToolMode::mButtonSize |
|
private |
int CSVWidget::SceneToolMode::mIconSize |
|
private |
QHBoxLayout* CSVWidget::SceneToolMode::mLayout |
|
private |
QWidget* CSVWidget::SceneToolMode::mPanel |
|
private |
QString CSVWidget::SceneToolMode::mToolTip |
|
private |
The documentation for this class was generated from the following files: