Initial implementation of barcode object.

This commit is contained in:
Jim Evins
2017-04-29 19:12:20 -04:00
parent 02630aec19
commit cf000a5d5c
17 changed files with 647 additions and 56 deletions
+15 -1
View File
@@ -27,6 +27,7 @@
#include "FrameRound.h"
#include "LabelModel.h"
#include "LabelModelObject.h"
#include "LabelModelBarcodeObject.h"
#include "LabelModelBoxObject.h"
#include "LabelModelEllipseObject.h"
#include "LabelModelImageObject.h"
@@ -377,6 +378,19 @@ namespace glabels
}
///
/// Create barcode mode
///
void
LabelEditor::createBarcodeMode()
{
setCursor( Cursors::Barcode() );
mCreateObjectType = Barcode;
mState = CreateIdle;
}
///
/// Resize Event Handler
///
@@ -522,7 +536,7 @@ namespace glabels
mCreateObject = new LabelModelTextObject();
break;
case Barcode:
// mCreateObject = new LabelModelBarcodeObject();
mCreateObject = new LabelModelBarcodeObject();
break;
default:
qDebug() << "LabelEditor::mousePressEvent: Invalid creation type. Should not happen!";