39 using Vector = std::vector<ActionPanel*>;
47 static void DrawBackgroundWithoutItems(wxWindow& obj, wxDC& dc,
const wxRect& rect);
57 const Antares::Action::Context::Ptr& context,
67 void onDraw(wxPaintEvent&);
73 virtual void SetFocus();
76 void onEnter(wxMouseEvent&);
77 void onLeave(wxMouseEvent&);
78 void onMouseDown(wxMouseEvent&);
79 void onMouseDownCollapseExpand();
80 void onMouseDownBehaviorSelect(wxWindow* obj);
81 void drawArrows(wxDC& dc,
const wxRect& rect);
83 void prepareAll(
bool force =
false);
85 void relayoutAllParents();
86 void computeTotalChildrenCount();
88 void onBehaviorMerge(wxCommandEvent&);
89 void onBehaviorOverwrite(wxCommandEvent&);
90 void onBehaviorSkip(wxCommandEvent&);
94 Antares::Action::Context::Ptr pContext;
98 wxColour pBackgroundColor;
99 wxColour pBackgroundColorLight;
100 wxColour pStateColor[Antares::Action::stMax];
104 wxString pBehaviorText;
108 bool pCanDoSomething;
109 bool phasCreatedChildren;
115 Antares::Action::State pState;
116 Antares::Action::Behavior pBehavior;
123 DECLARE_EVENT_TABLE()
ActionPanel(wxWindow *parent, ActionPanel *parentPanel, const Antares::Action::Context::Ptr &context, const Antares::Action::IAction::Ptr &action)
Default constructor.
Definition action-panel.cpp:57