File: GraphConfig.h

package info (click to toggle)
quickplot 0.8.6-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,544 kB
  • ctags: 1,019
  • sloc: cpp: 10,051; sh: 7,597; makefile: 176
file content (89 lines) | stat: -rw-r--r-- 1,696 bytes parent folder | download | duplicates (4)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/* Copyright (c) 1998, 1999, 2003, 2004  Lance Arsenault, (GNU GPL (v2+))
 */

class PlotSelector;
class ValueSlider;

class GraphConfig : public Window
{
public:

  GraphConfig(MainWindow *m);

  void show();

  void setTitle(void);

private:

  
  void on_notebookFlip(GtkNotebookPage* , guint );

  void on_unmap(void);
  void on_hide(void);

  
  int x, y;
  
  MainWindow *mainWindow;

  VBox topVBox;
  Notebook notebook;
  Frame topLabelFrame;
  Label topLabel;
  HBox topHBox;
  VBox lVBox, rVBox;
  
  CheckButton
    showGridCB, showGridNumbersCB, showLinesCB, showPointsCB;
   
  OptionMenu sameScaleOM;
  Menu sameScaleM;
  Frame sameScaleStatusFrame;
  Label sameScaleStatusLabel;
  Button showPlotConfigB;

  VBox lowerVBox;
  HButtonBox colorHBox;
  Button bgColorB, gridColorB;

  HBox linePointHBox, grid1HBox, grid2HBox;
  ValueSlider lineWidthVS, pointSizeVS;
  ValueSlider gridLineWidthVS, gridFontSizeVS;
  LogValueSlider gridXLineSpaceVS, gridYLineSpaceVS;

public:
  PlotSelector plotSelector;

  void on_map(void);

private:

  void on_sameScaleOn(void);
  void on_sameScaleOff(void);
  void on_sameScaleAuto(void);
  void on_showGrid(void);
  void on_showGridNumbers(void);
  void on_showLines(void);
  void on_showPoints(void);
  void on_tabLabelChanged(Graph *graph);

  void on_sameScaleChange(Graph *graph);
  void on_showPlotConfig(void);
  
  // set widget state from graph
  void setValuesFromGraph(void);

  void on_bgColor(void);
  void on_gridColor(void);

  void on_gridXLineSpace(void);
  void on_gridYLineSpace(void);
  
  void on_gridLineWidth(void);
  void on_lineWidth(void);
  void on_pointSize(void);

  bool on_key_press_event(GdkEventKey* event);
};