/usr/share/doc/libvdk2-dev/sigcvdktest/testclasses.h is in libvdk2-dev 2.4.0-5.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | // -*- c++ -*-
#ifndef _testclasses_h_
#define _testclasses_h_
#include <vdk/vdk.h>
/* -*- c++ -*- */
/** Each of these classes will watch a corresponding vdkobject.
That means, it will subsrcibe for all of its signals, translate
them to a string and finaly emit the OnMesg-Signal with this
string.
Overview:
VDKObjectTest
|
+ VDKAbstractButtonTest
| + VDKCheckButtonTest
| \ VDKToggleButtonTest
|
+ VDKComboTest
|
+ VDKCustomTest
| + VDKCustomListTest
| \ VDKCustomTreeTest
|
+ VDKGrid ( currently not in vdk2-series )
+ VDKNotebook
+ VDKSlider
+ VDKSpinButtonTest
*/
class VDKObjectTest : public SigC::Object
{
protected:
char* _classname;
public:
VDKObjectTest(VDKObject*);
VDKSignal1<void, const char*> OnMesg;
private:
void onkeypress_response(VDKObject* obj, char* key);
void onkeyrelease_response(VDKObject* obj, char* key);
};
/*
class VDKAbstractButtonTest : public VDKObjectTest
{
public:
VDKAbstractButtonTest(VDKAbstractButton*);
private:
void onbtnclicked_resp(VDKObject* obj);
void onbtnpressed_resp(VDKObject* obj);
void onbtnleave_resp(VDKObject*);
};
class VDKCheckButtonTest : public VDKAbstractButtonTest
{
public:
VDKCheckButtonTest(VDKCheckButton*);
private:
void onbtntog_resp(VDKObject*, bool);
};
class VDKToggleButtonTest : public VDKAbstractButtonTest
{
public:
VDKToggleButtonTest(VDKToggleButton*);
private:
void onbtntog_resp(VDKObject*, bool);
};
*/
class VDKSpinButtonTest : public VDKObjectTest
{
public:
VDKSpinButtonTest(VDKSpinButton*);
private:
void onvaluechanged(VDKObject*, float);
};
class VDKCustomTest : public VDKObjectTest
{
public:
VDKCustomTest(VDKCustom*);
private:
void oncolumnclick(VDKObject*, int);
};
class VDKCustomListTest : public VDKCustomTest
{
public:
VDKCustomListTest(VDKCustomList*);
private:
void onrowselect(VDKObject*,int, int);
void onrowunselect(VDKObject*,int, int);
void onrowmove(VDKObject*,int,int);
/* void onrowinsert(VDKObject*,int, const char**); */
/* void onrowremove(VDKObject*,int); */
};
class VDKCustomTreeTest : public VDKCustomTest
{
public:
VDKCustomTreeTest(VDKCustomTree*);
private:
void onnodeselect(VDKObject*, VDKTreeNode, int);
void onnodeunselect(VDKObject*, VDKTreeNode, int);
void ontreemove(VDKObject*, VDKTreeNode, VDKTreeNode, VDKTreeNode);
};
class VDKComboTest : public VDKObjectTest
{
public:
VDKComboTest(VDKCombo*);
private:
void onitemactivate(VDKObject*,int item);
void onitemselect(VDKObject*,int item);
void onitemunselect(VDKObject*, int item);
void onitemtextchanged(VDKObject*, int item, const char* text);
};
class VDKSliderTest : public VDKObjectTest
{
public:
VDKSliderTest(VDKSlider*);
private:
void onvaluechanged(VDKObject*, float value);
};
/*
class VDKGridTest : public VDKObjectTest
{
public:
VDKGridTest(VDKGrid*);
private:
void oncellselect(VDKObject*, int, int);
void oncellunselect(VDKObject*, int, int);
void oncellchanged(VDKObject*, int, int);
void onrowselect(VDKObject*, int);
void oncolselect(VDKObject*, int);
};
*/
class VDKNotebookTest : public VDKObjectTest
{
public:
VDKNotebookTest(VDKNotebook*);
private:
void onpageswitch(VDKObject*, int);
};
#endif
|