59 void enDirSupports(
const QString& where,
const QStringList& prefixs);
95 QStringList
from_name(
const QStringList& names);
155 Ui::ImageBrowser* ui;
160 std::unique_ptr<ImageCore> core;
165 QMap<QString, QString> mappings;
175 void init_connections();
182 void enmappings(
const QStringList& paths);
189 void demappings(
const QStringList& removeWhat);
196 void process_set_images(
const QString& images);
201 void reset_listwidgets();
206 QImage current_image;
211 int current_index { -1 };
The ImageBrowser class.
Definition ImageBrowser.h:23
void enDirSupports(const QString &where)
Enables directory supports.
Definition ImageBrowser.cpp:42
void show_next()
Shows the next image.
Definition ImageBrowser.cpp:123
QStringList from_name(const QStringList &names)
Converts names to paths.
Definition ImageBrowser.cpp:63
bool is_fileview_visible() const
Checks if the file view is visible.
Definition ImageBrowser.cpp:75
~ImageBrowser()
Destructor.
Definition ImageBrowser.cpp:114
void show_from_name(const QString &name)
Shows an image based on its name.
Definition ImageBrowser.cpp:79
void clear()
Clears the image list.
Definition ImageBrowser.cpp:159
void remove_select()
Removes the currently selected image.
Definition ImageBrowser.cpp:146
void show_prev()
Shows the previous image.
Definition ImageBrowser.cpp:135
void show_end()
Shows the last image.
Definition ImageBrowser.cpp:131
void oppose_fileview_visible()
Toggles the visibility of the file view.
Definition ImageBrowser.cpp:118
void errorOccur(const ImageBrowser::ErrorType e)
Signal emitted when an error occurs.
void show_infoWindow()
Displays the image information window.
Definition ImageBrowser.cpp:139
void show_from_index(const int index)
Shows an image based on its index.
Definition ImageBrowser.cpp:88
void show_start()
Shows the first image.
Definition ImageBrowser.cpp:127
void remove_from_name(const QStringList &names)
Removes images from the browser based on their names.
Definition ImageBrowser.cpp:55
ErrorType
The ErrorType enum.
Definition ImageBrowser.h:32
@ IMAGEREQ_UNDERFLOW
Underflow request.
@ IMAGEREQ_LOST
Image is lost.
@ IMAGEREQ_EMPTY
Images are empty.
@ IMAGEREQ_OVERFLOW
Overflow request.
ImageCore indicates the basic image core utils, by providing the loadable image path.
Definition ImageCore.h:10
ImageInfo Window class holds the display of image info.
Definition ImageInfoWindow.h:14