mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-06 00:06:00 -04:00
--User changes
-Add Summary tab to the info dock, place existing bounds related info in a new Bounds tab. -Add a toolbar with the most common actions on it. -Remove old toolbar at the top of the library tab. --Code changes -Refactor code to make a color visible on a background into VisibleColor() in FractoriumCommon.h -Add IsXformLinked() to determine if an xform is linked to another. -Remove SetPaletteRefTable() and GetQRgbFromPaletteIndex() from FractoriumEmberControllerBase and its derivations, unused. -Add FillSummary() to FractoriumEmberController. Call in Update(), UpdateXform() and other places where values are changed to force an update of the summary view. -Add export statements to FractoriumInfo.cpp. -Remove image parameter from SetPaletteTableItem(), it was a bad design. -InitToolbarUI() is now empty since toolbar initialization happens automatically. Leave as a placeholder. -Refactor code to get a palette color at a given index and convert it to a QColor to ColorIndexToQColor().
This commit is contained in:
@ -142,9 +142,6 @@ public slots:
|
||||
void OnActionAbout(bool checked);//Help.
|
||||
|
||||
//Toolbar.
|
||||
void OnSaveCurrentAsXmlButtonClicked(bool checked);
|
||||
void OnSaveEntireFileAsXmlButtonClicked(bool checked);
|
||||
void OnSaveCurrentToOpenedFileButtonClicked(bool checked);
|
||||
|
||||
//Library.
|
||||
void OnEmberTreeItemChanged(QTreeWidgetItem* item, int col);
|
||||
@ -275,6 +272,10 @@ public slots:
|
||||
void OnPaletteFilterClearButtonClicked(bool checked);
|
||||
void OnPaletteHeaderSectionClicked(int col);
|
||||
|
||||
//Info.
|
||||
void OnSummaryTableHeaderResized(int logicalIndex, int oldSize, int newSize);
|
||||
void OnSummaryTreeHeaderSectionClicked(int logicalIndex);
|
||||
|
||||
//Rendering/progress.
|
||||
void StartRenderTimer();
|
||||
void IdleTimer();
|
||||
@ -311,6 +312,7 @@ private:
|
||||
void InitXaosUI();
|
||||
void InitPaletteUI();
|
||||
void InitLibraryUI();
|
||||
void InitInfoUI();
|
||||
void SetTabOrders();
|
||||
|
||||
void ToggleTableRow(QTableView* table, int logicalIndex);
|
||||
@ -342,10 +344,13 @@ private:
|
||||
//Palette.
|
||||
void ResetPaletteControls();
|
||||
void SetPaletteFileComboIndex(const string& filename);
|
||||
void SetPaletteTableItem(QPixmap* pixmap, QTableWidget* table, QTableWidgetItem* item, int row, int col);
|
||||
|
||||
//Info.
|
||||
void FillSummary();
|
||||
void UpdateHistogramBounds();
|
||||
void ErrorReportToQTextEdit(const vector<string>& errors, QTextEdit* textEdit, bool clear = true);
|
||||
void SetTableWidgetBackgroundColor();
|
||||
|
||||
//Rendering/progress.
|
||||
bool CreateRendererFromOptions();
|
||||
@ -441,6 +446,14 @@ private:
|
||||
SpinBox* m_PaletteBlurSpin;
|
||||
SpinBox* m_PaletteFrequencySpin;
|
||||
|
||||
//Info.
|
||||
QTableWidgetItem* m_InfoNameItem;
|
||||
QTableWidgetItem* m_InfoPaletteItem;
|
||||
QTableWidgetItem* m_Info3dItem;
|
||||
QTableWidgetItem* m_InfoXaosItem;
|
||||
QTableWidgetItem* m_InfoXformCountItem;
|
||||
QTableWidgetItem* m_InfoFinalXformItem;
|
||||
|
||||
//Files.
|
||||
QFileDialog* m_FileDialog;
|
||||
QFileDialog* m_FolderDialog;
|
||||
|
Reference in New Issue
Block a user