2#ifndef STREAMTREEVIEW_H
3#define STREAMTREEVIEW_H
10#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) || defined(__WIN32__) || defined(WIN64) || defined(_WIN64) || defined(__WIN64) || defined(__WIN64__)
14#elif defined(linux) || defined(__linux) || defined(__linux__) || defined(__GNUC__) || defined(__GNUG__) || defined(unix) || defined(__unix) || defined(__unix__)
19#error OS not supported
23#define printf_s printf
64 Gdk::RGBA rgba = Gdk::RGBA(0.5, 0.5, 0.5), CairoGraphLineStyle linetype = CairoGraphLineStyle::SOLID_LINE);
85 Gtk::ApplicationWindow*
p_win =
nullptr;
A class for the stream tree view.
Definition: StreamTreeView.h:34
void on_menu_set_color()
Callback for the set color.
void create_column()
Create the column(s).
CGraph::CairoGraph * p_graph
CGraph::CairoGraph pointer to the stream graph.
Definition: StreamTreeView.h:86
Gtk::ApplicationWindow * p_win
Gtk::ApplicationWindow pointer to the application main window.
Definition: StreamTreeView.h:85
TreeColumns * p_treeColumns
TreeColumns pointer for the format of the tree view column(s).
Definition: StreamTreeView.h:87
void on_menu_set_linetype(int type)
Callback for the set linetype.
void set_graph(CGraph::CairoGraph *graph)
Set the graph pointer.
std::unique_ptr< Gtk::ColorChooserDialog > p_colorChooser
Gtk::ColorChooserDialog pointer for the color chooser dialog.
Definition: StreamTreeView.h:93
void on_popover_button_pressed(int n_press, double x, double y)
Callback for popover item pressed.
Glib::RefPtr< Gtk::Builder > p_builder
Gtk::Builder pointer to read the popover menu from the XML file.
Definition: StreamTreeView.h:94
std::vector< int > get_col_id_selected()
Get the ID of the selected signal(s).
Glib::RefPtr< Gio::SimpleAction > p_lineTypeAction
Gio::SimpleActionGroup pointer for line-type action in the popover menu.
Definition: StreamTreeView.h:92
std::vector< Gdk::RGBA > get_col_rgba_selected()
Get the RGB color of the selected signal(s).
Glib::RefPtr< Gtk::TreeSelection > p_TreeSelection
Gtk::TreeSelection pointer for the tree view selection.
Definition: StreamTreeView.h:89
void on_stream_tree_selected()
Callback for the tree view selected.
void append_row(int id, Glib::ustring name, Gdk::RGBA rgba=Gdk::RGBA(0.5, 0.5, 0.5), CairoGraphLineStyle linetype=CairoGraphLineStyle::SOLID_LINE)
Append a row.
virtual ~StreamTreeView()
Destructor.
Glib::RefPtr< Gtk::ListStore > p_TreeModel
Gtk::ListStore pointer for the tree view model.
Definition: StreamTreeView.h:88
std::unique_ptr< Gtk::PopoverMenu > p_popOverMenu
Gtk::PopoverMenu pointer for the popover menu in the tree view.
Definition: StreamTreeView.h:90
StreamTreeView(Gtk::ApplicationWindow *win)
Constructor.
std::vector< CairoGraphLineStyle > get_col_linetype_selected()
Get the linetype of the selected signal(s).
void on_color_chooser_response(int id)
Callback for the color chooser response.
void set_popover_sensitive(bool sensitive=true)
Set the popover menu sensitive.
Glib::RefPtr< Gio::SimpleActionGroup > p_actionGroup
Gio::SimpleActionGroup pointer for simple actions in the popover menu.
Definition: StreamTreeView.h:91
std::vector< Gtk::TreeModel::iterator > get_selected()
Get the selected signals(s).
A class for column definition in Gtk::TreeView.
Definition: TreeColumns.h:25
A configuration file for the source code.