File: plotwindow.h

package info (click to toggle)
aoflagger 3.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,960 kB
  • sloc: cpp: 83,076; python: 10,187; sh: 260; makefile: 178
file content (50 lines) | stat: -rw-r--r-- 1,105 bytes parent folder | download | duplicates (2)
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