mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Added a 'Plan' mode and a 'Dive' mode on the profile.
Added a 'Plan' mode and a 'Dive' mode on the profile. Those modes tell the application what can be done: Plan - the dive's dinamyc and can be changed, 'Dive', the dive is fixed ( most probably downloaded from a dive computer and it's readonly. ) - now I need to properly populate stuff. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
1baef83791
commit
b4835badb6
2 changed files with 17 additions and 7 deletions
|
|
@ -68,6 +68,8 @@ class ProfileGraphicsView : public QGraphicsView
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
enum Mode{DIVE, PLAN};
|
||||
|
||||
ProfileGraphicsView(QWidget* parent = 0);
|
||||
void plot(struct dive *d, bool forceRedraw = FALSE);
|
||||
bool eventFilter(QObject* obj, QEvent* event);
|
||||
|
|
@ -117,6 +119,8 @@ private:
|
|||
QGraphicsItem* timeMarkers;
|
||||
QGraphicsItem* depthMarkers;
|
||||
QGraphicsItem* diveComputer;
|
||||
|
||||
enum Mode mode;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue