Debian Codegraph @

plugins/dm.objectives/ce/AIFindItemComponentEditor.cpp

raw
1 #include "AIFindItemComponentEditor.h"
2 #include "../SpecifierType.h"
3 #include "../Component.h"
4
5 #include "i18n.h"
6 #include <wx/stattext.h>
7
8 namespace objectives
9 {
10
11 namespace ce
12 {
13
14 // Registration helper, will register this editor in the factory
15 AIFindItemComponentEditor::RegHelper AIFindItemComponentEditor::regHelper;
16
17 // Constructor
18 AIFindItemComponentEditor::AIFindItemComponentEditor(wxWindow* parent, Component& component) :
19 ComponentEditorBase(parent),
20 _component(&component)
21 {
22 // Main vbox
23 wxStaticText* label = new wxStaticText(_panel, wxID_ANY, _("Item:"));
24 label->SetFont(label->GetFont().Bold());
25
26 _panel->GetSizer()->Add(label, 0, wxBOTTOM, 6);
27
28 // TODO
29 }
30
31 // Write to component
32 void AIFindItemComponentEditor::writeToComponent() const
33 {
34 if (!_active) return; // still under construction
35
36 assert(_component);
37
38 _component->clearArguments();
39 // TODO
40 }
41
42 } // namespace ce
43
44 } // namespace objectives