View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0017962 | Scribus | User Interface | public | 2026-09-01 09:41 | 2026-09-01 09:41 |
| Reporter | buttar | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | N/A |
| Status | new | Resolution | open | ||
| Platform | Linux | OS | Fedora Workstation | OS Version | 44 |
| Product Version | 1.7.4.svn | ||||
| Summary | 0017962: [patch] Manage Images UI polish | ||||
| Description | - Reworks Manage Images from a two-tab layout into a single persistent selected-image panel, keeping information and actions visible together. - Removes the former Information / Image Tools split and associated `workTab` handling. - Reorganizes metadata into clearer Image, Size, and Placement sections with consistent alignment. - Associates Go to and Select directly with the relevant Placement rows. - Renames output state to Include in Export / Print and consolidates image actions as Edit Image…, Effects…, and Properties…. - Tightens tooltips and keyboard navigation, with unique Alt mnemonics on interact-able controls and a revised TAB order. - C++ changes are limited to supporting the new persistent panel; image-management behaviour remains unchanged. | ||||
| Tags | #please_test | ||||
| Attached Files | manage-images-ui-v1.3.patch (28,237 bytes)
Index: scribus/ui/picstatus.ui
===================================================================
--- scribus/ui/picstatus.ui (revision 27810)
+++ scribus/ui/picstatus.ui (working copy)
@@ -64,23 +64,7 @@
</widget>
</item>
<item>
- <widget class="QTabWidget" name="workTab">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="Minimum">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="toolTip">
- <string/>
- </property>
- <property name="currentIndex">
- <number>1</number>
- </property>
- <widget class="QWidget" name="tabInfo">
- <attribute name="title">
- <string>Information</string>
- </attribute>
+ <widget class="QWidget" name="selectedImagePanel">
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
@@ -122,9 +106,6 @@
<height>0</height>
</size>
</property>
- <property name="toolTip">
- <string>Name of the image file</string>
- </property>
<property name="text">
<string/>
</property>
@@ -172,9 +153,6 @@
<height>0</height>
</size>
</property>
- <property name="toolTip">
- <string>Location where the image file is stored</string>
- </property>
<property name="text">
<string/>
</property>
@@ -189,12 +167,34 @@
</layout>
</item>
<item>
+ <spacer name="imagePathActionsSpacer">
+ <property name="orientation">
+ <enum>Qt::Orientation::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Policy::Expanding</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
<widget class="QPushButton" name="searchButton">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="toolTip">
- <string>Search for a missing image</string>
+ <string>Search for this image file and relink it</string>
</property>
<property name="text">
- <string>Search...</string>
+ <string>&Search...</string>
</property>
<property name="autoDefault">
<bool>false</bool>
@@ -206,11 +206,17 @@
</item>
<item>
<widget class="QPushButton" name="fileManagerButton">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="toolTip">
- <string>Show Image in the File Manager</string>
+ <string>Open the image's folder in the file manager</string>
</property>
<property name="text">
- <string>Show directory...</string>
+ <string>&Open Folder</string>
</property>
<property name="autoDefault">
<bool>false</bool>
@@ -223,7 +229,7 @@
</layout>
</item>
<item>
- <layout class="QHBoxLayout" name="horizontalLayout_2">
+ <layout class="QHBoxLayout" name="horizontalLayout_2" stretch="1,1,0">
<item>
<widget class="QGroupBox" name="groupImage">
<property name="title">
@@ -251,9 +257,6 @@
<height>0</height>
</size>
</property>
- <property name="toolTip">
- <string>Type of the image</string>
- </property>
<property name="text">
<string/>
</property>
@@ -264,11 +267,8 @@
</item>
<item row="1" column="0">
<widget class="QLabel" name="textLabel5_2">
- <property name="toolTip">
- <string>The colorspace of the image</string>
- </property>
- <property name="text">
- <string>Colorspace:</string>
+ <property name="text">
+ <string>Color Space:</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignVCenter</set>
@@ -286,9 +286,6 @@
<height>0</height>
</size>
</property>
- <property name="toolTip">
- <string>Colorspace used within the image, eg RGB or CMYK</string>
- </property>
<property name="text">
<string/>
</property>
@@ -317,9 +314,6 @@
<width>70</width>
<height>0</height>
</size>
- </property>
- <property name="toolTip">
- <string>Native resolution of the image, in dots per inch</string>
</property>
<property name="text">
<string/>
@@ -356,9 +350,6 @@
<height>0</height>
</size>
</property>
- <property name="toolTip">
- <string>Height and width of the image</string>
- </property>
<property name="text">
<string/>
</property>
@@ -385,9 +376,6 @@
<height>0</height>
</size>
</property>
- <property name="toolTip">
- <string>Horizontal and vertical scaling applied to the image</string>
- </property>
<property name="text">
<string/>
</property>
@@ -399,7 +387,7 @@
<item row="2" column="0">
<widget class="QLabel" name="textLabel1_4">
<property name="text">
- <string>Printed:</string>
+ <string>Print Size:</string>
</property>
<property name="wordWrap">
<bool>false</bool>
@@ -420,9 +408,6 @@
<height>0</height>
</size>
</property>
- <property name="toolTip">
- <string>Size of the image when printed</string>
- </property>
<property name="text">
<string/>
</property>
@@ -437,222 +422,249 @@
<item>
<widget class="QGroupBox" name="groupLayout">
<property name="title">
- <string>Layout</string>
- </property>
- <layout class="QHBoxLayout" name="horizontalLayout">
- <item>
- <layout class="QFormLayout" name="formLayout_3">
- <item row="0" column="0">
- <widget class="QLabel" name="textLabel5">
- <property name="text">
- <string>On Page:</string>
- </property>
- <property name="wordWrap">
- <bool>false</bool>
- </property>
- </widget>
- </item>
- <item row="0" column="1">
- <widget class="QLabel" name="displayPage">
- <property name="minimumSize">
- <size>
- <width>70</width>
- <height>0</height>
- </size>
- </property>
- <property name="toolTip">
- <string>Page that the image is displayed on</string>
- </property>
- <property name="text">
- <string/>
- </property>
- <property name="wordWrap">
- <bool>false</bool>
- </property>
- </widget>
- </item>
- <item row="1" column="0">
- <widget class="QLabel" name="textLabel1_3">
- <property name="text">
- <string>Page Item:</string>
- </property>
- <property name="wordWrap">
- <bool>false</bool>
- </property>
- </widget>
- </item>
- <item row="1" column="1">
- <widget class="QLabel" name="displayObjekt">
- <property name="minimumSize">
- <size>
- <width>70</width>
- <height>0</height>
- </size>
- </property>
- <property name="toolTip">
- <string>Name of the page item that contains the image</string>
- </property>
- <property name="text">
- <string/>
- </property>
- <property name="wordWrap">
- <bool>false</bool>
- </property>
- </widget>
- </item>
- <item row="2" column="0">
- <widget class="QLabel" name="textLabel2">
- <property name="text">
- <string>Effective DPI:</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignVCenter</set>
- </property>
- <property name="wordWrap">
- <bool>false</bool>
- </property>
- </widget>
- </item>
- <item row="2" column="1">
- <widget class="QLabel" name="displayEffDPI">
- <property name="minimumSize">
- <size>
- <width>70</width>
- <height>0</height>
- </size>
- </property>
- <property name="toolTip">
- <string>Effective resolution of the image after scaling</string>
- </property>
- <property name="text">
- <string/>
- </property>
- <property name="wordWrap">
- <bool>false</bool>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item>
- <layout class="QVBoxLayout" name="verticalLayout">
- <item>
- <widget class="QPushButton" name="goPageButton">
- <property name="toolTip">
- <string>Move to the page that the image is on</string>
- </property>
- <property name="text">
- <string>Go to</string>
- </property>
- <property name="autoDefault">
- <bool>false</bool>
- </property>
- <property name="flat">
- <bool>false</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="selectButton">
- <property name="toolTip">
- <string>Move to the page that the item is on and select it</string>
- </property>
- <property name="text">
- <string>Select</string>
- </property>
- <property name="autoDefault">
- <bool>false</bool>
- </property>
- <property name="flat">
- <bool>false</bool>
- </property>
- </widget>
- </item>
- </layout>
+ <string>Placement</string>
+ </property>
+ <layout class="QGridLayout" name="placementLayout" columnstretch="0,1,0">
+ <item row="0" column="0">
+ <widget class="QLabel" name="textLabel5">
+ <property name="text">
+ <string>Page:</string>
+ </property>
+ <property name="wordWrap">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <widget class="QLabel" name="displayPage">
+ <property name="minimumSize">
+ <size>
+ <width>70</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="wordWrap">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="2">
+ <widget class="QPushButton" name="goPageButton">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>72</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="toolTip">
+ <string>Go to the page containing this image</string>
+ </property>
+ <property name="text">
+ <string>&Go to</string>
+ </property>
+ <property name="autoDefault">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0">
+ <widget class="QLabel" name="textLabel1_3">
+ <property name="text">
+ <string>Frame:</string>
+ </property>
+ <property name="wordWrap">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QLabel" name="displayObjekt">
+ <property name="minimumSize">
+ <size>
+ <width>70</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="wordWrap">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="2">
+ <widget class="QPushButton" name="selectButton">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>72</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="toolTip">
+ <string>Select this image frame in the document</string>
+ </property>
+ <property name="text">
+ <string>Se&lect</string>
+ </property>
+ <property name="autoDefault">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0">
+ <widget class="QLabel" name="textLabel2">
+ <property name="text">
+ <string>Effective DPI:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignVCenter</set>
+ </property>
+ <property name="wordWrap">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="1">
+ <widget class="QLabel" name="displayEffDPI">
+ <property name="minimumSize">
+ <size>
+ <width>70</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="toolTip">
+ <string>Effective image resolution after scaling</string>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="wordWrap">
+ <bool>false</bool>
+ </property>
+ </widget>
</item>
</layout>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="imageActionsLayout">
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <item>
+ <widget class="QCheckBox" name="isVisibleCheck">
+ <property name="toolTip">
+ <string>Show or hide the image in its frame</string>
+ </property>
+ <property name="text">
+ <string>&Visible</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="isPrinting">
+ <property name="toolTip">
+ <string>Include this image frame in exported and printed output</string>
+ </property>
+ <property name="text">
+ <string>&Include in Export / Print</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="imageActionsSpacer">
+ <property name="orientation">
+ <enum>Qt::Orientation::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Policy::Expanding</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QPushButton" name="buttonEdit">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="toolTip">
+ <string>Open the image in the default external editor</string>
+ </property>
+ <property name="text">
+ <string>&Edit Image...</string>
+ </property>
+ <property name="autoDefault">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="effectsButton">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="toolTip">
+ <string>Edit non-destructive effects applied to the image</string>
+ </property>
+ <property name="text">
+ <string>E&ffects...</string>
+ </property>
+ <property name="autoDefault">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="buttonLayers">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="toolTip">
+ <string>Edit format-specific image properties</string>
+ </property>
+ <property name="text">
+ <string>&Properties...</string>
+ </property>
+ <property name="autoDefault">
+ <bool>false</bool>
+ </property>
</widget>
</item>
</layout>
</item>
</layout>
- </widget>
- <widget class="QWidget" name="tabTasks">
- <attribute name="title">
- <string>Image Tools</string>
- </attribute>
- <layout class="QGridLayout">
- <item row="0" column="0">
- <widget class="QCheckBox" name="isPrinting">
- <property name="toolTip">
- <string>Enable or disable exporting of the item</string>
- </property>
- <property name="text">
- <string>Export/Print Image</string>
- </property>
- </widget>
- </item>
- <item row="1" column="1">
- <widget class="QPushButton" name="buttonLayers">
- <property name="toolTip">
- <string>Set format specific properties of certain image types, like clipping paths</string>
- </property>
- <property name="text">
- <string>Extended Image Properties...</string>
- </property>
- <property name="shortcut">
- <string/>
- </property>
- </widget>
- </item>
- <item row="0" column="1">
- <widget class="QPushButton" name="buttonEdit">
- <property name="toolTip">
- <string>Edit the image in the default editor</string>
- </property>
- <property name="text">
- <string>Edit Image...</string>
- </property>
- </widget>
- </item>
- <item row="1" column="0">
- <widget class="QCheckBox" name="isVisibleCheck">
- <property name="toolTip">
- <string>Make the image visible or invisible</string>
- </property>
- <property name="text">
- <string>Image Visible</string>
- </property>
- </widget>
- </item>
- <item row="0" column="2">
- <widget class="QPushButton" name="effectsButton">
- <property name="toolTip">
- <string>Apply non destructive effects to the image in its frame</string>
- </property>
- <property name="text">
- <string>Image Effects...</string>
- </property>
- </widget>
- </item>
- <item row="2" column="1">
- <spacer>
- <property name="orientation">
- <enum>Qt::Orientation::Vertical</enum>
- </property>
- <property name="sizeType">
- <enum>QSizePolicy::Policy::Expanding</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>21</width>
- <height>90</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </widget>
</widget>
</item>
<item>
@@ -689,13 +701,12 @@
</widget>
<tabstops>
<tabstop>imageViewArea</tabstop>
- <tabstop>workTab</tabstop>
<tabstop>searchButton</tabstop>
<tabstop>fileManagerButton</tabstop>
<tabstop>goPageButton</tabstop>
<tabstop>selectButton</tabstop>
+ <tabstop>isVisibleCheck</tabstop>
<tabstop>isPrinting</tabstop>
- <tabstop>isVisibleCheck</tabstop>
<tabstop>buttonEdit</tabstop>
<tabstop>effectsButton</tabstop>
<tabstop>buttonLayers</tabstop>
Index: scribus/ui/picstatus.cpp
===================================================================
--- scribus/ui/picstatus.cpp (revision 27810)
+++ scribus/ui/picstatus.cpp (working copy)
@@ -66,7 +66,6 @@
m_Doc = docu;
setWindowIcon(IconManager::instance().loadIcon("app-icon"));
fillTable();
- workTab->setCurrentIndex(0);
connect(closeButton, SIGNAL(clicked()), this, SLOT(accept()));
connect(imageViewArea, SIGNAL(itemSelectionChanged()), this, SLOT(newImageSelected()));
connect(isPrinting, SIGNAL(clicked()), this, SLOT(PrintPic()));
@@ -187,11 +186,9 @@
if (firstItem != nullptr)
imageSelected(firstItem);
- // Disable all features when there is no image in the document.
- // It should never be used (see ScribusMainWindow::extrasMenuAboutToShow())
- // but who knows if it can be configured for shortcut or macro...
+ // Disable image controls when the document contains no images.
imageViewArea->setEnabled(imageViewArea->count() > 0);
- workTab->setEnabled(imageViewArea->count() > 0);
+ selectedImagePanel->setEnabled(imageViewArea->count() > 0);
sortByName();
}
@@ -355,11 +352,11 @@
else
cSpace = colorSpaceText(currItem->pixm.imgInfo.colorspace);
displayColorspace->setText(cSpace);
- displayDPI->setText(QString("%1 x %2").arg(currItem->pixm.imgInfo.xres).arg(currItem->pixm.imgInfo.yres));
- displayEffDPI->setText(QString("%1 x %2").arg(qRound(72.0 / currItem->imageXScale())).arg(qRound(72.0 / currItem->imageYScale())));
- displaySizePixel->setText(QString("%1 x %2").arg(currItem->OrigW).arg(currItem->OrigH));
- displayScale->setText(QString("%1 x %2 %").arg(currItem->imageXScale() * 100 / 72.0 * currItem->pixm.imgInfo.xres, 5, 'f', 1).arg(currItem->imageYScale() * 100 / 72.0 * currItem->pixm.imgInfo.yres, 5, 'f', 1));
- displayPrintSize->setText(QString("%1 x %2%3").arg(currItem->OrigW * currItem->imageXScale() * m_Doc->unitRatio(), 7, 'f', 2).arg(currItem->OrigH * currItem->imageXScale() * m_Doc->unitRatio(), 7, 'f', 2).arg(unitGetSuffixFromIndex(m_Doc->unitIndex())));
+ displayDPI->setText(QString("%1 × %2").arg(currItem->pixm.imgInfo.xres).arg(currItem->pixm.imgInfo.yres));
+ displayEffDPI->setText(QString("%1 × %2").arg(qRound(72.0 / currItem->imageXScale())).arg(qRound(72.0 / currItem->imageYScale())));
+ displaySizePixel->setText(QString("%1 × %2").arg(currItem->OrigW).arg(currItem->OrigH));
+ displayScale->setText(QString("%1 × %2 %").arg(currItem->imageXScale() * 100 / 72.0 * currItem->pixm.imgInfo.xres, 0, 'f', 1).arg(currItem->imageYScale() * 100 / 72.0 * currItem->pixm.imgInfo.yres, 0, 'f', 1));
+ displayPrintSize->setText(QString("%1 × %2%3").arg(currItem->OrigW * currItem->imageXScale() * m_Doc->unitRatio(), 0, 'f', 2).arg(currItem->OrigH * currItem->imageXScale() * m_Doc->unitRatio(), 0, 'f', 2).arg(unitGetSuffixFromIndex(m_Doc->unitIndex())));
isPrinting->setChecked(currItem->printEnabled());
isVisibleCheck->setChecked(currItem->imageVisible());
buttonEdit->setEnabled(currItem->isRaster);
@@ -455,7 +452,7 @@
void PicStatus::SearchPic()
{
- // no action where is no item selected. It should never happen.
+ // No action without a selected image; this should not normally occur.
if (currItem == nullptr)
return;
static QString lastSearchPath;
Index: scribus/ui/picstatus.h
===================================================================
--- scribus/ui/picstatus.h (revision 27810)
+++ scribus/ui/picstatus.h (working copy)
@@ -25,8 +25,7 @@
};
-/*! \brief Constructs a Dialog, which list all Images in the current Document.
-In this Dialog it is possible to search for missing Images. */
+/*! \brief Lists and manages images used by the current document. */
class SCRIBUS_API PicStatus : public QDialog, Ui::PicStatus
{
Q_OBJECT
@@ -34,10 +33,9 @@
public:
/*!
\author Franz Schmid
- \brief Constructs a Dialog, which list all Images in the current Document. In this Dialog it is possible
- to search for missing Images.
- \param parent Pointer to parent window
- \param docu Pointer to the current Document
+ \brief Constructs the image management dialog.
+ \param parent Parent window
+ \param docu Current document
*/
PicStatus(QWidget* parent, ScribusDoc *docu);
~PicStatus() {};
| ||||
| Patch | |||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-09-01 09:41 | buttar | New Issue | |
| 2026-09-01 09:41 | buttar | Tag Attached: #please_test | |
| 2026-09-01 09:41 | buttar | File Added: manage-image-PROPOSED.png | |
| 2026-09-01 09:41 | buttar | File Added: manage-images-ui-v1.3.patch | |
| 2026-09-01 09:41 | buttar | File Added: manage-image-tab1-CURRENT.png |