Added filename and compressionLevel parameters to LabelModel class.
This commit is contained in:
+18
-1
@@ -41,6 +41,7 @@ namespace glabels
|
|||||||
|
|
||||||
signals:
|
signals:
|
||||||
void changed();
|
void changed();
|
||||||
|
void nameChanged();
|
||||||
void sizeChanged();
|
void sizeChanged();
|
||||||
void selectionChanged();
|
void selectionChanged();
|
||||||
void itemAdded( LabelModelItem *item );
|
void itemAdded( LabelModelItem *item );
|
||||||
@@ -49,7 +50,21 @@ namespace glabels
|
|||||||
void itemToBottom( LabelModelItem *item );
|
void itemToBottom( LabelModelItem *item );
|
||||||
|
|
||||||
public:
|
public:
|
||||||
bool isModified( void ) const { return mModified; }
|
bool isModified() const { return mModified; }
|
||||||
|
void clearModified() { mModified = false; }
|
||||||
|
|
||||||
|
const QString &filename() const { return mFilename; }
|
||||||
|
void setFilename( const QString &filename )
|
||||||
|
{
|
||||||
|
if ( mFilename != filename )
|
||||||
|
{
|
||||||
|
mFilename = filename;
|
||||||
|
emit nameChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
int compressionLevel() const { return mCompressionLevel; }
|
||||||
|
void setCompressionLevel( int compressionLevel ) { mCompressionLevel = compressionLevel; }
|
||||||
|
|
||||||
const libglabels::Template *tmplate() const { return mTmplate; }
|
const libglabels::Template *tmplate() const { return mTmplate; }
|
||||||
void setTmplate( const libglabels::Template *tmplate )
|
void setTmplate( const libglabels::Template *tmplate )
|
||||||
@@ -151,6 +166,8 @@ namespace glabels
|
|||||||
QList<LabelModelItem*> mItemList;
|
QList<LabelModelItem*> mItemList;
|
||||||
|
|
||||||
bool mModified;
|
bool mModified;
|
||||||
|
QString mFilename;
|
||||||
|
int mCompressionLevel;
|
||||||
const libglabels::Template *mTmplate;
|
const libglabels::Template *mTmplate;
|
||||||
const libglabels::Frame *mFrame;
|
const libglabels::Frame *mFrame;
|
||||||
bool mRotate;
|
bool mRotate;
|
||||||
|
|||||||
Reference in New Issue
Block a user