18#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) || defined(__WIN32__) || defined(WIN64) || defined(_WIN64) || defined(__WIN64) || defined(__WIN64__)
22#elif defined(linux) || defined(__linux) || defined(__linux__) || defined(__GNUC__) || defined(__GNUG__) || defined(unix) || defined(__unix) || defined(__unix__)
27#error OS not supported
31#define printf_s printf
71 void set_fftGraph(CGraph::CairoGraph* mag, CGraph::CairoGraph* ph);
103 Gtk::ApplicationWindow*
p_win =
nullptr;
A class for the plot tree view.
Definition: PlotTreeView.h:42
Glib::RefPtr< Gtk::TreeSelection > p_TreeSelection
Gtk::TreeSelection pointer for the tree view selection.
Definition: PlotTreeView.h:108
void append_row()
Append rows.
void set_sampleGraph(CGraph::CairoGraph *graph)
Set the sample-domain graph pointer.
void update_logname(int id, std::string name)
Update the log name shown.
Glib::RefPtr< Gio::SimpleActionGroup > p_logActionGroup
Gio::SimpleActionGroup pointer for simple actions in the log popover menu.
Definition: PlotTreeView.h:112
void on_color_chooser_response(int id_response)
Callback for the color chooser response.
CGraph::CairoGraph * p_samplegraph
CGraph::CairoGraph pointer to the sample-domain graph.
Definition: PlotTreeView.h:104
Glib::RefPtr< Gtk::TreeStore > p_TreeModel
Gtk::TreeStore pointer for the tree view model.
Definition: PlotTreeView.h:107
void set_fftGraph(CGraph::CairoGraph *mag, CGraph::CairoGraph *ph)
Set the spectra graph pointer.
void on_menu_save()
Callback for save logs.
void on_menu_delete()
Callback for delete logs.
std::unique_ptr< Gtk::PopoverMenu > p_signal_popOverMenu
Gtk::PopoverMenu pointer for the signal popover menu.
Definition: PlotTreeView.h:114
PlotTreeView(Gtk::ApplicationWindow *win, SBBHostCore *core)
Constructor.
void name_render_on_editing_started(Gtk::CellEditable *cell_editable, const Glib::ustring &path_string)
Callback for name column start editing.
Glib::RefPtr< Gtk::Builder > p_builder
Gtk::Builder pointer to read the popover menu from the XML file.
Definition: PlotTreeView.h:110
std::unique_ptr< Gtk::ColorChooserDialog > p_colorChooser
Gtk::ColorChooserDialog pointer for the color chooser dialog.
Definition: PlotTreeView.h:116
Glib::RefPtr< Gio::SimpleAction > p_lineTypeAction
Gio::SimpleActionGroup pointer for line-type action in the signal popover menu.
Definition: PlotTreeView.h:113
CGraph::CairoGraph * p_magfftgraph
CGraph::CairoGraph pointer to the magnitude-spectra graph.
Definition: PlotTreeView.h:105
CGraph::CairoGraph * p_phfftgraph
CGraph::CairoGraph pointer to the phase-spectra graph.
Definition: PlotTreeView.h:106
std::unique_ptr< Gtk::PopoverMenu > p_log_popOverMenu
Gtk::PopoverMenu pointer for the log popover menu.
Definition: PlotTreeView.h:115
std::vector< Gtk::TreeModel::iterator > get_selected(int type)
Get the selected log(s) or signal(s).
Gtk::TreeView::Column name_col
Gtk::TreeView::Column object for the editable name column.
Definition: PlotTreeView.h:117
virtual ~PlotTreeView()
Destructor.
void on_popover_button_pressed(int n_press, double x, double y)
Callback for popover item pressed.
Glib::RefPtr< Gio::SimpleActionGroup > p_signalActionGroup
Gio::SimpleActionGroup pointer for simple actions in the signal popover menu.
Definition: PlotTreeView.h:111
void on_menu_set_color()
Callback for the set color.
void create_column()
Create the column(s).
bool check_new_name(std::string name)
Check a new name.
void name_col_on_cell_data(Gtk::CellRenderer *renderer, const Gtk::TreeModel::const_iterator &iter)
Callback for setting the name cell.
TreeColumns * p_treeColumns
TreeColumns pointer for the format of the tree view column(s).
Definition: PlotTreeView.h:100
void name_render_on_edited(const Glib::ustring &path_string, const Glib::ustring &new_text)
Callback for name column edited.
void on_plot_tree_selected()
Callback for the tree view selected.
Gtk::CellRendererText name_render
Gtk::CellRendererText object for the editable name column.
Definition: PlotTreeView.h:118
void on_menu_set_linetype(int type)
Callback for the set linetype.
SBBHostCore * p_core
SBBHostCore pointer to the SBB Host core object.
Definition: PlotTreeView.h:109
Gtk::ApplicationWindow * p_win
Gtk::ApplicationWindow pointer to the application main window.
Definition: PlotTreeView.h:103
A class for the core of the SBB Host application.
Definition: SBBHostCore.h:46
A class for column definition in Gtk::TreeView.
Definition: TreeColumns.h:25
A configuration file for the source code.