Subversion Repositories DIN Is Noise

Rev

Rev 1858 | Rev 2097 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1528 jag 1
/*
2
* strength_editor.h
2009 jag 3
* DIN Is Noise is copyright (c) 2006-2023 Jagannathan Sampath
1528 jag 4
* For more information, please visit http://dinisnoise.org/
5
*/
6
 
7
#ifndef __STRENGTH_EDITOR
8
#define __STRENGTH_EDITOR
9
 
10
#include "curve_editor.h"
11
#include <string>
12
using namespace std;
13
 
14
struct note_marker {
15
 
16
  string note_name;
17
  int x;
18
  static int ybot, ytop;
19
  static int clearance;
20
 
21
};
22
 
23
struct din;
24
 
25
struct strength_editor : curve_editor {
26
 
27
  din* d;
28
 
29
  vector<note_marker> note_markers;
30
 
31
  int selected_resonator;
32
 
33
  help helptext;
34
 
35
  void build_note_markers ();
36
  void draw_note_markers ();
37
 
38
  strength_editor (din* dd, string settings_file, string help_file);
39
 
40
  bool handle_input ();
41
 
42
  void select_curve (int i);
43
  void draw_selected_resonator ();
44
  void draw ();
45
 
46
};
47
 
48
#endif
49
 
50
 
51