AeAssetBinUI.h
1.58 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
#ifndef __AeAssetBinUI__
#define __AeAssetBinUI__
#include <Xm/Xm.h>
#include "AeAsset.h"
template<class T> class GList;
class AeClient;
class AeBinEditor;
class AeBinView;
class AeAssetBin;
class AeAssetUI;
class AeFieldUI;
class AeAsset;
class AeAssetBinUI
{
public:
AeAssetBinUI (AeAssetBin *, AeClient *);
virtual ~AeAssetBinUI (void);
void SetName (const char * name);
char * GetName (void) { return fName; }
TAssetType GetType (void);
AeAssetBin * GetBin (void) { return fBin; }
Boolean HasChildren (void) { return fChildBinUI != NULL; }
int GetNumFields (void);
GList<AeFieldUI *> * GetFieldUIList (void) { return fFieldUIList; }
void AppendFieldUI (AeFieldUI *);
void GetFieldLabels (String * labelArray);
void GetFieldWidths (short * widthArray);
void GetFieldAligns (unsigned char * alignArray);
void GetFieldMaxLens (int * maxLenArray);
void SetNeedsWidthRecalc (Boolean recalc);
void UpdateHierarchy (void);
void UpdateAssetUIFields (AeBinView *, AeAssetUI *, int row);
// really only friends should have access to these functions
void SetListFieldData (Widget list);
void SetChildBinUI (AeAssetBinUI * binUI) { fChildBinUI = binUI; }
private:
void calcWidth (GList<AeAsset *> *, AeFieldUI *,
int & maxWidth);
TString63 fName;
AeAssetBin * fBin;
AeAssetBinUI * fChildBinUI;
AeClient * fClient; // needed ONLY for calcWidth
GList<AeFieldUI *> * fFieldUIList;
};
#endif __AeAssetBinUI__