1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:47:44 +00:00

QuickShow: Browse the files in the same folder

This commit is contained in:
Hüseyin ASLITÜRK 2020-04-12 14:35:15 +03:00 committed by Andreas Kling
parent 74a8e3fe1c
commit 2689fdf1d8
3 changed files with 89 additions and 0 deletions

View file

@ -34,11 +34,19 @@ class QSLabel;
class QSWidget final : public GUI::Frame {
C_OBJECT(QSWidget)
public:
enum Directions {
First,
Back,
Forward,
Last
};
virtual ~QSWidget() override;
const Gfx::Bitmap* bitmap() const { return m_bitmap.ptr(); }
const String& path() const { return m_path; }
void navigate(Directions);
void load_from_file(const String&);
Function<void(int)> on_scale_change;
@ -65,4 +73,5 @@ private:
Gfx::Point m_click_position;
Gfx::FloatPoint m_saved_pan_origin;
Vector<String> m_files_in_same_dir;
};