ToolMap
Loading...
Searching...
No Matches
ObjectDefinitionList Class Reference
Inheritance diagram for ObjectDefinitionList:
ListGenReportWithStatus ListGenReportWithDialog ListGenReport

Public Member Functions

 ObjectDefinitionList (wxWindow *parent, wxWindowID id, PrjDefMemManage *memory, PRJDEF_LAYERS_TYPE paneltype, DataBaseTM *database, wxArrayString *pColsName, wxArrayInt *pColsSize=nullptr, wxSize size=wxDefaultSize)
 Constructor.
 
 ~ObjectDefinitionList ()
 Destructor.
 
void SetObjectToList (ProjectDefMemoryObjects *object, int iIndex=-1)
 Update list values with ProjectDefMemoryObjects.
 
void GetObjectFromList (ProjectDefMemoryObjects *object, int iIndex)
 Get list values into ProjectDefMemoryObjects.
 
void SetListSpatialType (int iSpatialType)
 
void SetListCtrls (wxChoice *layerchoice, wxCheckBox *checkboxfreq=nullptr)
 
void SetFreqStatus (int frequency, wxArrayLong *iIndexes)
 Update layer freqency in response to event.
 
void SetLayerStatus (const wxString &layer, wxArrayLong *iIndexes)
 Update layer name in response to event.
 
- Public Member Functions inherited from ListGenReportWithStatus
 ListGenReportWithStatus (wxWindow *parent, wxWindowID id, wxArrayString *pColsName, wxArrayInt *pColsSize=nullptr, wxSize size=wxDefaultSize)
 Constructor.
 
void SetStatusBar (wxStatusBar *status)
 Set the status bar.
 
wxStatusBar * GetStatusBar ()
 
void SetTextFields (const wxString &field1=wxEmptyString, const wxString &field2=wxEmptyString)
 Set the fields messages.
 
bool UpdateStatus (int iField=STATUS_FIELD_ITEM_BOTH)
 Update the status bar text.
 
virtual void AddItem ()
 Re-implement the AddItem.
 
virtual void DeleteItem ()
 Re-implement the DeleteItem.
 
- Public Member Functions inherited from ListGenReportWithDialog
 ListGenReportWithDialog (wxWindow *parent, wxWindowID id, wxSize size=wxDefaultSize)
 
 ListGenReportWithDialog (wxWindow *parent, wxWindowID id, wxArrayString *pColsName, wxArrayInt *pColsSize=nullptr, wxSize size=wxDefaultSize, long style=wxLC_REPORT)
 
virtual int ImportParsedFileToListCtrl (const wxString &filename, const int &FilterIndex)
 Import file data to list.
 
void SetDialog (wxDialog *pDialog)
 
void EditItem ()
 
- Public Member Functions inherited from ListGenReport
void SortListItem (int x_col, int low, int high, int typecol, bool bAscending=TRUE)
 Sort columns.
 
void SwapRow (int x_row1, int x_row2)
 Swap two items value.
 
virtual int Compare (int iColumnCompareType, const wxString &x_strValue1, const wxString &x_strValue2, bool bAscending)
 Compare two values for sorting data.
 
 ListGenReport (wxWindow *parent, wxWindowID id, wxSize size=wxDefaultSize)
 Constructor for derived class.
 
 ListGenReport (wxWindow *parent, wxWindowID id, wxArrayString *pColsName, wxArrayInt *pColsSize=nullptr, wxSize size=wxDefaultSize, long style=wxLC_REPORT)
 Constructor.
 
 ~ListGenReport ()
 Desctructor.
 
void AddItemToList (wxString myValue, int iPosition=-1)
 Add an item to the list.
 
wxString GetItemColText (int iItem, int iCol)
 Get the text of a specified column for a specified item.
 
bool SetItemText (int iItem, int iCol, wxString text)
 Set the text of a specified column for a specified item.
 
long GetSelectedItem ()
 Get the first item selected.
 
