Scroom  0.14
sidebarmanager.hh
Go to the documentation of this file.
1 /*
2  * Scroom - Generic viewer for 2D data
3  * Copyright (C) 2009-2022 Kees-Jan Dijkzeul
4  *
5  * SPDX-License-Identifier: LGPL-2.1
6  */
7 
8 #pragma once
9 
10 #include <map>
11 #include <string>
12 
13 #include <gtk/gtk.h>
14 
16 {
17 private:
18  GtkWidget* panelWindow{nullptr};
19  GtkBox* panel{nullptr};
20 
21  std::map<GtkWidget*, GtkWidget*> widgets;
22 
23 public:
24  void setWidgets(GtkWidget* panelWindow, GtkBox* panel);
25 
26  void addSideWidget(const std::string& title, GtkWidget* w);
27  void removeSideWidget(GtkWidget* w);
28 };
SidebarManager::panelWindow
GtkWidget * panelWindow
Definition: sidebarmanager.hh:18
assertions.hh
SidebarManager::widgets
std::map< GtkWidget *, GtkWidget * > widgets
Definition: sidebarmanager.hh:21
sidebarmanager.hh
SidebarManager::addSideWidget
void addSideWidget(const std::string &title, GtkWidget *w)
Definition: sidebarmanager.cc:21
SidebarManager::removeSideWidget
void removeSideWidget(GtkWidget *w)
Definition: sidebarmanager.cc:35
SidebarManager::panel
GtkBox * panel
Definition: sidebarmanager.hh:19
require
#define require(expr)
Definition: assertions.hh:28
SidebarManager::setWidgets
void setWidgets(GtkWidget *panelWindow, GtkBox *panel)
Definition: sidebarmanager.cc:15
SidebarManager
Definition: sidebarmanager.hh:15