File: ttest.h

package info (click to toggle)
vdk2 2.4.0-5.6
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 6,448 kB
  • sloc: cpp: 26,950; sh: 10,942; ansic: 9,220; makefile: 605; perl: 113
file content (40 lines) | stat: -rw-r--r-- 730 bytes parent folder | download | duplicates (8)
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
/*
file: ttest.h
List, Heap and Btree 
template classes test
*/
#include <vdk/vdk.h>
/*
 */
class 
BTreeWindow: public VDKForm
{
  VDKTextView *text; 
  VDKCustomButton *start,*quit,*showsource;
 public:
  BTreeWindow(VDKApplication* owner):
    VDKForm(owner,"Sorted lists,Btrees and Heaps example")  {}
  ~BTreeWindow() { }
  void Setup();
  bool Start(VDKObject*);
  bool Quit(VDKObject*) { Close(); return true;}
  bool ShowSource(VDKObject*);
  DECLARE_SIGNAL_LIST(BTreeWindow);
};

/*
 */
class 
MyApp: public VDKApplication
{
  
public:
  MyApp(int* argc, char** argv): VDKApplication(argc,argv) {}
  ~MyApp() {}
  void Setup()
  {
    MainForm = new BTreeWindow(this);
    MainForm->Setup();
    MainForm->Show(); 
  }
};