summaryrefslogtreecommitdiff
path: root/src/ui/sidebarwidget.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-25 09:01:41 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-25 09:01:41 +0300
commit242e8231ea61278fe482020658be86c2dec0ae53 (patch)
treebb88541f9f808cb5a3af769fe265439341e97237 /src/ui/sidebarwidget.h
parented2c4a872dbddd2eaa13b280543ffabb0d197851 (diff)
Persistent bookmark folder state
Incremented the version of state.lgr so it can include bookmark folder open/closed state for each of the two/four sidebars.
Diffstat (limited to 'src/ui/sidebarwidget.h')
-rw-r--r--src/ui/sidebarwidget.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/sidebarwidget.h b/src/ui/sidebarwidget.h
index 2894a951..638a1f2f 100644
--- a/src/ui/sidebarwidget.h
+++ b/src/ui/sidebarwidget.h
@@ -24,6 +24,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
24 24
25#include "widget.h" 25#include "widget.h"
26 26
27#include <the_Foundation/intset.h>
28
27enum iSidebarMode { 29enum iSidebarMode {
28 bookmarks_SidebarMode, 30 bookmarks_SidebarMode,
29 feeds_SidebarMode, 31 feeds_SidebarMode,
@@ -49,8 +51,10 @@ iDeclareWidgetClass(SidebarWidget)
49iDeclareObjectConstructionArgs(SidebarWidget, enum iSidebarSide side) 51iDeclareObjectConstructionArgs(SidebarWidget, enum iSidebarSide side)
50 52
51iBool setMode_SidebarWidget (iSidebarWidget *, enum iSidebarMode mode); 53iBool setMode_SidebarWidget (iSidebarWidget *, enum iSidebarMode mode);
54void setWidth_SidebarWidget (iSidebarWidget *, float widthAsGaps);
52iBool setButtonFont_SidebarWidget (iSidebarWidget *, int font); 55iBool setButtonFont_SidebarWidget (iSidebarWidget *, int font);
56void setClosedFolders_SidebarWidget (iSidebarWidget *, const iIntSet *closedFolders);
53 57
54enum iSidebarMode mode_SidebarWidget (const iSidebarWidget *); 58enum iSidebarMode mode_SidebarWidget (const iSidebarWidget *);
55float width_SidebarWidget (const iSidebarWidget *); 59float width_SidebarWidget (const iSidebarWidget *);
56void setWidth_SidebarWidget (iSidebarWidget *, float widthAsGaps); 60const iIntSet * closedFolders_SidebarWidget (const iSidebarWidget *);