1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
#ifndef PLOTWINDOW_H
#define PLOTWINDOW_H
#include <gtkmm/box.h>
#include <gtkmm/liststore.h>
#include <gtkmm/treeview.h>
#include <gtkmm/window.h>
#include <gtkmm/toolbar.h>
#include "../plot/plotwidget.h"
class PlotWindow : public Gtk::Window {
public:
explicit PlotWindow(class PlotManager& plotManager);
~PlotWindow();
private:
class PlotListColumns : public Gtk::TreeModel::ColumnRecord {
public:
PlotListColumns() {
add(_index);
add(_name);
}
Gtk::TreeModelColumn<unsigned int> _index;
Gtk::TreeModelColumn<Glib::ustring> _name;
} _plotListColumns;
void onSelectedPlotChange();
void onClearPlotsPressed();
void onEditPlottingPropertiesPressed();
void onPlotPropertiesChanged();
void handleUpdate();
void updatePlotList();
PlotWidget _plotWidget;
class PlotManager& _plotManager;
Gtk::HBox _hBox;
Gtk::VBox _sideBox;
Gtk::Toolbar _toolbar;
Gtk::ToolButton _clearButton, _editButton;
Glib::RefPtr<Gtk::ListStore> _plotListStore;
Gtk::TreeView _plotListView;
class PlotPropertiesWindow* _plotPropertiesWindow;
};
#endif
|