mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-07 00:34:50 -04:00
--User changes
-Show image index in the library and sequence trees. -Add progress bar showing when preview renders are complete. -Automatically show animation preview when sequence generation is done. -Add the ability in the final render dialog to start a render within a sequence from a given point, rather than always having to start from the beginning. --Allow using the image index as its name rather than the file name.
This commit is contained in:
@ -2,6 +2,9 @@
|
||||
|
||||
#include "FractoriumPch.h"
|
||||
|
||||
#define INDEX_COL 0
|
||||
#define NAME_COL 1
|
||||
|
||||
template <typename T> class FractoriumEmberController;
|
||||
|
||||
/// <summary>
|
||||
@ -59,7 +62,7 @@ public:
|
||||
m_Image = QImage(width, height, QImage::Format_RGBA8888);
|
||||
memcpy(m_Image.scanLine(0), v.data(), SizeOf(v));//Memcpy the data in.
|
||||
m_Pixmap = QPixmap::fromImage(m_Image).scaled(QSize(size, size), Qt::IgnoreAspectRatio, Qt::SmoothTransformation);//Create a QPixmap out of the QImage, scaled to size.
|
||||
setData(0, Qt::DecorationRole, m_Pixmap);
|
||||
setData(NAME_COL, Qt::DecorationRole, m_Pixmap);
|
||||
}
|
||||
|
||||
void SetRendered()
|
||||
@ -92,7 +95,7 @@ public:
|
||||
m_Ember(ember)
|
||||
{
|
||||
setFlags(Qt::ItemIsEnabled | Qt::ItemIsEditable | Qt::ItemIsSelectable | Qt::ItemIsDragEnabled);
|
||||
setCheckState(0, Qt::Unchecked);
|
||||
setCheckState(NAME_COL, Qt::Unchecked);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -106,18 +109,18 @@ public:
|
||||
m_Ember(ember)
|
||||
{
|
||||
setFlags(Qt::ItemIsEnabled | Qt::ItemIsEditable | Qt::ItemIsSelectable | Qt::ItemIsDragEnabled);
|
||||
setCheckState(0, Qt::Unchecked);
|
||||
setCheckState(NAME_COL, Qt::Unchecked);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Copy the text of the tree item to the name of the ember.
|
||||
/// </summary>
|
||||
void UpdateEmberName() { m_Ember->m_Name = text(0).toStdString(); }
|
||||
void UpdateEmberName() { m_Ember->m_Name = text(NAME_COL).toStdString(); }
|
||||
|
||||
/// <summary>
|
||||
/// Set the text of the tree item.
|
||||
/// </summary>
|
||||
void UpdateEditText() { setText(0, QString::fromStdString(m_Ember->m_Name)); }
|
||||
void UpdateEditText() { setText(NAME_COL, QString::fromStdString(m_Ember->m_Name)); }
|
||||
|
||||
/// <summary>
|
||||
/// Get a pointer to the ember held by the tree item.
|
||||
|
Reference in New Issue
Block a user