Add buttons for switching control line type

This commit is contained in:
Lawrence Lee
2020-06-10 11:41:15 -07:00
parent 5e5a86f513
commit dd4364fab3
6 changed files with 617 additions and 24 deletions

View File

@@ -30,7 +30,10 @@
struct ControlLine
{
static constexpr int OBJ_COUNT = 4;
Line* line;
OPIcon* icon;
OPIcon *icon_h, *icon_v;
Circle *begin, *end;
rtengine::ControlLine::Type type;
};
@@ -47,6 +50,8 @@ protected:
std::vector<ControlLine*> control_lines;
CursorShape cursor;
bool draw_mode;
Cairo::RefPtr<RTSurface> line_icon_h, line_icon_v;
Cairo::RefPtr<RTSurface> line_icon_h_prelight, line_icon_v_prelight;
int prev_obj;
int selected_object;
@@ -89,6 +94,7 @@ public:
bool button1Pressed (int modifierKey) override;
bool button1Released (void) override;
bool button3Pressed (int modifierKey) override;
bool pick1 (bool picked) override;
bool pick3 (bool picked) override;
bool drag1 (int modifierKey) override;
CursorShape getCursor (int objectID) const override;