20#ifndef ORES_QT_FLAG_SELECTOR_DIALOG_HPP
21#define ORES_QT_FLAG_SELECTOR_DIALOG_HPP
29#include "ores.qt/ImageCache.hpp"
30#include "ores.logging/make_logger.hpp"
43 inline static std::string_view logger_name =
"ores.qt.flag_selector_dialog";
45 [[nodiscard]]
static auto& lg() {
47 static auto instance = make_logger(logger_name);
60 const QString& currentImageId = QString(),
61 QWidget* parent =
nullptr);
71 void onImageListLoaded();
72 void onImageLoaded(
const QString& image_id);
73 void onAllImagesLoaded();
74 void onSearchTextChanged(
const QString& text);
75 void onItemSelectionChanged();
76 void onClearClicked();
77 void onSelectClicked();
82 void filterList(
const QString& filter);
83 void loadVisibleIcons();
86 QString selectedImageId_;
87 QString currentImageId_;
89 QLineEdit* searchEdit_;
90 QListWidget* listWidget_;
91 QLabel* previewLabel_;
92 QLabel* previewDescLabel_;
93 QPushButton* clearButton_;
94 QPushButton* selectButton_;
95 QPushButton* cancelButton_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:35
Dialog for selecting a flag/image to associate with a currency.
Definition FlagSelectorDialog.hpp:39
QString selectedImageId() const
Get the selected image ID.
Definition FlagSelectorDialog.hpp:68
Cache for dynamically loaded images (flags, icons) from the server.
Definition ImageCache.hpp:52