9 #ifndef Guit_Inspector_hpp
10 #define Guit_Inspector_hpp
12 #include <gwindow.hpp>
14 #include <gscrollbox.hpp>
15 #include <gchoice.hpp>
17 #include <gstates.hpp>
31 void setInspecting(
int mode);
32 static int inspecting();
35 static Gadget* inspected();
38 Gadget* target() {
return target_;}
40 void setInspectingCB( std::function<
void(
int) >
const& fun);
41 void setInspectedCB( std::function<
void(
Gadget*) >
const& fun);
45 void highlight(
Gadget*,
bool state);
46 void addGadget(
GBox& box,
Gadget& obj,
int ix);
47 void deleteGadget(
Gadget* obj,
bool itself);
52 void updateChildValues();
53 void updatePropValues();
54 void moveTarget(
Gadget* obj);
58 GShow hastarget_, hasparent_, hasundo_;
59 GText targettype_, targetext_, targetgeom_;
60 GText parenttype_, parentext_;
61 GTable propbox_{
"#propbox"}, childbox_{
"#childbox"};
65 std::function<void(int)> inspectingcb_{};
66 std::function<void(Gadget*)> inspectedcb_{};
74 obj(obj), parent(parent),
pos(pos) {}
77 : obj(obj), parent(parent) {}
84 std::list<UndoElem> undolist_;