RVC::UI::DLG_DB_FIELD_VALUE Class Reference

Base for database field value view/edit dialogs. More...

#include <rvc/uidlgdbfieldvalue.h>

Inheritance diagram for RVC::UI::DLG_DB_FIELD_VALUE:
Inheritance graph
[legend]

List of all members.

Classes

class  SETTINGS
 Base for settings. More...

Public Member Functions

 DLG_DB_FIELD_VALUE (const MISTRING &title, SETTINGS &settings, HELPID helpid=HELPID__None, DLGSHELL::STYLE dlgstyle=STYLE_Default)
virtual ~DLG_DB_FIELD_VALUE ()
bool GetAllowEdit () const
INT32 GetFieldNumFor () const
const RVC::DBTABLEGetTableFor () const
ERRVALUE GetValue (RVC::DBTABLE::RECORD &record)
void SetDelegateOnUserClose (DELEGATE_VOID_NOPARMS delegate)
void SetDelegateOnValueChanged (DELEGATE_VOID_INT32 delegate)
ERRVALUE Setup (const RVC::DBTABLE &ObjTable, INT32 FieldNum, bool AllowEdit)
ERRVALUE SetValue (const RVC::DBTABLE::RECORD &record)

Protected Member Functions

void NotifyValueChanged ()

Private Member Functions

virtual ERRVALUE v_GetValue (RVC::DBTABLE::RECORD &record)=0
virtual ERRVALUE v_Setup (const RVC::DBTABLE &ObjTable)=0
virtual ERRVALUE v_SetValue (const RVC::DBTABLE::RECORD &record)=0
virtual void v_UpdateSettings ()=0

Detailed Description

Base for database field value view/edit dialogs.


Constructor & Destructor Documentation

RVC::UI::DLG_DB_FIELD_VALUE::DLG_DB_FIELD_VALUE ( const MISTRING title,
SETTINGS settings,
HELPID  helpid = HELPID__None,
DLGSHELL::STYLE  dlgstyle = STYLE_Default 
)

Constructor.

virtual RVC::UI::DLG_DB_FIELD_VALUE::~DLG_DB_FIELD_VALUE (  )  [virtual]

Destructor.


Member Function Documentation

bool RVC::UI::DLG_DB_FIELD_VALUE::GetAllowEdit (  )  const [inline]

Get whether allowed to edit.

INT32 RVC::UI::DLG_DB_FIELD_VALUE::GetFieldNumFor (  )  const [inline]

Get field number.

const RVC::DBTABLE& RVC::UI::DLG_DB_FIELD_VALUE::GetTableFor (  )  const [inline]

Get table value is for.

ERRVALUE RVC::UI::DLG_DB_FIELD_VALUE::GetValue ( RVC::DBTABLE::RECORD record  )  [inline]

Get value, placing in appropriate field in record.

Parameters:
record Record to place value into
void RVC::UI::DLG_DB_FIELD_VALUE::NotifyValueChanged (  )  [protected]

Notify via delegate that value has changed.

void RVC::UI::DLG_DB_FIELD_VALUE::SetDelegateOnUserClose ( DELEGATE_VOID_NOPARMS  delegate  )  [inline]

Set delegate to call when user explicitly closes dialog.

void RVC::UI::DLG_DB_FIELD_VALUE::SetDelegateOnValueChanged ( DELEGATE_VOID_INT32  delegate  )  [inline]

Set delegate to call when value changed.

Delegate will be passed field number as parameter.

ERRVALUE RVC::UI::DLG_DB_FIELD_VALUE::Setup ( const RVC::DBTABLE ObjTable,
INT32  FieldNum,
bool  AllowEdit 
)

Setup with table and field to view/edit values for.

Must be done only once and before dialog is created.

Parameters:
ObjTable Table view/edit field value for
FieldNum Field to view/edit
ERRVALUE RVC::UI::DLG_DB_FIELD_VALUE::SetValue ( const RVC::DBTABLE::RECORD record  )  [inline]

Set value from appropriate field in record.

Parameters:
record Record to set value from
virtual ERRVALUE RVC::UI::DLG_DB_FIELD_VALUE::v_GetValue ( RVC::DBTABLE::RECORD record  )  [private, pure virtual]

Get value, placing in appropriate field in record.

Parameters:
record Record to place value into
virtual ERRVALUE RVC::UI::DLG_DB_FIELD_VALUE::v_Setup ( const RVC::DBTABLE ObjTable  )  [private, pure virtual]

Setup with table to view/edit values for.

Parameters:
ObjTable Table view/edit field value for
virtual ERRVALUE RVC::UI::DLG_DB_FIELD_VALUE::v_SetValue ( const RVC::DBTABLE::RECORD record  )  [private, pure virtual]

Set value from appropriate field in record.

Parameters:
record Record to set value from
virtual void RVC::UI::DLG_DB_FIELD_VALUE::v_UpdateSettings (  )  [private, pure virtual]

Update settings to current state.


The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:38:52 2012 for TNTsdk 2012 by  doxygen 1.6.1