Zoom Out Menu Option

So you can unzoom in ride plot when you've zoomed in
to an interval -- avoiding having to show fullplot to
do the same thing manually.

There are probably other places to add functionality
for zooming out, will deal with those as they arise.
This commit is contained in:
Mark Liversedge
2013-11-11 19:56:31 +00:00
parent ac138f9108
commit f8bfc93ca0
7 changed files with 34 additions and 6 deletions

View File

@@ -21,8 +21,8 @@
#include "Context.h"
#include "RideItem.h"
ReferenceLineDialog::ReferenceLineDialog(AllPlot *parent, Context *context) :
parent(parent), context(context), axis(-1)
ReferenceLineDialog::ReferenceLineDialog(AllPlot *parent, Context *context, bool allowDelete) :
parent(parent), context(context), allowDelete(allowDelete), axis(-1)
{
setAttribute(Qt::WA_DeleteOnClose);
setWindowTitle(tr("Add Reference"));
@@ -47,6 +47,9 @@ ReferenceLineDialog::ReferenceLineDialog(AllPlot *parent, Context *context) :
buttonLayout->addWidget(cancelButton);
mainLayout->addLayout(buttonLayout);
// below that line we will show the existing references
// so they can be deleted
connect(addButton, SIGNAL(clicked()), this, SLOT(addClicked()));
connect(cancelButton, SIGNAL(clicked()), this, SLOT(cancelClicked()));
}