MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / GetColLabelValue

Method GetColLabelValue

DataViewer/TableBase.cpp:841–867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

839}
840
841wxString TableBase::GetColLabelValue(int col)
842{
843 // \uXXXX are unicode characters for up and down arrows
844 // \u0668 Arabic-Indic digit eight (up pointing arrow)
845 // \u0667 Arabic-Indic digit seven (down pointing arrow)
846 // \u25B5 white small up-pointing triangle (too big on OSX)
847 // \u25BF white small down-pointing triangle
848 // \u25B4 black small up-pointing triangle (too big on OSX)
849 // \u25BE black small down-pointing triangle
850 // \u02C4, \u02C5 are up and down-pointing arrows
851 // \u27F0 upward quadruple arrow
852 // \u27F1 downward quadruble arrow
853
854 if (col<0 || col>table_int->GetNumberCols()) return wxEmptyString;
855
856 wxString label(table_int->GetColName(col));
857
858 if (table_int->IsColTimeVariant(col)) {
859 label << " (" << time_state->GetCurrTimeString();
860 label << ")";
861 }
862
863 if (col == sorting_col) {
864 label << (sorting_ascending ? " >" : " <");
865 }
866 return label;
867}
868
869void TableBase::update(HLStateInt* o)
870{

Callers 1

TableFrameMethod · 0.80

Calls 4

GetCurrTimeStringMethod · 0.80
GetNumberColsMethod · 0.45
GetColNameMethod · 0.45
IsColTimeVariantMethod · 0.45

Tested by

no test coverage detected