Scope
Windows.h
1 #pragma once
2 
3 #include "Base.h"
4 #include "helpers/ScopeNumber.h"
5 #include "helpers/ScopeString.h"
6 
7 namespace scope {
8  namespace parameters {
9 
12 class Window
13  : public Base {
14 
15 public:
18 
21 
24 
27 
30 
33 
34  Window(void);
35 
36  void Load(const wptree& pt) override;
37  void Save(wptree& pt) const override;
38  void SetReadOnlyWhileScanning(const RunState& _runstate) override { }
39 };
40 
44  : public Base {
45 
46 public:
48  std::vector<Window> collection;
49 
50  WindowCollection(void);
51 
53  void AddWindow(const std::wstring& _type, const uint32_t& _area, HWND _hwnd);
54 
55  void Load(const wptree& pt) override;
56  void Save(wptree& pt) const override;
57  void SetReadOnlyWhileScanning(const RunState& _runstate) override { }
58 };
59 
60 }
61 }
void Save(wptree &pt) const override
save parameters into a boost:property_tree
Definition: Windows.cpp:63
void Load(const wptree &pt) override
load parameters from a boost::property_tree
Definition: Windows.cpp:16
ScopeNumber< uint32_t > right
right coordinate
Definition: Windows.h:32
Parameters for all frames/windows on screen.
Definition: Windows.h:12
ScopeNumber< uint32_t > bottom
bottom coordinate
Definition: Windows.h:29
ScopeNumber< uint32_t > top
top coordinate
Definition: Windows.h:23
void Save(wptree &pt) const override
save parameters into a boost:property_tree
Definition: Windows.cpp:25
void Load(const wptree &pt) override
load parameters from a boost::property_tree
Definition: Windows.cpp:51
All parameter classes derive from this.
Definition: Base.h:21
void SetReadOnlyWhileScanning(const RunState &_runstate) override
set values that must not be changed to read-only during scanning.
Definition: Windows.h:38
Base class for all Scope datatypes here, provides a uniform interface (and saves typing...).
void AddWindow(const std::wstring &_type, const uint32_t &_area, HWND _hwnd)
Add a window to the collection.
Definition: Windows.cpp:38
ScopeString type
Type of window, e.g.
Definition: Windows.h:17
ScopeNumber< uint32_t > left
left coordinate
Definition: Windows.h:26
A templated class for a thread-safe std::wstring, with signals that are called on value changes...
Definition: ScopeString.h:8
void SetReadOnlyWhileScanning(const RunState &_runstate) override
set values that must not be changed to read-only during scanning.
Definition: Windows.h:57
Parameters for all frames/windows on screen.
Definition: Windows.h:43
std::vector< Window > collection
Vector with Window.
Definition: Windows.h:48
ScopeNumber< uint32_t > area
For which area that window is.
Definition: Windows.h:20