AeDelayFieldUI.c++
743 Bytes
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
#include <assert.h>
#include "AeDelayFieldUI.h"
#include "AeAsset.h"
#include "AePlayer.h"
AeDelayFieldUI::AeDelayFieldUI (const char * name,
Boolean isEditable,
Boolean isSelectable,
Boolean isHierarchical,
TJustify justify,
TIntGetProc getProc,
TIntSetProc setProc,
int min, int max, int def) :
AeIntFieldUI (name, isEditable, isSelectable, isHierarchical,
justify, getProc, setProc, min, max, def)
{
}
AeDelayFieldUI::~AeDelayFieldUI (void)
{
}
Boolean
AeDelayFieldUI::IsEditable (AeAsset * asset)
{
return !asset->IsOnline ();
}
int
AeDelayFieldUI::GetMax (AeAsset * asset)
{
assert (asset->GetType () == kFxType || asset->GetType() == kFxSxnType);
return asset->GetMaxDelay ();
}