Main Page   Class Hierarchy   Compound List   File List   Compound Members  

ColumnField Class Reference

Helper class for table sort and column change functionality. More...

#include <ColumnField.h>

Inheritance diagram for ColumnField::

NullColumnField List of all members.

Public Methods

 ColumnField (wxString name, int oldIndex=-1, int oldWidth=0)
 Creates a new column. More...

bool isNew ()
 Tests if the columns is new for the column change functionality. More...

int getOldIndex ()
 Gets the index of the current table column, for column change functionality. More...

int getOldWidth ()
 Gets the with of the current table column, for column change functionality. More...

wxString getName ()
 Gets the column label, perhaps changed by the column change dialog. More...

void setName (wxString name)
 Sets a new column label. More...


Detailed Description

Helper class for table sort and column change functionality.

Definition at line 13 of file ColumnField.h.


Constructor & Destructor Documentation

ColumnField::ColumnField wxString    name,
int    oldIndex = -1,
int    oldWidth = 0
 

Creates a new column.

Parameters:
name  Column label.
oldIndex  Reference to the current table column. -1 for new columns.
oldWidth  Reference to the current tabel column width, specified by oldIndex.

Definition at line 61 of file dialogs.cpp.


Member Function Documentation

wxString ColumnField::getName  
 

Gets the column label, perhaps changed by the column change dialog.

Definition at line 83 of file dialogs.cpp.

int ColumnField::getOldIndex  
 

Gets the index of the current table column, for column change functionality.

Definition at line 73 of file dialogs.cpp.

int ColumnField::getOldWidth  
 

Gets the with of the current table column, for column change functionality.

Definition at line 78 of file dialogs.cpp.

bool ColumnField::isNew  
 

Tests if the columns is new for the column change functionality.

Returns:
true, if the column is new.

Definition at line 68 of file dialogs.cpp.

Referenced by ColumnDialog::~ColumnDialog().

void ColumnField::setName wxString    name
 

Sets a new column label.

Definition at line 88 of file dialogs.cpp.


Generated on Thu May 2 15:13:51 2002 for Wino by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001