85 QIcon
iconForState(
int state,
const QSize& iconSize,
const QPalette& palette)
const;
88 std::string buttonName;
130 const std::vector<std::string>& bicons,
131 bool vertical =
true,
132 QWidget* parent =
nullptr);
187 void refresh_icons();
200 std::vector<ButtonInfo*> buttons;
213 void buttonWasPressed(QListWidgetItem* item);
245 const std::vector<std::string>& titles,
246 bool vertical =
true,
247 QWidget* parent =
nullptr);
304 void setSvgButtonIcon(
int index,
const QString& svgResourcePath,
const QSize& iconSize = QSize());
319 struct SvgIcon { QString path; QSize size; };
321 int buttonPressedIndex;
322 QVector<QPushButton*> buttons;
323 QVector<SvgIcon> svgIcons;
325 void refresh_svg_icons();
333 void setButtonPressed(
int index);
GEMC helpers for translating and rendering Qt toolbar artwork.
QString translateSvgLabels(QString svg)
Translate SVG toolbar captions and fit their font size without changing stored artwork.