| 16 | }; |
| 17 | |
| 18 | void WorkstationToolbar::initialize() |
| 19 | { |
| 20 | const char icons[NUMBER_OF_BUTTONS][INACTIVE_BUTTON_NAME_LENGTH] = |
| 21 | {":/inactive_dot_____.xpm", ":/inactive_poly____.xpm", ":/inactive_freehand.xpm", ":/inactive_spline__.xpm"}; |
| 22 | |
| 23 | for (int i=0; i<NUMBER_OF_BUTTONS; i++) |
| 24 | { |
| 25 | QToolButton* qToolButton = new QToolButton(); |
| 26 | _buttons.push_back(qToolButton); |
| 27 | QPixmap qPixmap(icons[i]); |
| 28 | qToolButton->setText(icons[i]); |
| 29 | qToolButton->setIcon(QIcon(qPixmap)); |
| 30 | qToolButton->setCheckable(false); |
| 31 | this->addWidget(qToolButton); |
| 32 | } |
| 33 | }; |
| 34 | |
| 35 | std::vector<QToolButton*> WorkstationToolbar::getButtons() |
| 36 | { |