Further speedups for filebrowser/catalog

This commit is contained in:
Ingo Weyrich
2019-07-27 17:39:16 +02:00
parent 1320791052
commit de963c54de
7 changed files with 159 additions and 85 deletions

View File

@@ -174,12 +174,13 @@ protected:
int previewHeight;
int numOfCols;
int lastRowHeight;
Arrangement arrangement;
std::set<Glib::ustring> editedFiles;
void arrangeFiles (bool checkfilter = true);
void arrangeFiles (ThumbBrowserEntryBase* entry = nullptr);
void zoomChanged (bool zoomIn);
public:
@@ -201,7 +202,7 @@ public:
return fd;
}
void on_style_updated () override;
void redraw (bool checkfilter = true); // arrange files and draw area
void redraw (ThumbBrowserEntryBase* entry = nullptr); // arrange files and draw area
void refreshThumbImages (); // refresh thumbnail sizes, re-generate thumbnail images, arrange and draw
void refreshQuickThumbImages (); // refresh thumbnail sizes, re-generate thumbnail images, arrange and draw
void refreshEditedState (const std::set<Glib::ustring>& efiles);
@@ -214,7 +215,7 @@ public:
void setArrangement (Arrangement a);
void enableTabMode(bool enable); // set both thumb sizes and arrangements
virtual bool checkFilter (ThumbBrowserEntryBase* entry)
virtual bool checkFilter (ThumbBrowserEntryBase* entry) const
{
return true;
}