summaryrefslogtreecommitdiff
path: root/wx+/graph.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2016-03-16 21:31:24 +0100
committerDaniel Wilhelm <daniel@wili.li>2016-03-16 21:31:24 +0100
commit89621addb4a7c87d2e3f3e7462e3c690cf71de71 (patch)
tree008b5dea7624ee1eeb57ff82c45fdf1afcab3b08 /wx+/graph.h
parent7.5 (diff)
downloadFreeFileSync-89621addb4a7c87d2e3f3e7462e3c690cf71de71.tar.gz
FreeFileSync-89621addb4a7c87d2e3f3e7462e3c690cf71de71.tar.bz2
FreeFileSync-89621addb4a7c87d2e3f3e7462e3c690cf71de71.zip
7.6
Diffstat (limited to 'wx+/graph.h')
-rw-r--r--wx+/graph.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/wx+/graph.h b/wx+/graph.h
index ea05709d..7b61858d 100644
--- a/wx+/graph.h
+++ b/wx+/graph.h
@@ -4,14 +4,15 @@
// * Copyright (C) Zenju (zenju AT gmx DOT de) - All Rights Reserved *
// **************************************************************************
-#ifndef WX_PLOT_HEADER_2344252459
-#define WX_PLOT_HEADER_2344252459
+#ifndef GRAPH_H_234425245936567345799
+#define GRAPH_H_234425245936567345799
#include <map>
#include <vector>
#include <memory>
#include <wx/panel.h>
#include <wx/settings.h>
+#include <wx/bitmap.h>
#include <zen/string_tools.h>
#include <zen/optional.h>
@@ -177,7 +178,7 @@ public:
class CurveAttributes
{
public:
- CurveAttributes() {} //required by GCC
+ CurveAttributes() {} //required by GCC
CurveAttributes& setColor (const wxColour& col) { color = col; autoColor = false; return *this; }
CurveAttributes& fillCurveArea(const wxColour& col) { fillColor = col; drawCurveArea = true; return *this; }
CurveAttributes& setLineWidth(size_t width) { lineWidth = static_cast<int>(width); return *this; }
@@ -276,7 +277,7 @@ public:
PosLabelX labelposX = X_LABEL_BOTTOM;
int xLabelHeight = 25;
- std::shared_ptr<LabelFormatter> labelFmtX = std::make_shared<DecimalNumberFormatter>();
+ std::shared_ptr<LabelFormatter> labelFmtX = std::make_shared<DecimalNumberFormatter>();
PosLabelY labelposY = Y_LABEL_LEFT;
int yLabelWidth = 60;
@@ -333,7 +334,7 @@ private:
MainAttributes attr; //global attributes
- std::unique_ptr<wxBitmap> doubleBuffer;
+ Opt<wxBitmap> doubleBuffer;
typedef std::vector<std::pair<std::shared_ptr<CurveData>, CurveAttributes>> CurveList;
CurveList curves_;
@@ -341,4 +342,4 @@ private:
};
}
-#endif //WX_PLOT_HEADER_2344252459
+#endif //GRAPH_H_234425245936567345799
bgstack15