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"
31#include "ores.qt/export.hpp"
44 inline static std::string_view logger_name =
"ores.qt.flag_selector_dialog";
46 [[nodiscard]]
static auto& lg() {
48 static auto instance = make_logger(logger_name);
61 const QString& currentImageId = QString(),
62 QWidget* parent =
nullptr);
72 void onImageListLoaded();
73 void onImageLoaded(
const QString& image_id);
74 void onAllImagesLoaded();
75 void onSearchTextChanged(
const QString& text);
76 void onItemSelectionChanged();
77 void onClearClicked();
78 void onSelectClicked();
83 void filterList(
const QString& filter);
84 void loadVisibleIcons();
87 QString selectedImageId_;
88 QString currentImageId_;
90 QLineEdit* searchEdit_;
91 QListWidget* listWidget_;
92 QLabel* previewLabel_;
93 QLabel* previewDescLabel_;
94 QPushButton* clearButton_;
95 QPushButton* selectButton_;
96 QPushButton* cancelButton_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AccountController.hpp:32
Dialog for selecting a flag/image to associate with a currency.
Definition FlagSelectorDialog.hpp:40
QString selectedImageId() const
Get the selected image ID.
Definition FlagSelectorDialog.hpp:69
Cache for dynamically loaded images (flags, icons) from the server.
Definition ImageCache.hpp:54