diff --git a/org.nickvision.spotlight.qt/src/views/mainwindow.cpp b/org.nickvision.spotlight.qt/src/views/mainwindow.cpp index 5800f09..33acff4 100644 --- a/org.nickvision.spotlight.qt/src/views/mainwindow.cpp +++ b/org.nickvision.spotlight.qt/src/views/mainwindow.cpp @@ -1,5 +1,6 @@ #include "views/mainwindow.h" #include "ui_mainwindow.h" +#include #include #include #include @@ -313,6 +314,25 @@ namespace Nickvision::Spotlight::QT::Views lblStatus->setText(QString::fromStdString(std::vformat(_("Total Number of Images: {}"), std::make_format_args(CodeHelpers::unmove(m_controller->getSpotlightImages().size()))))); m_ui->statusBar->addWidget(lblStatus); //Setup Grid Page + int rowCount{ static_cast(std::ceil(m_controller->getSpotlightImages().size() / static_cast(m_ui->tblImages->columnCount()))) }; + m_ui->tblImages->setRowCount(rowCount); + for(int i = 0; i < rowCount; i++) + { + for(int j = 0; j < m_ui->tblImages->columnCount(); j++) + { + int index{ i * m_ui->tblImages->columnCount() + j }; + if(index >= m_controller->getSpotlightImages().size()) + { + break; + } + QPixmap pixmap{ QString::fromStdString(m_controller->getSpotlightImages()[index].string()) }; + QLabel* lbl{ new QLabel() }; + lbl->setPixmap(pixmap.scaled(m_ui->tblImages->horizontalHeader()->defaultSectionSize(), m_ui->tblImages->verticalHeader()->defaultSectionSize(), Qt::KeepAspectRatio, Qt::FastTransformation)); + lbl->setScaledContents(true); + m_ui->tblImages->setCellWidget(i, j, lbl); + qApp->processEvents(); + } + } //Setup Flip Page m_ui->sliderFlip->setMaximum(m_controller->getSpotlightImages().size() - 1); m_ui->sliderFlip->setValue(0); diff --git a/resources/po/de.po b/resources/po/de.po index 62bf248..93b3d86 100644 --- a/resources/po/de.po +++ b/resources/po/de.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-08-11 20:36-0400\n" +"POT-Creation-Date: 2024-08-11 21:51-0400\n" "PO-Revision-Date: 2024-08-11 20:09+0000\n" "Last-Translator: Ettore Atalan \n" "Language-Team: German \n" "Language-Team: Italian \n" "Language-Team: LANGUAGE \n" @@ -18,7 +18,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" #: libspotlight/src/controllers/mainwindowcontroller.cpp:36 -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:35 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:36 msgid "Spotlight" msgstr "" @@ -79,7 +79,7 @@ msgid "Unable to export images" msgstr "" #: org.nickvision.spotlight.qt/src/controls/aboutdialog.cpp:31 -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:54 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:55 msgid "About Spotlight" msgstr "" @@ -101,117 +101,117 @@ msgid "" "{}" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:35 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:36 msgid "Spotlight (Preview)" msgstr "" #. Localize Menu Strings -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:37 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:38 msgid "File" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:38 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:39 msgid "Export" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:39 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:40 msgid "Export All" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:40 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:41 msgid "Exit" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:41 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:42 msgid "Edit" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:42 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:43 #: org.nickvision.spotlight.qt/src/views/settingsdialog.cpp:16 msgid "Settings" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:43 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:44 msgid "View" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:44 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:45 msgid "Mode" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:45 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:46 msgid "Grid" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:46 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:47 msgid "Flip" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:47 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:48 msgid "Image" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:48 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:49 msgid "Set as Background" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:49 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:50 msgid "Help" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:50 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:51 msgid "Check for Updates" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:51 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:52 msgid "GitHub Repo" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:52 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:53 msgid "Report a Bug" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:53 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:54 msgid "Discussions" msgstr "" #. Localize Grid Page #. Localize Flip Page -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:57 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:58 msgid "Previous" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:58 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:59 msgid "Next" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:135 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:136 msgid "Export Image" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:149 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:150 msgid "Export All Images" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:288 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:289 msgid "Update" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:300 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:301 msgid "Open" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:308 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:309 msgid "No Spotlight Images Found" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:308 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:309 msgid "" "Ensure Windows Spotlight is enabled and come back later to try again. The " "application will now close." msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:313 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:314 msgid "Total Number of Images: {}" msgstr "" diff --git a/resources/po/ta.po b/resources/po/ta.po index e2065f3..12a73d7 100644 --- a/resources/po/ta.po +++ b/resources/po/ta.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-08-11 20:36-0400\n" +"POT-Creation-Date: 2024-08-11 21:51-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -17,7 +17,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" #: libspotlight/src/controllers/mainwindowcontroller.cpp:36 -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:35 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:36 msgid "Spotlight" msgstr "" @@ -78,7 +78,7 @@ msgid "Unable to export images" msgstr "" #: org.nickvision.spotlight.qt/src/controls/aboutdialog.cpp:31 -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:54 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:55 msgid "About Spotlight" msgstr "" @@ -100,117 +100,117 @@ msgid "" "{}" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:35 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:36 msgid "Spotlight (Preview)" msgstr "" #. Localize Menu Strings -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:37 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:38 msgid "File" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:38 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:39 msgid "Export" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:39 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:40 msgid "Export All" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:40 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:41 msgid "Exit" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:41 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:42 msgid "Edit" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:42 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:43 #: org.nickvision.spotlight.qt/src/views/settingsdialog.cpp:16 msgid "Settings" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:43 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:44 msgid "View" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:44 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:45 msgid "Mode" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:45 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:46 msgid "Grid" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:46 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:47 msgid "Flip" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:47 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:48 msgid "Image" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:48 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:49 msgid "Set as Background" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:49 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:50 msgid "Help" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:50 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:51 msgid "Check for Updates" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:51 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:52 msgid "GitHub Repo" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:52 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:53 msgid "Report a Bug" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:53 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:54 msgid "Discussions" msgstr "" #. Localize Grid Page #. Localize Flip Page -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:57 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:58 msgid "Previous" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:58 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:59 msgid "Next" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:135 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:136 msgid "Export Image" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:149 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:150 msgid "Export All Images" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:288 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:289 msgid "Update" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:300 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:301 msgid "Open" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:308 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:309 msgid "No Spotlight Images Found" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:308 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:309 msgid "" "Ensure Windows Spotlight is enabled and come back later to try again. The " "application will now close." msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:313 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:314 msgid "Total Number of Images: {}" msgstr "" diff --git a/resources/po/uk.po b/resources/po/uk.po index 475b4ac..002d8d9 100644 --- a/resources/po/uk.po +++ b/resources/po/uk.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-08-11 20:36-0400\n" +"POT-Creation-Date: 2024-08-11 21:51-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -17,7 +17,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" #: libspotlight/src/controllers/mainwindowcontroller.cpp:36 -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:35 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:36 msgid "Spotlight" msgstr "" @@ -78,7 +78,7 @@ msgid "Unable to export images" msgstr "" #: org.nickvision.spotlight.qt/src/controls/aboutdialog.cpp:31 -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:54 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:55 msgid "About Spotlight" msgstr "" @@ -100,117 +100,117 @@ msgid "" "{}" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:35 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:36 msgid "Spotlight (Preview)" msgstr "" #. Localize Menu Strings -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:37 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:38 msgid "File" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:38 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:39 msgid "Export" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:39 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:40 msgid "Export All" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:40 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:41 msgid "Exit" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:41 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:42 msgid "Edit" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:42 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:43 #: org.nickvision.spotlight.qt/src/views/settingsdialog.cpp:16 msgid "Settings" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:43 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:44 msgid "View" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:44 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:45 msgid "Mode" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:45 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:46 msgid "Grid" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:46 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:47 msgid "Flip" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:47 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:48 msgid "Image" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:48 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:49 msgid "Set as Background" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:49 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:50 msgid "Help" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:50 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:51 msgid "Check for Updates" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:51 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:52 msgid "GitHub Repo" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:52 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:53 msgid "Report a Bug" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:53 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:54 msgid "Discussions" msgstr "" #. Localize Grid Page #. Localize Flip Page -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:57 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:58 msgid "Previous" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:58 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:59 msgid "Next" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:135 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:136 msgid "Export Image" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:149 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:150 msgid "Export All Images" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:288 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:289 msgid "Update" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:300 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:301 msgid "Open" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:308 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:309 msgid "No Spotlight Images Found" msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:308 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:309 msgid "" "Ensure Windows Spotlight is enabled and come back later to try again. The " "application will now close." msgstr "" -#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:313 +#: org.nickvision.spotlight.qt/src/views/mainwindow.cpp:314 msgid "Total Number of Images: {}" msgstr ""