Added basic image object functionality.
This commit is contained in:
@@ -37,6 +37,7 @@ set (glabels_sources
|
|||||||
LabelModelObject.cpp
|
LabelModelObject.cpp
|
||||||
LabelModelBoxObject.cpp
|
LabelModelBoxObject.cpp
|
||||||
LabelModelEllipseObject.cpp
|
LabelModelEllipseObject.cpp
|
||||||
|
LabelModelImageObject.cpp
|
||||||
LabelModelLineObject.cpp
|
LabelModelLineObject.cpp
|
||||||
LabelModelShapeObject.cpp
|
LabelModelShapeObject.cpp
|
||||||
LabelRegion.cpp
|
LabelRegion.cpp
|
||||||
@@ -81,6 +82,7 @@ set (glabels_qobject_headers
|
|||||||
LabelModelObject.h
|
LabelModelObject.h
|
||||||
LabelModelBoxObject.h
|
LabelModelBoxObject.h
|
||||||
LabelModelEllipseObject.h
|
LabelModelEllipseObject.h
|
||||||
|
LabelModelImageObject.h
|
||||||
LabelModelLineObject.h
|
LabelModelLineObject.h
|
||||||
LabelModelShapeObject.h
|
LabelModelShapeObject.h
|
||||||
MainWindow.h
|
MainWindow.h
|
||||||
|
|||||||
+15
-1
@@ -29,6 +29,7 @@
|
|||||||
#include "LabelModelObject.h"
|
#include "LabelModelObject.h"
|
||||||
#include "LabelModelBoxObject.h"
|
#include "LabelModelBoxObject.h"
|
||||||
#include "LabelModelEllipseObject.h"
|
#include "LabelModelEllipseObject.h"
|
||||||
|
#include "LabelModelImageObject.h"
|
||||||
#include "LabelModelLineObject.h"
|
#include "LabelModelLineObject.h"
|
||||||
#include "UndoRedoModel.h"
|
#include "UndoRedoModel.h"
|
||||||
#include "Settings.h"
|
#include "Settings.h"
|
||||||
@@ -340,6 +341,19 @@ LabelEditor::createEllipseMode()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Create image mode
|
||||||
|
///
|
||||||
|
void
|
||||||
|
LabelEditor::createImageMode()
|
||||||
|
{
|
||||||
|
setCursor( Cursors::Image() );
|
||||||
|
|
||||||
|
mCreateObjectType = Image;
|
||||||
|
mState = CreateIdle;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Create line mode
|
/// Create line mode
|
||||||
///
|
///
|
||||||
@@ -492,7 +506,7 @@ LabelEditor::mousePressEvent( QMouseEvent* event )
|
|||||||
mCreateObject = new LabelModelLineObject();
|
mCreateObject = new LabelModelLineObject();
|
||||||
break;
|
break;
|
||||||
case Image:
|
case Image:
|
||||||
// mCreateObject = new LabelModelImageObject();
|
mCreateObject = new LabelModelImageObject();
|
||||||
break;
|
break;
|
||||||
case Text:
|
case Text:
|
||||||
// mCreateObject = new LabelModelTextObject();
|
// mCreateObject = new LabelModelTextObject();
|
||||||
|
|||||||
@@ -0,0 +1,240 @@
|
|||||||
|
/* LabelModelImageObject.cpp
|
||||||
|
*
|
||||||
|
* Copyright (C) 2013-2016 Jim Evins <evins@snaught.com>
|
||||||
|
*
|
||||||
|
* This file is part of gLabels-qt.
|
||||||
|
*
|
||||||
|
* gLabels-qt is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* gLabels-qt is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with gLabels-qt. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "LabelModelImageObject.h"
|
||||||
|
|
||||||
|
#include <QBrush>
|
||||||
|
#include <QPen>
|
||||||
|
#include <QImage>
|
||||||
|
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Static data
|
||||||
|
///
|
||||||
|
QImage* LabelModelImageObject::smDefaultImage = 0;
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Constructor
|
||||||
|
///
|
||||||
|
LabelModelImageObject::LabelModelImageObject() : mImage(0)
|
||||||
|
{
|
||||||
|
mOutline = new Outline( this );
|
||||||
|
|
||||||
|
mHandles << new HandleNorthWest( this );
|
||||||
|
mHandles << new HandleNorth( this );
|
||||||
|
mHandles << new HandleNorthEast( this );
|
||||||
|
mHandles << new HandleEast( this );
|
||||||
|
mHandles << new HandleSouthEast( this );
|
||||||
|
mHandles << new HandleSouth( this );
|
||||||
|
mHandles << new HandleSouthWest( this );
|
||||||
|
mHandles << new HandleWest( this );
|
||||||
|
|
||||||
|
if ( smDefaultImage == 0 )
|
||||||
|
{
|
||||||
|
smDefaultImage = new QImage( ":images/checkerboard.png" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Copy constructor
|
||||||
|
///
|
||||||
|
LabelModelImageObject::LabelModelImageObject( const LabelModelImageObject* object ) : LabelModelObject(object)
|
||||||
|
{
|
||||||
|
mFilenameNode = object->mFilenameNode;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Destructor
|
||||||
|
///
|
||||||
|
LabelModelImageObject::~LabelModelImageObject()
|
||||||
|
{
|
||||||
|
delete mOutline;
|
||||||
|
|
||||||
|
foreach( Handle* handle, mHandles )
|
||||||
|
{
|
||||||
|
delete handle;
|
||||||
|
}
|
||||||
|
mHandles.clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Clone
|
||||||
|
///
|
||||||
|
LabelModelImageObject* LabelModelImageObject::clone() const
|
||||||
|
{
|
||||||
|
return new LabelModelImageObject( this );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Image filenameNode Property Getter
|
||||||
|
///
|
||||||
|
TextNode LabelModelImageObject::filenameNode( void ) const
|
||||||
|
{
|
||||||
|
return mFilenameNode;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Image filenameNode Property Setter
|
||||||
|
///
|
||||||
|
void LabelModelImageObject::setFilenameNode( const TextNode& value )
|
||||||
|
{
|
||||||
|
if ( mFilenameNode != value )
|
||||||
|
{
|
||||||
|
mFilenameNode = value;
|
||||||
|
loadImage();
|
||||||
|
|
||||||
|
emit changed();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Draw shadow of object
|
||||||
|
///
|
||||||
|
void LabelModelImageObject::drawShadow( QPainter* painter, bool inEditor, merge::Record* record ) const
|
||||||
|
{
|
||||||
|
QRectF destRect( 0, 0, mW.pt(), mH.pt() );
|
||||||
|
|
||||||
|
QColor shadowColor = mShadowColorNode.color( record );
|
||||||
|
shadowColor.setAlphaF( mShadowOpacity );
|
||||||
|
|
||||||
|
if ( mImage && mImage->hasAlphaChannel() && (mImage->depth() == 32) )
|
||||||
|
{
|
||||||
|
QImage* shadowImage = createShadowImage( shadowColor );
|
||||||
|
painter->drawImage( destRect, *shadowImage );
|
||||||
|
delete shadowImage;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
painter->setBrush( shadowColor );
|
||||||
|
painter->setPen( QPen( Qt::NoPen ) );
|
||||||
|
|
||||||
|
painter->drawRect( destRect );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Draw object itself
|
||||||
|
///
|
||||||
|
void LabelModelImageObject::drawObject( QPainter* painter, bool inEditor, merge::Record* record ) const
|
||||||
|
{
|
||||||
|
QRectF destRect( 0, 0, mW.pt(), mH.pt() );
|
||||||
|
|
||||||
|
if ( inEditor && (mFilenameNode.isField() || !mImage ) )
|
||||||
|
{
|
||||||
|
painter->save();
|
||||||
|
painter->setRenderHint( QPainter::SmoothPixmapTransform, false );
|
||||||
|
painter->drawImage( destRect, *smDefaultImage );
|
||||||
|
painter->restore();
|
||||||
|
}
|
||||||
|
else if ( mImage )
|
||||||
|
{
|
||||||
|
painter->drawImage( destRect, *mImage );
|
||||||
|
}
|
||||||
|
else if ( mFilenameNode.isField() )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Path to test for hover condition
|
||||||
|
///
|
||||||
|
QPainterPath LabelModelImageObject::hoverPath( double scale ) const
|
||||||
|
{
|
||||||
|
QPainterPath path;
|
||||||
|
path.addRect( 0, 0, mW.pt(), mH.pt() );
|
||||||
|
|
||||||
|
return path;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Load image
|
||||||
|
///
|
||||||
|
void LabelModelImageObject::loadImage()
|
||||||
|
{
|
||||||
|
if ( mImage )
|
||||||
|
{
|
||||||
|
delete mImage;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( mFilenameNode.isField() )
|
||||||
|
{
|
||||||
|
mImage = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
QString filename = mFilenameNode.data();
|
||||||
|
mImage = new QImage( filename );
|
||||||
|
if ( mImage->isNull() )
|
||||||
|
{
|
||||||
|
mImage = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
double imageW = mImage->width();
|
||||||
|
double imageH = mImage->height();
|
||||||
|
double aspectRatio = imageH / imageW;
|
||||||
|
if ( mH > mW*aspectRatio )
|
||||||
|
{
|
||||||
|
mH = mW*aspectRatio;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mW = mH/aspectRatio;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QImage* LabelModelImageObject::createShadowImage( const QColor& color ) const
|
||||||
|
{
|
||||||
|
int r = color.red();
|
||||||
|
int g = color.green();
|
||||||
|
int b = color.blue();
|
||||||
|
int a = color.alpha();
|
||||||
|
|
||||||
|
QImage* shadow = new QImage( *mImage );
|
||||||
|
for ( int iy = 0; iy < shadow->height(); iy++ )
|
||||||
|
{
|
||||||
|
QRgb* scanLine = (QRgb*)shadow->scanLine( iy );
|
||||||
|
|
||||||
|
for ( int ix = 0; ix < shadow->width(); ix++ )
|
||||||
|
{
|
||||||
|
scanLine[ix] = qRgba( r, g, b, (a*qAlpha(scanLine[ix]))/255 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return shadow;
|
||||||
|
}
|
||||||
@@ -0,0 +1,93 @@
|
|||||||
|
/* LabelModelImageObject.h
|
||||||
|
*
|
||||||
|
* Copyright (C) 2013-2016 Jim Evins <evins@snaught.com>
|
||||||
|
*
|
||||||
|
* This file is part of gLabels-qt.
|
||||||
|
*
|
||||||
|
* gLabels-qt is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* gLabels-qt is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with gLabels-qt. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LabelModelImageObject_h
|
||||||
|
#define LabelModelImageObject_h
|
||||||
|
|
||||||
|
#include "LabelModelObject.h"
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Label Model Image Object
|
||||||
|
///
|
||||||
|
class LabelModelImageObject : public LabelModelObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////
|
||||||
|
// Lifecycle Methods
|
||||||
|
///////////////////////////////////////////////////////////////
|
||||||
|
public:
|
||||||
|
LabelModelImageObject();
|
||||||
|
LabelModelImageObject( const LabelModelImageObject* object );
|
||||||
|
virtual ~LabelModelImageObject();
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////
|
||||||
|
// Object duplication
|
||||||
|
///////////////////////////////////////////////////////////////
|
||||||
|
virtual LabelModelImageObject* clone() const;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////
|
||||||
|
// Property Implementations
|
||||||
|
///////////////////////////////////////////////////////////////
|
||||||
|
public:
|
||||||
|
//
|
||||||
|
// Image Property: filenameNode
|
||||||
|
//
|
||||||
|
virtual TextNode filenameNode( void ) const;
|
||||||
|
virtual void setFilenameNode( const TextNode& value );
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////
|
||||||
|
// Capability Implementations
|
||||||
|
///////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////
|
||||||
|
// Drawing operations
|
||||||
|
///////////////////////////////////////////////////////////////
|
||||||
|
protected:
|
||||||
|
virtual void drawShadow( QPainter* painter, bool inEditor, merge::Record* record ) const;
|
||||||
|
virtual void drawObject( QPainter* painter, bool inEditor, merge::Record* record ) const;
|
||||||
|
virtual QPainterPath hoverPath( double scale ) const;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////
|
||||||
|
// Private
|
||||||
|
///////////////////////////////////////////////////////////////
|
||||||
|
void loadImage();
|
||||||
|
QImage* createShadowImage( const QColor& color ) const;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////
|
||||||
|
// Private Members
|
||||||
|
///////////////////////////////////////////////////////////////
|
||||||
|
protected:
|
||||||
|
TextNode mFilenameNode;
|
||||||
|
QImage* mImage;
|
||||||
|
|
||||||
|
static QImage* smDefaultImage;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif // LabelModelImageObject_h
|
||||||
@@ -45,8 +45,6 @@
|
|||||||
#include "MergeView.h"
|
#include "MergeView.h"
|
||||||
#include "PrintView.h"
|
#include "PrintView.h"
|
||||||
#include "LabelModel.h"
|
#include "LabelModel.h"
|
||||||
#include "LabelModelBoxObject.h"
|
|
||||||
#include "LabelModelEllipseObject.h"
|
|
||||||
#include "UndoRedoModel.h"
|
#include "UndoRedoModel.h"
|
||||||
#include "Icons.h"
|
#include "Icons.h"
|
||||||
#include "File.h"
|
#include "File.h"
|
||||||
@@ -1255,7 +1253,8 @@ void MainWindow::objectsCreateEllipse()
|
|||||||
///
|
///
|
||||||
void MainWindow::objectsCreateImage()
|
void MainWindow::objectsCreateImage()
|
||||||
{
|
{
|
||||||
qDebug() << "ACTION: objects->Create->Image";
|
mUndoRedoModel->checkpoint( tr("Create Image") );
|
||||||
|
mLabelEditor->createImageMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
#include "LabelModelObject.h"
|
#include "LabelModelObject.h"
|
||||||
#include "LabelModelBoxObject.h"
|
#include "LabelModelBoxObject.h"
|
||||||
#include "LabelModelEllipseObject.h"
|
#include "LabelModelEllipseObject.h"
|
||||||
|
#include "LabelModelImageObject.h"
|
||||||
#include "LabelModelLineObject.h"
|
#include "LabelModelLineObject.h"
|
||||||
#include "UndoRedoModel.h"
|
#include "UndoRedoModel.h"
|
||||||
|
|
||||||
@@ -32,6 +33,7 @@
|
|||||||
|
|
||||||
#include "Settings.h"
|
#include "Settings.h"
|
||||||
|
|
||||||
|
#include <QFileDialog>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <QtDebug>
|
#include <QtDebug>
|
||||||
|
|
||||||
@@ -82,6 +84,28 @@ void ObjectEditor::hidePages()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ObjectEditor::loadImagePage()
|
||||||
|
{
|
||||||
|
if ( mObject )
|
||||||
|
{
|
||||||
|
mBlocked = true;
|
||||||
|
|
||||||
|
TextNode filenameNode = mObject->filenameNode();
|
||||||
|
|
||||||
|
if ( filenameNode.isField() )
|
||||||
|
{
|
||||||
|
imageFilenameLineEdit->setText( QString("${%1}").arg( filenameNode.data() ) );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
imageFilenameLineEdit->setText( filenameNode.data() );
|
||||||
|
}
|
||||||
|
|
||||||
|
mBlocked = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void ObjectEditor::loadLineFillPage()
|
void ObjectEditor::loadLineFillPage()
|
||||||
{
|
{
|
||||||
if ( mObject )
|
if ( mObject )
|
||||||
@@ -273,6 +297,25 @@ void ObjectEditor::onSelectionChanged()
|
|||||||
|
|
||||||
setEnabled( true );
|
setEnabled( true );
|
||||||
}
|
}
|
||||||
|
else if ( dynamic_cast<LabelModelImageObject*>(mObject) )
|
||||||
|
{
|
||||||
|
titleImageLabel->setPixmap( QPixmap(":icons/24x24/actions/glabels-image.png") );
|
||||||
|
titleLabel->setText( tr("Image object properties") );
|
||||||
|
|
||||||
|
notebook->addTab( imagePage, "image" );
|
||||||
|
notebook->addTab( posSizePage, "position/size" );
|
||||||
|
notebook->addTab( shadowPage, "shadow" );
|
||||||
|
|
||||||
|
sizeRectFrame->setVisible( true );
|
||||||
|
sizeResetImageButton->setVisible( true );
|
||||||
|
sizeLineFrame->setVisible( false );
|
||||||
|
|
||||||
|
loadImagePage();
|
||||||
|
loadPositionPage();
|
||||||
|
loadShadowPage();
|
||||||
|
|
||||||
|
setEnabled( true );
|
||||||
|
}
|
||||||
else if ( dynamic_cast<LabelModelLineObject*>(mObject) )
|
else if ( dynamic_cast<LabelModelLineObject*>(mObject) )
|
||||||
{
|
{
|
||||||
titleImageLabel->setPixmap( QPixmap(":icons/24x24/actions/glabels-line.png") );
|
titleImageLabel->setPixmap( QPixmap(":icons/24x24/actions/glabels-line.png") );
|
||||||
@@ -333,6 +376,7 @@ void ObjectEditor::onObjectChanged()
|
|||||||
loadLineFillPage();
|
loadLineFillPage();
|
||||||
loadRectSizePage();
|
loadRectSizePage();
|
||||||
loadLineSizePage();
|
loadLineSizePage();
|
||||||
|
loadImagePage();
|
||||||
loadShadowPage();
|
loadShadowPage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -385,6 +429,21 @@ void ObjectEditor::onFillControlsChanged()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ObjectEditor::onImageFileButtonClicked()
|
||||||
|
{
|
||||||
|
QString filename =
|
||||||
|
QFileDialog::getOpenFileName( this->window(),
|
||||||
|
tr("gLabels - Select image file"),
|
||||||
|
".",
|
||||||
|
tr("Image Files (*.png *.jpg *.bmp);;All files (*)") );
|
||||||
|
if ( !filename.isEmpty() )
|
||||||
|
{
|
||||||
|
mUndoRedoModel->checkpoint( tr("Set image") );
|
||||||
|
mObject->setFilenameNode( TextNode( false, filename ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void ObjectEditor::onPositionControlsChanged()
|
void ObjectEditor::onPositionControlsChanged()
|
||||||
{
|
{
|
||||||
if ( !mBlocked )
|
if ( !mBlocked )
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ public:
|
|||||||
/////////////////////////////////
|
/////////////////////////////////
|
||||||
private:
|
private:
|
||||||
void hidePages();
|
void hidePages();
|
||||||
|
void loadImagePage();
|
||||||
void loadLineFillPage();
|
void loadLineFillPage();
|
||||||
void loadPositionPage();
|
void loadPositionPage();
|
||||||
void loadRectSizePage();
|
void loadRectSizePage();
|
||||||
@@ -76,6 +77,7 @@ private slots:
|
|||||||
void onObjectDestroyed();
|
void onObjectDestroyed();
|
||||||
void onLineControlsChanged();
|
void onLineControlsChanged();
|
||||||
void onFillControlsChanged();
|
void onFillControlsChanged();
|
||||||
|
void onImageFileButtonClicked();
|
||||||
void onPositionControlsChanged();
|
void onPositionControlsChanged();
|
||||||
void onRectSizeControlsChanged();
|
void onRectSizeControlsChanged();
|
||||||
void onLineSizeControlsChanged();
|
void onLineSizeControlsChanged();
|
||||||
|
|||||||
+54
-53
@@ -37,7 +37,7 @@ namespace {
|
|||||||
/// Default Constructor
|
/// Default Constructor
|
||||||
///
|
///
|
||||||
TextNode::TextNode()
|
TextNode::TextNode()
|
||||||
: mFieldFlag(false), mData("")
|
: mIsField(false), mData("")
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,8 +45,8 @@ TextNode::TextNode()
|
|||||||
///
|
///
|
||||||
/// Constructor from Data
|
/// Constructor from Data
|
||||||
///
|
///
|
||||||
TextNode::TextNode( bool field_flag, const QString &data )
|
TextNode::TextNode( bool isField, const QString &data )
|
||||||
: mFieldFlag(field_flag), mData(data)
|
: mIsField(isField), mData(data)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -54,14 +54,14 @@ TextNode::TextNode( bool field_flag, const QString &data )
|
|||||||
///
|
///
|
||||||
/// Constructor from Parsing Next Token in Text
|
/// Constructor from Parsing Next Token in Text
|
||||||
///
|
///
|
||||||
TextNode::TextNode( const QString &text, int i_start, int &i_next )
|
TextNode::TextNode( const QString &text, int iStart, int &iNext )
|
||||||
{
|
{
|
||||||
State state = START;
|
State state = START;
|
||||||
QString literal_text;
|
QString literalText;
|
||||||
QString field_name;
|
QString fieldName;
|
||||||
bool field_flag = false;
|
bool isField = false;
|
||||||
|
|
||||||
int i = i_start;
|
int i = iStart;
|
||||||
|
|
||||||
while ( state != DONE )
|
while ( state != DONE )
|
||||||
{
|
{
|
||||||
@@ -84,7 +84,7 @@ TextNode::TextNode( const QString &text, int i_start, int &i_next )
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* Start a literal text node. */
|
/* Start a literal text node. */
|
||||||
literal_text.append( c );
|
literalText.append( c );
|
||||||
i++;
|
i++;
|
||||||
state = LITERAL;
|
state = LITERAL;
|
||||||
break;
|
break;
|
||||||
@@ -105,7 +105,7 @@ TextNode::TextNode( const QString &text, int i_start, int &i_next )
|
|||||||
state = DONE;
|
state = DONE;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
literal_text.append( c );
|
literalText.append( c );
|
||||||
i++;
|
i++;
|
||||||
state = LITERAL;
|
state = LITERAL;
|
||||||
break;
|
break;
|
||||||
@@ -116,26 +116,26 @@ TextNode::TextNode( const QString &text, int i_start, int &i_next )
|
|||||||
switch (c.unicode()) {
|
switch (c.unicode()) {
|
||||||
case '{':
|
case '{':
|
||||||
/* "${" indicates the start of a new field node, gather for literal too. */
|
/* "${" indicates the start of a new field node, gather for literal too. */
|
||||||
literal_text.append( '$' );
|
literalText.append( '$' );
|
||||||
i++;
|
i++;
|
||||||
state = DONE;
|
state = DONE;
|
||||||
break;
|
break;
|
||||||
case '\n':
|
case '\n':
|
||||||
/* Append "$" to literal text, don't gather newline. */
|
/* Append "$" to literal text, don't gather newline. */
|
||||||
literal_text.append( '$' );
|
literalText.append( '$' );
|
||||||
i++;
|
i++;
|
||||||
state = DONE;
|
state = DONE;
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
/* Append "$" to literal text, don't gather null. */
|
/* Append "$" to literal text, don't gather null. */
|
||||||
literal_text.append( '$' );
|
literalText.append( '$' );
|
||||||
i++;
|
i++;
|
||||||
state = DONE;
|
state = DONE;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* Append "$" to literal text, gather this character too. */
|
/* Append "$" to literal text, gather this character too. */
|
||||||
literal_text.append( '$' );
|
literalText.append( '$' );
|
||||||
literal_text.append( c );
|
literalText.append( c );
|
||||||
i+=2;
|
i+=2;
|
||||||
state = LITERAL;
|
state = LITERAL;
|
||||||
break;
|
break;
|
||||||
@@ -146,7 +146,7 @@ TextNode::TextNode( const QString &text, int i_start, int &i_next )
|
|||||||
switch (c.unicode()) {
|
switch (c.unicode()) {
|
||||||
case '{':
|
case '{':
|
||||||
/* This is probably the begining of a field node, gather for literal too. */
|
/* This is probably the begining of a field node, gather for literal too. */
|
||||||
literal_text.append( c );
|
literalText.append( c );
|
||||||
i++;
|
i++;
|
||||||
state = FIELD;
|
state = FIELD;
|
||||||
break;
|
break;
|
||||||
@@ -158,7 +158,7 @@ TextNode::TextNode( const QString &text, int i_start, int &i_next )
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* The "$" was literal. */
|
/* The "$" was literal. */
|
||||||
literal_text.append( c );
|
literalText.append( c );
|
||||||
i++;
|
i++;
|
||||||
state = LITERAL;
|
state = LITERAL;
|
||||||
break;
|
break;
|
||||||
@@ -169,7 +169,7 @@ TextNode::TextNode( const QString &text, int i_start, int &i_next )
|
|||||||
switch (c.unicode()) {
|
switch (c.unicode()) {
|
||||||
case '}':
|
case '}':
|
||||||
/* We now finally know that this node is really field node. */
|
/* We now finally know that this node is really field node. */
|
||||||
field_flag = true;
|
isField = true;
|
||||||
i++;
|
i++;
|
||||||
state = DONE;
|
state = DONE;
|
||||||
break;
|
break;
|
||||||
@@ -181,8 +181,8 @@ TextNode::TextNode( const QString &text, int i_start, int &i_next )
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* Gather for field name and literal, just in case. */
|
/* Gather for field name and literal, just in case. */
|
||||||
field_name.append( c );
|
fieldName.append( c );
|
||||||
literal_text.append( c );
|
literalText.append( c );
|
||||||
i++;
|
i++;
|
||||||
state = FIELD;
|
state = FIELD;
|
||||||
break;
|
break;
|
||||||
@@ -193,10 +193,10 @@ TextNode::TextNode( const QString &text, int i_start, int &i_next )
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mFieldFlag = field_flag;
|
mIsField = isField;
|
||||||
mData = field_flag ? field_name : literal_text;
|
mData = isField ? fieldName : literalText;
|
||||||
|
|
||||||
i_next = i;
|
iNext = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -205,7 +205,7 @@ TextNode::TextNode( const QString &text, int i_start, int &i_next )
|
|||||||
///
|
///
|
||||||
bool TextNode::operator==( const TextNode& other )
|
bool TextNode::operator==( const TextNode& other )
|
||||||
{
|
{
|
||||||
return ( (mFieldFlag == other.mFieldFlag) &&
|
return ( (mIsField == other.mIsField) &&
|
||||||
(mData == other.mData) );
|
(mData == other.mData) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -215,17 +215,17 @@ bool TextNode::operator==( const TextNode& other )
|
|||||||
///
|
///
|
||||||
bool TextNode::operator!=( const TextNode& other )
|
bool TextNode::operator!=( const TextNode& other )
|
||||||
{
|
{
|
||||||
return ( (mFieldFlag != other.mFieldFlag) ||
|
return ( (mIsField != other.mIsField) ||
|
||||||
(mData != other.mData) );
|
(mData != other.mData) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Field Flag Property Getter
|
/// isField? Property Getter
|
||||||
///
|
///
|
||||||
bool TextNode::fieldFlag( void ) const
|
bool TextNode::isField( void ) const
|
||||||
{
|
{
|
||||||
return mFieldFlag;
|
return mIsField;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -238,47 +238,48 @@ const QString& TextNode::data( void ) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if TODO
|
///
|
||||||
public string expand( MergeRecord? record )
|
/// Get text, expand if necessary
|
||||||
|
///
|
||||||
|
QString TextNode::text( merge::Record* record ) const
|
||||||
|
{
|
||||||
|
if ( mIsField )
|
||||||
{
|
{
|
||||||
if ( field_flag )
|
if ( !record )
|
||||||
{
|
{
|
||||||
|
return QString("${%1}").arg( mData );
|
||||||
if ( record == null )
|
|
||||||
{
|
|
||||||
return "${%s}".printf( data );
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
string? text = record.eval_key( data );
|
if ( record->contains( mData ) )
|
||||||
if ( text != null )
|
|
||||||
{
|
{
|
||||||
return text;
|
return (*record)[ mData ];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return data;
|
return mData;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Is it an empty field
|
||||||
|
///
|
||||||
|
bool TextNode::isEmptyField( merge::Record* record ) const
|
||||||
|
{
|
||||||
|
if ( record && mIsField )
|
||||||
|
{
|
||||||
|
if ( record->contains( mData ) )
|
||||||
|
{
|
||||||
|
return ( (*record)[mData].isEmpty() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public bool is_empty_field( MergeRecord? record )
|
|
||||||
{
|
|
||||||
if ( (record !=null) && field_flag )
|
|
||||||
{
|
|
||||||
string? text = record.eval_key( data );
|
|
||||||
return ( (text == null) || (text == "") );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|||||||
+7
-9
@@ -22,6 +22,7 @@
|
|||||||
#define TextNode_h
|
#define TextNode_h
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
#include "Merge/Record.h"
|
||||||
|
|
||||||
|
|
||||||
///
|
///
|
||||||
@@ -36,7 +37,7 @@ struct TextNode
|
|||||||
public:
|
public:
|
||||||
TextNode();
|
TextNode();
|
||||||
|
|
||||||
TextNode( bool field_flag, const QString &data );
|
TextNode( bool isField, const QString &data );
|
||||||
|
|
||||||
TextNode( const QString &text, int i_start, int &i_next );
|
TextNode( const QString &text, int i_start, int &i_next );
|
||||||
|
|
||||||
@@ -55,9 +56,9 @@ public:
|
|||||||
/////////////////////////////////
|
/////////////////////////////////
|
||||||
public:
|
public:
|
||||||
//
|
//
|
||||||
// Field Flag Property
|
// is field? Property
|
||||||
//
|
//
|
||||||
bool fieldFlag( void ) const;
|
bool isField( void ) const;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Data Property
|
// Data Property
|
||||||
@@ -65,14 +66,11 @@ public:
|
|||||||
const QString& data( void ) const;
|
const QString& data( void ) const;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////
|
/////////////////////////////////
|
||||||
// Methods
|
// Methods
|
||||||
/////////////////////////////////
|
/////////////////////////////////
|
||||||
#if TODO
|
QString text( merge::Record* record ) const;
|
||||||
string expand( MergeRecord? record );
|
bool isEmptyField( merge::Record* record ) const;
|
||||||
bool is_empty_field( MergeRecord? record );
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////
|
/////////////////////////////////
|
||||||
@@ -80,7 +78,7 @@ public:
|
|||||||
/////////////////////////////////
|
/////////////////////////////////
|
||||||
private:
|
private:
|
||||||
|
|
||||||
bool mFieldFlag;
|
bool mIsField;
|
||||||
QString mData;
|
QString mData;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
<qresource>
|
<qresource>
|
||||||
<file>images/glabels-label-designer.png</file>
|
<file>images/glabels-label-designer.png</file>
|
||||||
<file>images/glabels-logo.png</file>
|
<file>images/glabels-logo.png</file>
|
||||||
|
<file>images/checkerboard.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 177 B |
+99
-103
@@ -70,7 +70,7 @@
|
|||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QTabWidget" name="notebook">
|
<widget class="QTabWidget" name="notebook">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>4</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="textPage">
|
<widget class="QWidget" name="textPage">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
@@ -759,7 +759,71 @@
|
|||||||
<string>Image</string>
|
<string>Image</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QGridLayout" name="gridLayout_13">
|
<layout class="QGridLayout" name="gridLayout_13">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QGroupBox" name="groupBox_9">
|
||||||
|
<property name="title">
|
||||||
|
<string>File</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_12">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<layout class="QFormLayout" name="formLayout_8">
|
||||||
|
<property name="fieldGrowthPolicy">
|
||||||
|
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
|
||||||
|
</property>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QPushButton" name="imageFileButton">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>File...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="FieldButton" name="imageMergeFieldButton">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Merge field...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
|
<widget class="QLineEdit" name="imageFilenameLineEdit">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>231</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="placeholderText">
|
||||||
|
<string>None</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
<spacer name="verticalSpacer_3">
|
<spacer name="verticalSpacer_3">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
@@ -772,60 +836,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QGroupBox" name="groupBox_9">
|
|
||||||
<property name="title">
|
|
||||||
<string>File</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout_12">
|
|
||||||
<item row="0" column="0">
|
|
||||||
<layout class="QFormLayout" name="formLayout_8">
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QRadioButton" name="imageFileRadio">
|
|
||||||
<property name="text">
|
|
||||||
<string>File:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="1">
|
|
||||||
<widget class="QPushButton" name="pushButton_17">
|
|
||||||
<property name="text">
|
|
||||||
<string>Placeholder</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
|
||||||
<widget class="QRadioButton" name="imageKeyRadio">
|
|
||||||
<property name="text">
|
|
||||||
<string>Key:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1">
|
|
||||||
<widget class="FieldButton" name="imageFieldButton">
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="1">
|
|
||||||
<spacer name="horizontalSpacer_3">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="lineFillPage">
|
<widget class="QWidget" name="lineFillPage">
|
||||||
@@ -1857,54 +1867,6 @@
|
|||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
<connection>
|
|
||||||
<sender>imageFileRadio</sender>
|
|
||||||
<signal>toggled(bool)</signal>
|
|
||||||
<receiver>ObjectEditor</receiver>
|
|
||||||
<slot>onChanged()</slot>
|
|
||||||
<hints>
|
|
||||||
<hint type="sourcelabel">
|
|
||||||
<x>47</x>
|
|
||||||
<y>118</y>
|
|
||||||
</hint>
|
|
||||||
<hint type="destinationlabel">
|
|
||||||
<x>0</x>
|
|
||||||
<y>118</y>
|
|
||||||
</hint>
|
|
||||||
</hints>
|
|
||||||
</connection>
|
|
||||||
<connection>
|
|
||||||
<sender>imageKeyRadio</sender>
|
|
||||||
<signal>toggled(bool)</signal>
|
|
||||||
<receiver>ObjectEditor</receiver>
|
|
||||||
<slot>onChanged()</slot>
|
|
||||||
<hints>
|
|
||||||
<hint type="sourcelabel">
|
|
||||||
<x>42</x>
|
|
||||||
<y>151</y>
|
|
||||||
</hint>
|
|
||||||
<hint type="destinationlabel">
|
|
||||||
<x>0</x>
|
|
||||||
<y>152</y>
|
|
||||||
</hint>
|
|
||||||
</hints>
|
|
||||||
</connection>
|
|
||||||
<connection>
|
|
||||||
<sender>imageFieldButton</sender>
|
|
||||||
<signal>keySelected()</signal>
|
|
||||||
<receiver>ObjectEditor</receiver>
|
|
||||||
<slot>onChanged()</slot>
|
|
||||||
<hints>
|
|
||||||
<hint type="sourcelabel">
|
|
||||||
<x>180</x>
|
|
||||||
<y>158</y>
|
|
||||||
</hint>
|
|
||||||
<hint type="destinationlabel">
|
|
||||||
<x>4</x>
|
|
||||||
<y>203</y>
|
|
||||||
</hint>
|
|
||||||
</hints>
|
|
||||||
</connection>
|
|
||||||
<connection>
|
<connection>
|
||||||
<sender>lineWidthSpin</sender>
|
<sender>lineWidthSpin</sender>
|
||||||
<signal>valueChanged(double)</signal>
|
<signal>valueChanged(double)</signal>
|
||||||
@@ -2145,6 +2107,38 @@
|
|||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>imageFileButton</sender>
|
||||||
|
<signal>clicked()</signal>
|
||||||
|
<receiver>ObjectEditor</receiver>
|
||||||
|
<slot>onImageFileButtonClicked()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>321</x>
|
||||||
|
<y>119</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>394</x>
|
||||||
|
<y>81</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>imageMergeFieldButton</sender>
|
||||||
|
<signal>keySelected()</signal>
|
||||||
|
<receiver>ObjectEditor</receiver>
|
||||||
|
<slot>onImageKeySelected()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>351</x>
|
||||||
|
<y>147</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>7</x>
|
||||||
|
<y>143</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
</connections>
|
</connections>
|
||||||
<slots>
|
<slots>
|
||||||
<slot>onChanged()</slot>
|
<slot>onChanged()</slot>
|
||||||
@@ -2155,5 +2149,7 @@
|
|||||||
<slot>onRectSizeControlsChanged()</slot>
|
<slot>onRectSizeControlsChanged()</slot>
|
||||||
<slot>onShadowControlsChanged()</slot>
|
<slot>onShadowControlsChanged()</slot>
|
||||||
<slot>onLineSizeControlsChanged()</slot>
|
<slot>onLineSizeControlsChanged()</slot>
|
||||||
|
<slot>onImageFileButtonClicked()</slot>
|
||||||
|
<slot>onImageKeySelected()</slot>
|
||||||
</slots>
|
</slots>
|
||||||
</ui>
|
</ui>
|
||||||
|
|||||||
Reference in New Issue
Block a user