void SetSelectedItem (long index)
 
int GetAllSelectedItem (wxArrayLong &results)
 Get all selected item.
 
void MoveItem (int iItem, int iNewPos=0)
 Move item in the list.
 
bool DataToList (ListGenDialog *pdialog, wxArrayString &myValues)
 Change list values using a ListGenDialog.
 
bool DeleteSelectedItem ()
 Delete the selected item.
 
virtual int GetAllDataAsStringArray (wxArrayString &myStringArray, long index)
 Get all data from a row into an array of string.
 
bool ItemExist (long index)
 Check for an item existence.
 
virtual bool EditDataToList (const wxArrayString &myValue, int index=-1)
 Fill list using a string array.
 
int ExportListParsedToFile (const wxString &filename, const int &FilterIndex)
 Export values of a list to a parsed file.
 
int GetColumnClicked (wxWindow *parent, int iIndex, int iBorderMargin)
 Get the column in wich user has clicked.
 
 DECLARE_EVENT_TABLE ()
 

Additional Inherited Members

- Static Public Attributes inherited from ListGenReport
static const int ID_LIST = wxID_ANY
 
- Protected Member Functions inherited from ListGenReportWithDialog
void InitMembers ()
 
virtual void AddingValueToArray (wxArrayString &myImportedValues)
 
virtual void OnDoubleClickItem (wxListEvent &event)
 
virtual void OnPressBackSpace (wxListEvent &event)
 
- Protected Member Functions inherited from ListGenReport
void CreateColumns (wxArrayString *pColsName, wxArrayInt *pColsSize=nullptr)
 
virtual void OnContextMenu (wxListEvent &event)
 
void OnMoveItemInList (wxCommandEvent &event)
 
void OnInit ()
 
- Protected Attributes inherited from ListGenReportWithDialog
wxDialog * m_pDialog
 
- Protected Attributes inherited from ListGenReport
ListGenMenum_ListContextMenu
 
TextParserm_ImportParser
 

Member Function Documentation

◆ GetObjectFromList()

void ObjectDefinitionList::GetObjectFromList ( ProjectDefMemoryObjects object,
int  iIndex 
)

Get list values into ProjectDefMemoryObjects.

This function gets the list values into a ProjectDefMemoryObjects pointer for the specified list index

Parameters
objectpointer to a ProjectDefMemoryObjects used for returning the values
iIndexthe zero based index of the item we want to get values
Author
Lucien Schreiber (c) CREALP 2007
Date
20 March 2008

◆ SetFreqStatus()

void ObjectDefinitionList::SetFreqStatus ( int  frequency,
wxArrayLong *  iIndexes 
)

Update layer freqency in response to event.

May be used to change the layer frequency text from one or more item in the list

Parameters
frequencythe new frequency to change may be OBJECT_FREQUENT or OBJECT_LESS_FREQUENT
iIndexesan array of long containing index of items to be changed
Author
Lucien Schreiber (c) CREALP 2007
Date
17 March 2008

◆ SetLayerStatus()

void ObjectDefinitionList::SetLayerStatus ( const wxString &  layer,
wxArrayLong *  iIndexes 
)

Update layer name in response to event.

May be used to change the layer name text from one or more item in the list

Parameters
layerThe new name for the layer name
iIndexesan array of long containing index of items to be changed (should not be null)
Author
Lucien Schreiber (c) CREALP 2007
Date
17 March 2008

◆ SetObjectToList()

void ObjectDefinitionList::SetObjectToList ( ProjectDefMemoryObjects object,
int  iIndex = -1 
)

Update list values with ProjectDefMemoryObjects.

This function update the list (or add item into) with values specified in the ProjectDefMemoryObjects pointer

Parameters
objectpointer to a ProjectDefMemoryObjects containing values to set into the list
iIndexthe zero based index of the item to modify if iIndex is -1 (the default) then a new item is added
Author
Lucien Schreiber (c) CREALP 2007
Date
20 March 2008

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