File: plotwindow.h

package info (click to toggle)
aoflagger 3.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,000 kB
  • sloc: cpp: 67,891; python: 497; sh: 242; makefile: 22
file content (49 lines) | stat: -rw-r--r-- 1,096 bytes parent folder | download
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
#ifndef PLOTWINDOW_H
#define PLOTWINDOW_H

#include <gtkmm/box.h>
#include <gtkmm/liststore.h>
#include <gtkmm/treeview.h>
#include <gtkmm/window.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::Box _hBox;
  Gtk::Box _sideBox{Gtk::Orientation::VERTICAL};
  Gtk::Box _toolbar;
  Gtk::Button _clearButton, _editButton;
  Glib::RefPtr<Gtk::ListStore> _plotListStore;
  Gtk::TreeView _plotListView;
  class PlotPropertiesWindow* _plotPropertiesWindow;
};

#endif