| 1 |
#pragma once |
| 2 |
|
| 3 |
#include <string> |
| 4 |
#include <wx/panel.h> |
| 5 |
|
| 6 |
class wxTextCtrl; |
| 7 |
|
| 8 |
namespace objectives |
| 9 |
{ |
| 10 |
|
| 11 |
/** |
| 12 |
* greebo: This complex widget represents the UI elements needed to edit |
| 13 |
* a set of success- and failure logic strings. |
| 14 |
*/ |
| 15 |
class LogicEditor : |
| 16 |
public wxPanel |
| 17 |
{ |
| 18 |
private: |
| 19 |
wxTextCtrl* _successLogic; |
| 20 |
wxTextCtrl* _failureLogic; |
| 21 |
|
| 22 |
public: |
| 23 |
/** |
| 24 |
* The constructor will create the widgets. |
| 25 |
*/ |
| 26 |
LogicEditor(wxWindow* parent); |
| 27 |
|
| 28 |
// Read accessors for the logic strings |
| 29 |
std::string getSuccessLogicStr(); |
| 30 |
std::string getFailureLogicStr(); |
| 31 |
|
| 32 |
// Write accessors for the logic strings |
| 33 |
void setSuccessLogicStr(const std::string& logicStr); |
| 34 |
void setFailureLogicStr(const std::string& logicStr); |
| 35 |
}; |
| 36 |
|
| 37 |
} // namespace objectives |