20#ifndef ORES_QT_TAG_SELECTOR_WIDGET_HPP
21#define ORES_QT_TAG_SELECTOR_WIDGET_HPP
28#include <boost/uuid/uuid.hpp>
29#include "ores.connections/domain/tag.hpp"
31namespace ores::connections::service {
32class connection_manager;
48 QWidget* parent =
nullptr);
53 void setSelectedTags(
const std::vector<connections::domain::tag>& tags);
67 void onAddTagClicked();
68 void onTagActionTriggered(QAction* action);
69 void removeTag(
const boost::uuids::uuid& tagId);
72 void rebuildTagDisplay();
73 void populateTagMenu();
74 QColor colorForTag(
const QString& name)
const;
78 QToolButton* addButton_;
81 std::vector<connections::domain::tag> selectedTags_;
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:35
High-level service for managing server connections.
Definition connection_manager.hpp:48
Widget for selecting and displaying tags as pill badges.
Definition TagSelectorWidget.hpp:43
void selectionChanged()
Emitted when the selection changes.
void setSelectedTags(const std::vector< connections::domain::tag > &tags)
Set the currently selected tags.
Definition TagSelectorWidget.cpp:71
std::vector< boost::uuids::uuid > selectedTagIds() const
Get the currently selected tag IDs.
Definition TagSelectorWidget.cpp:76