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:
parent
74a8e3fe1c
commit
2689fdf1d8
3 changed files with 89 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue