diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:31:50 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:31:50 +0200 |
commit | 570916ddc376b09205125eaaab517561dfead9f0 (patch) | |
tree | 309a94f040707c402623e4f9f887346d1b561df7 /wx+/graph.h | |
parent | 6.2 (diff) | |
download | FreeFileSync-570916ddc376b09205125eaaab517561dfead9f0.tar.gz FreeFileSync-570916ddc376b09205125eaaab517561dfead9f0.tar.bz2 FreeFileSync-570916ddc376b09205125eaaab517561dfead9f0.zip |
6.3
Diffstat (limited to 'wx+/graph.h')
-rw-r--r-- | wx+/graph.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/wx+/graph.h b/wx+/graph.h index 84aa56cf..bafbe4eb 100644 --- a/wx+/graph.h +++ b/wx+/graph.h @@ -11,6 +11,7 @@ #include <vector> #include <memory> #include <wx/panel.h> +#include <wx/settings.h> #include <zen/string_tools.h> #include <zen/optional.h> @@ -240,6 +241,7 @@ public: labelposY(Y_LABEL_LEFT), yLabelWidth(60), labelFmtY(std::make_shared<DecimalNumberFormatter>()), + backgroundColor(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW)), mouseSelMode(SELECT_RECTANGLE) {} MainAttributes& setMinX(double newMinX) { minX = newMinX; minXauto = false; return *this; } @@ -269,6 +271,8 @@ public: MainAttributes& setCornerText(const wxString& txt, PosCorner pos) { cornerTexts[pos] = txt; return *this; } + MainAttributes& setBackgroundColor(const wxColour& col) { backgroundColor = col; return *this; } + MainAttributes& setSelectionMode(SelMode mode) { mouseSelMode = mode; return *this; } private: @@ -294,6 +298,7 @@ public: std::map<PosCorner, wxString> cornerTexts; + wxColour backgroundColor; SelMode mouseSelMode; }; void setAttributes(const MainAttributes& newAttr) { attr = newAttr; Refresh(); } |