AeDelayFieldUI.c++ 743 Bytes
#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 ();
}