AeBinView.h
2.48 KB
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
//////////////////////////////////////////////////////////////
//
// Header file for View
//
// This file is generated by RapidApp 1.1
//
// This class is a ViewKit user interface "component".
// For more information on how components are used, see the
// "ViewKit Programmers Manual", and the RapidApp
// Users Guide.
//////////////////////////////////////////////////////////////
#ifndef __AeBinView__
#define __AeBinView__
#include <Vk/VkComponent.h>
#include <Vk/VkTabPanel.h>
#include <Vk/VkWindow.h>
#include <Vk/VkMenuBar.h>
#include <Vk/VkSubMenu.h>
class AeBinEditor;
class AeAsset;
class AeBinView : public VkComponent
{
public:
AeBinView(const char *, AeBinEditor *, Widget);
virtual ~AeBinView();
const char * className();
virtual void setParent(VkWindow *);
virtual void setTitle(char *);
void SetEditor (AeBinEditor * editor) { fEditor = editor; }
AeBinEditor * GetEditor (void) { return fEditor; }
void TabCreate (void);
void TabSetLabels (void);
void TabSelectName (String);
void ListCreate (void);
Widget ListGetWidget (void) { return fList; }
void ListUpdateUI (void);
void ListUpdateUIWidths (void);
void ListUpdateCell (int row, int col, String);
void ListAppendRows (int numRows);
void ListSelectRow (int row, Boolean);
void ListRedraw (void);
Boolean ListAssetInView (AeAsset *);
void ListGetResources (void);
void ListGetDefaultResources (void);
Pixel ListGetSelectForeground (void) { return fListSelectForeground; }
Pixel ListGetSelectBackground (void) { return fListSelectBackground; }
Pixel ListGetOnlineColor (void) { return fListOnlineColor; }
void PopupCreate (void);
VkPopupMenu * PopupGet (void) { return fPopup; }
void PopupShow (XEvent *);
void PopupUnmap (void);
void PopupSetFont (void);
private:
void TabSelectCallback (VkCallbackObject * object, void * clientData, void * callData);
static void ListCallback (Widget, XtPointer, XtPointer);
static void PopupUnmapCallback (Widget, XtPointer, XtPointer);
Widget fView;
VkWindow * fParent;
AeBinEditor * fEditor;
Widget fList;
XmFontList fListFont;
Pixel fListSelectForeground;
Pixel fListSelectBackground;
Pixel fListOnlineColor;
class VkTabPanel * fTabpanel;
class VkPopupMenu * fPopup;
// Array of default resources
static String _defaultResources[];
};
#endif