aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
AgeCommit message (Collapse)Author
2013-06-20Added a 2 Ruler Items, Time and Depth.Gravatar Tomaz Canabrava
The ruler items are needed so I can get the correct coordinates of the planned dive. This is a very rudimentary ruler and it needs a bit of love, but it already gives me something to work on. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-06-20Added the skeleton for the Ruler Item,Gravatar Tomaz Canabrava
The ruler will deliver the Time and the Depth, later. it should be vertical or horizontal, and will have ticks Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-06-20Make the plan handlers to not move across other handlers.Gravatar Tomaz Canabrava
This patch disables the hability to move handlers across the others, making a 'zigzag' in the time line. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-06-20Added drag and drop code to the dive planGravatar Tomaz Canabrava
Added drag and drop code to the dive plan, it can move the user- inputted data, but will not touch the computer generated ones. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-06-20Created a class DiveHandle to make drag drop work.Gravatar Tomaz Canabrava
Create d a class DiveHandle to make drag drop works, it has a from and to Lines, and it will move them around. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-06-20Make the cross red when you cant plot a dive stopGravatar Tomaz Canabrava
Make the cross red when you cant plot a dive stop, also make impossible to put a dive stop before the last one. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-06-20Better defaults for placement of dive stops.Gravatar Tomaz Canabrava
This patch makes it impossible to create a dive stop outside of the scene - this, messing the complete planning system. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-06-20Created a cross that follows the mouse on the dive planner.Gravatar Tomaz Canabrava
Created a cross that follows the mouse on the dive planner, this will help the user to know where it is placing the stop. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-06-20Fix creation of the poligon-based lines for the dive plannerGravatar Tomaz Canabrava
This fixes the creation of the poligon-based lines next thing to do is to forbit creation of the next point before the last one. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-06-20Better handling of the scene size for the dive PlanGravatar Tomaz Canabrava
Better handling of the scene size for the dive plan, The scene can be resized and a transform will be applied, the handles will not resize however - they are 10x10px and that's it. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-06-20Plots Lines and handles on the PlannerGravatar Tomaz Canabrava
This is still a bit bugged - the lines are going to the wrong end - most probaly I messed something on the math. I'll now fix the sizing issue then I'll try to make it behave in the proper way. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-06-20Make double click work to put new items on the canvas.Gravatar Tomaz Canabrava
Make double click work to put new items on the canvas. Those items right now are QGraphicsEllipseItems, but it will change to 'draggable' items. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-06-20Added the first scope of the visual dive planner.Gravatar Tomaz Canabrava
Added the first files and skeleton code for the visual dive planner. now I need to fill things. The code is using the print action borrowed, this will need to move to a better choice in the future. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>