summaryrefslogtreecommitdiff
path: root/library/CustomGrid.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 16:56:34 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 16:56:34 +0200
commit9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca (patch)
tree61e2edc315a164d6fa3940b7de4b14dda0a9838c /library/CustomGrid.h
parent1.15 (diff)
downloadFreeFileSync-9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca.tar.gz
FreeFileSync-9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca.tar.bz2
FreeFileSync-9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca.zip
1.16
Diffstat (limited to 'library/CustomGrid.h')
-rw-r--r--library/CustomGrid.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/library/CustomGrid.h b/library/CustomGrid.h
index 97642159..8f392975 100644
--- a/library/CustomGrid.h
+++ b/library/CustomGrid.h
@@ -13,8 +13,6 @@ class CustomGridTable;
class CustomGridTableMiddle;
//##################################################################################
-extern const wxGrid* leadGrid; //this global variable is not very nice...
-
class CustomGrid : public wxGrid
{
public:
@@ -46,22 +44,23 @@ public:
void setSortMarker(const int sortColumn, const wxBitmap* bitmap = &wxNullBitmap);
//set visibility, position and width of columns
- void setColumnAttributes(const xmlAccess::XmlGlobalSettings::ColumnAttributes& attr);
- xmlAccess::XmlGlobalSettings::ColumnAttributes getColumnAttributes();
+ static xmlAccess::ColumnAttributes getDefaultColumnAttributes();
+ xmlAccess::ColumnAttributes getColumnAttributes();
+ void setColumnAttributes(const xmlAccess::ColumnAttributes& attr);
- xmlAccess::XmlGlobalSettings::ColumnTypes getTypeAtPos(unsigned pos) const;
+ xmlAccess::ColumnTypes getTypeAtPos(unsigned pos) const;
- static wxString getTypeName(xmlAccess::XmlGlobalSettings::ColumnTypes colType);
+ static wxString getTypeName(xmlAccess::ColumnTypes colType);
- static const unsigned COLUMN_TYPE_COUNT = 4;
+ void setLeadGrid(const wxGrid* newLead);
protected:
//set visibility, position and width of columns
- xmlAccess::XmlGlobalSettings::ColumnAttributes columnSettings;
-
+ xmlAccess::ColumnAttributes columnSettings;
void adjustGridHeights();
+ const wxGrid* leadGrid; //grid that has user focus
bool scrollbarsEnabled;
CustomGrid* m_gridLeft;
CustomGrid* m_gridRight;
bgstack15