mirror of
https://github.com/aarnt/octopi.git
synced 2025-11-15 07:04:41 +01:00
Compare commits
2 Commits
0875030993
...
97c11f0f10
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97c11f0f10 | ||
|
|
dec6656a44 |
@@ -1,3 +1,9 @@
|
|||||||
|
0.19 (dev)
|
||||||
|
BugFix: Pressing F11 to maximize bottom panel crashed Octopi if Info tab was selected.
|
||||||
|
BugFix: Optional deps dialog had a column header named "3" instead of "Repository".
|
||||||
|
Make the whole interface text less condensed.
|
||||||
|
Added chinese description for the application name in desktop file.
|
||||||
|
|
||||||
0.18.1 (2025-09-29)
|
0.18.1 (2025-09-29)
|
||||||
BugFix: French translation was not working properly (thanks to roxfr).
|
BugFix: French translation was not working properly (thanks to roxfr).
|
||||||
BugFix: Yay searches with version 12.5.2 crashed Octopi (thanks to nije-to-sve).
|
BugFix: Yay searches with version 12.5.2 crashed Octopi (thanks to nije-to-sve).
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ Comment[zh_HK]=加入或移除系統上安裝的軟件
|
|||||||
Comment[zh_TW]=加入或移除系統上安裝的軟體
|
Comment[zh_TW]=加入或移除系統上安裝的軟體
|
||||||
Exec=/usr/bin/octopi
|
Exec=/usr/bin/octopi
|
||||||
Name[en_US]=Octopi
|
Name[en_US]=Octopi
|
||||||
|
Name[zh_CN]=Octopi(软件管理)
|
||||||
Name=Octopi
|
Name=Octopi
|
||||||
Icon=octopi
|
Icon=octopi
|
||||||
MimeType=
|
MimeType=
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
* Collection of Octopi constants and enums
|
* Collection of Octopi constants and enums
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const QString ctn_APPLICATION_VERSION(QStringLiteral("0.18.1"));
|
const QString ctn_APPLICATION_VERSION(QStringLiteral("0.19 (dev)"));
|
||||||
|
|
||||||
//MainWindow related
|
//MainWindow related
|
||||||
enum SystemUpgradeOptions { ectn_NO_OPT, ectn_SYNC_DATABASE_OPT, ectn_NOCONFIRM_OPT };
|
enum SystemUpgradeOptions { ectn_NO_OPT, ectn_SYNC_DATABASE_OPT, ectn_NOCONFIRM_OPT };
|
||||||
|
|||||||
@@ -670,7 +670,7 @@ void MainWindow::outputOutdatedPackageList()
|
|||||||
StrConstants::getOutdatedPackages(m_outdatedStringList->count()) + QLatin1String("</h3>");
|
StrConstants::getOutdatedPackages(m_outdatedStringList->count()) + QLatin1String("</h3>");
|
||||||
}
|
}
|
||||||
|
|
||||||
html += QLatin1String("<br><table border=\"0\">");
|
html += QLatin1String("<br><table cellpadding=\"5\" border=\"0\">");
|
||||||
html += QLatin1String("<tr><th width=\"25%\" align=\"left\">") + StrConstants::getName() +
|
html += QLatin1String("<tr><th width=\"25%\" align=\"left\">") + StrConstants::getName() +
|
||||||
QLatin1String("</th><th width=\"18%\" align=\"right\">") +
|
QLatin1String("</th><th width=\"18%\" align=\"right\">") +
|
||||||
StrConstants::getOutdatedVersion() +
|
StrConstants::getOutdatedVersion() +
|
||||||
@@ -720,7 +720,7 @@ void MainWindow::outputOutdatedPackageList()
|
|||||||
StrConstants::getOutdatedPackages(m_outdatedStringList->count()) + QLatin1String("</h3>");
|
StrConstants::getOutdatedPackages(m_outdatedStringList->count()) + QLatin1String("</h3>");
|
||||||
}
|
}
|
||||||
|
|
||||||
html += QLatin1String("<br><table border=\"0\">");
|
html += QLatin1String("<br><table cellpadding=\"5\" border=\"0\">");
|
||||||
html += QLatin1String("<tr><th width=\"25%\" align=\"left\">") + StrConstants::getName() +
|
html += QLatin1String("<tr><th width=\"25%\" align=\"left\">") + StrConstants::getName() +
|
||||||
QLatin1String("</th><th width=\"18%\" align=\"right\">") +
|
QLatin1String("</th><th width=\"18%\" align=\"right\">") +
|
||||||
StrConstants::getOutdatedVersion() +
|
StrConstants::getOutdatedVersion() +
|
||||||
@@ -816,7 +816,7 @@ void MainWindow::outputOutdatedAURPackageList()
|
|||||||
StrConstants::getOutdatedPackages(m_outdatedAURStringList->count()) + QLatin1String("</h3>");
|
StrConstants::getOutdatedPackages(m_outdatedAURStringList->count()) + QLatin1String("</h3>");
|
||||||
}
|
}
|
||||||
|
|
||||||
html += QLatin1String("<br><table border=\"0\">");
|
html += QLatin1String("<br><table cellpadding=\"5\" border=\"0\">");
|
||||||
html += QLatin1String("<tr><th width=\"25%\" align=\"left\">") + StrConstants::getName() +
|
html += QLatin1String("<tr><th width=\"25%\" align=\"left\">") + StrConstants::getName() +
|
||||||
QLatin1String("</th><th width=\"18%\" align=\"right\">") +
|
QLatin1String("</th><th width=\"18%\" align=\"right\">") +
|
||||||
StrConstants::getOutdatedVersion() +
|
StrConstants::getOutdatedVersion() +
|
||||||
@@ -2055,7 +2055,15 @@ void MainWindow::maxDemaxPropertiesTabWidget(bool pSaveSettings)
|
|||||||
if ( rl[0] != 0 ) //Maximize here
|
if ( rl[0] != 0 ) //Maximize here
|
||||||
{
|
{
|
||||||
ui->splitterHorizontal->setSizes( l << 0 << ui->twProperties->maximumHeight());
|
ui->splitterHorizontal->setSizes( l << 0 << ui->twProperties->maximumHeight());
|
||||||
|
|
||||||
|
if (ui->twProperties->currentIndex() == ctn_TABINDEX_INFORMATION)
|
||||||
|
{
|
||||||
|
QTextBrowser *tb = ui->twProperties->currentWidget()->findChild<QTextBrowser*>(QStringLiteral("textBrowser"));
|
||||||
|
if (tb) tb->setFocus();
|
||||||
|
}
|
||||||
|
else
|
||||||
ui->twProperties->currentWidget()->childAt(1,1)->setFocus();
|
ui->twProperties->currentWidget()->childAt(1,1)->setFocus();
|
||||||
|
|
||||||
ui->twProperties->tabBar()->hide();
|
ui->twProperties->tabBar()->hide();
|
||||||
|
|
||||||
if(pSaveSettings)
|
if(pSaveSettings)
|
||||||
|
|||||||
@@ -60,16 +60,16 @@ QString MainWindow::generateHelpUsageHtmlText()
|
|||||||
|
|
||||||
if(m_hasForeignTool && UnixCommand::getLinuxDistro() != ectn_CHAKRA)
|
if(m_hasForeignTool && UnixCommand::getLinuxDistro() != ectn_CHAKRA)
|
||||||
{
|
{
|
||||||
strOutdatedAur=QLatin1String("<li>") +
|
strOutdatedAur=QLatin1String("<li><p>") +
|
||||||
tr("Ctrl+Shift+O to display outdated %1 packages").arg(StrConstants::getForeignRepositoryName()) + QLatin1String("</li>");
|
tr("Ctrl+Shift+O to display outdated %1 packages").arg(StrConstants::getForeignRepositoryName()) + QLatin1String("</p></li>");
|
||||||
}
|
}
|
||||||
else strOutdatedAur=QStringLiteral("<li></li>");
|
else strOutdatedAur=QStringLiteral("<li></li>");
|
||||||
|
|
||||||
QString strVote;
|
QString strVote;
|
||||||
if(m_aurVote != nullptr)
|
if(m_aurVote != nullptr)
|
||||||
{
|
{
|
||||||
strVote=QLatin1String("<li>") +
|
strVote=QLatin1String("<li><p>") +
|
||||||
tr("Ctrl+Shift+A to display AUR voted package list") + QLatin1String("</li>");
|
tr("Ctrl+Shift+A to display AUR voted package list") + QLatin1String("</p></li>");
|
||||||
}
|
}
|
||||||
else strVote=QStringLiteral("<li></li>");
|
else strVote=QStringLiteral("<li></li>");
|
||||||
|
|
||||||
@@ -82,106 +82,107 @@ QString MainWindow::generateHelpUsageHtmlText()
|
|||||||
|
|
||||||
html +=
|
html +=
|
||||||
QStringLiteral("<a href=\"http://www.gnu.org/licenses/gpl-2.0.html\">GPL v2</a>.</p></h3>") +
|
QStringLiteral("<a href=\"http://www.gnu.org/licenses/gpl-2.0.html\">GPL v2</a>.</p></h3>") +
|
||||||
QStringLiteral("<h4><p>") + strForMoreInfo + QLatin1Char(' ') +
|
QStringLiteral("<p>") + strForMoreInfo + QLatin1Char(' ') +
|
||||||
QStringLiteral("<a href=\"https://tintaescura.com/projects/octopi/\">https://tintaescura.com/projects/octopi</a><br>");
|
QStringLiteral("<a href=\"https://tintaescura.com/projects/octopi/\">https://tintaescura.com/projects/octopi</a><br>");
|
||||||
html += QStringLiteral("<br>") +
|
html += QStringLiteral("<br><br>") +
|
||||||
tr("Package classification:") +
|
tr("Package classification:") +
|
||||||
|
|
||||||
QStringLiteral("<ul type=\"square\"><li>") + iconPath + QLatin1String("ignored.png\"/> ") +
|
QStringLiteral("<ul type=\"square\"><li><p>") + iconPath + QLatin1String("ignored.png\"/> ") +
|
||||||
tr("An ignored package") + QStringLiteral("</li>") +
|
tr("An ignored package") + QStringLiteral("</p></li>") +
|
||||||
QStringLiteral("<li>") + iconPath + QLatin1String("installed.png\"/> ") +
|
QStringLiteral("<li><p>") + iconPath + QLatin1String("installed.png\"/> ") +
|
||||||
tr("An installed package") + QStringLiteral("</li>") +
|
tr("An installed package") + QStringLiteral("</p></li>") +
|
||||||
QStringLiteral("<li>") + iconPath + QLatin1String("unrequired.png\"/> ") +
|
QStringLiteral("<li><p>") + iconPath + QLatin1String("unrequired.png\"/> ") +
|
||||||
tr("An installed package (not required by others)") +
|
tr("An installed package (not required by others)") +
|
||||||
QStringLiteral("</li>") +
|
QStringLiteral("</p></li>") +
|
||||||
QLatin1String("<li>") + iconPath + QLatin1String("foreign_green.png\"/> ") +
|
QLatin1String("<li><p>") + iconPath + QLatin1String("foreign_green.png\"/> ") +
|
||||||
tr("A foreign package, installed from") + QLatin1Char(' ') + StrConstants::getForeignRepositoryName() +
|
tr("A foreign package, installed from") + QLatin1Char(' ') + StrConstants::getForeignRepositoryName() +
|
||||||
QStringLiteral("</li>") +
|
QStringLiteral("</p></li>") +
|
||||||
QStringLiteral("<li>") + iconPath + QLatin1String("noninstalled.png\"/> ") +
|
QStringLiteral("<li><p>") + iconPath + QLatin1String("noninstalled.png\"/> ") +
|
||||||
tr("A non installed package") +
|
tr("A non installed package") +
|
||||||
QStringLiteral("</li>") +
|
QStringLiteral("</p></li>") +
|
||||||
QStringLiteral("<li>") + iconPath + QLatin1String("outdated.png\"/> ") +
|
QStringLiteral("<li><p>") + iconPath + QLatin1String("outdated.png\"/> ") +
|
||||||
tr("An outdated package") +
|
tr("An outdated package") +
|
||||||
QStringLiteral("</li>") +
|
QStringLiteral("</p></li>") +
|
||||||
QStringLiteral("<li>") + iconPath + QLatin1String("foreign_red.png\"/> ") +
|
QStringLiteral("<li><p>") + iconPath + QLatin1String("foreign_red.png\"/> ") +
|
||||||
tr("An outdated foreign package") +
|
tr("An outdated foreign package") +
|
||||||
QStringLiteral("</li>") +
|
QStringLiteral("</p></li>") +
|
||||||
QStringLiteral("<li>") + iconPath + QLatin1String("newer.png\"/> ") +
|
QStringLiteral("<li><p>") + iconPath + QLatin1String("newer.png\"/> ") +
|
||||||
tr("A newer version of this package is installed") +
|
tr("A newer version of this package is installed") +
|
||||||
QStringLiteral("</li></ul>") +
|
QStringLiteral("</p></li></ul><br>") +
|
||||||
|
|
||||||
tr("Basic usage help:") +
|
tr("Basic usage help:") +
|
||||||
QStringLiteral("<ul><li>") +
|
QStringLiteral("<ul><li><p>") +
|
||||||
tr("Position the mouse over a package to see its description") +
|
tr("Position the mouse over a package to see its description") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("Double click an installed package to see its contents") +
|
tr("Double click an installed package to see its contents") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("Right click package to install/reinstall or remove it") +
|
tr("Right click package to install/reinstall or remove it") +
|
||||||
QStringLiteral("</li></ul>") +
|
QStringLiteral("</p></li></ul><br>") +
|
||||||
|
|
||||||
tr("Alt+key sequences:") +
|
tr("Alt+key sequences:") +
|
||||||
QStringLiteral("<ul><li>") +
|
QStringLiteral("<ul><li><p>") +
|
||||||
tr("Alt+1 to switch to 'Info' tab") +
|
tr("Alt+1 to switch to 'Info' tab") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("Alt+2 to switch to 'Files' tab") +
|
tr("Alt+2 to switch to 'Files' tab") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("Alt+3 to switch to 'Actions' tab") +
|
tr("Alt+3 to switch to 'Actions' tab") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("Alt+4 to switch to 'Output' tab") +
|
tr("Alt+4 to switch to 'Output' tab") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("Alt+5 to switch to 'News' tab") +
|
tr("Alt+5 to switch to 'News' tab") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("Alt+6 or 'F1' to show this help page") +
|
tr("Alt+6 or 'F1' to show this help page") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("Alt+7 to switch to 'Terminal' tab") +
|
tr("Alt+7 to switch to 'Terminal' tab") +
|
||||||
QStringLiteral("</li></ul>") +
|
QStringLiteral("</p></li></ul><br>") +
|
||||||
|
|
||||||
tr("Control+key sequences:") +
|
tr("Control+key sequences:") +
|
||||||
QStringLiteral("<ul><li>") +
|
QStringLiteral("<ul><li><p>") +
|
||||||
tr("Ctrl+E or 'Actions/Cancel' to clear the selection of to be removed/installed packages") +
|
tr("Ctrl+E or 'Actions/Cancel' to clear the selection of to be removed/installed packages") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("Ctrl+F to search for text inside tab Files, News and Usage") +
|
tr("Ctrl+F to search for text inside tab Files, News and Usage") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("Ctrl+G or 'File/Get latest distro news' to retrieve the latest RSS based distro news") +
|
tr("Ctrl+G or 'File/Get latest distro news' to retrieve the latest RSS based distro news") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("Ctrl+K or 'File/Check updates' to check mirror for latest updates (checkupdates)") +
|
tr("Ctrl+K or 'File/Check updates' to check mirror for latest updates (checkupdates)") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("Ctrl+L to find a package in the package list") +
|
tr("Ctrl+L to find a package in the package list") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("Ctrl+P to go to package list") +
|
tr("Ctrl+P to go to package list") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("Ctrl+Q or 'File/Exit' to exit the application") +
|
tr("Ctrl+Q or 'File/Exit' to exit the application") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("Ctrl+U or 'File/System upgrade' to make a full system upgrade (pacman -Su)") +
|
tr("Ctrl+U or 'File/System upgrade' to make a full system upgrade (pacman -Su)") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("Ctrl+Y or 'Actions/Apply' to start installation/removal of selected packages") +
|
tr("Ctrl+Y or 'Actions/Apply' to start installation/removal of selected packages") +
|
||||||
QStringLiteral("</li></ul>") +
|
QStringLiteral("</p></li></ul><br>") +
|
||||||
|
|
||||||
tr("Control+shift+key sequences:") +
|
tr("Control+shift+key sequences:") +
|
||||||
QStringLiteral("<ul>") +
|
QStringLiteral("<ul>") +
|
||||||
strVote +
|
strVote +
|
||||||
QStringLiteral("<li>") +
|
QStringLiteral("<li><p>") +
|
||||||
tr("Ctrl+Shift+G to display all package groups") +
|
tr("Ctrl+Shift+G to display all package groups") +
|
||||||
QStringLiteral("</li>") +
|
QStringLiteral("</p></li><p>") +
|
||||||
strOutdatedAur + QLatin1String("<li>") +
|
strOutdatedAur + QLatin1String("<li>") +
|
||||||
//tr("Ctrl+Shift+R to remove Pacman's transaction lock file") +
|
//tr("Ctrl+Shift+R to remove Pacman's transaction lock file") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("Ctrl+Shift+U to upgrade outdated %1 packages").arg(StrConstants::getForeignRepositoryGroupName()) +
|
tr("Ctrl+Shift+U to upgrade outdated %1 packages").arg(StrConstants::getForeignRepositoryGroupName()) +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("Ctrl+Shift+Y to display %1 group").arg(StrConstants::getForeignRepositoryGroupName()) +
|
tr("Ctrl+Shift+Y to display %1 group").arg(StrConstants::getForeignRepositoryGroupName()) +
|
||||||
QStringLiteral("</li></ul>") +
|
QStringLiteral("</p></li></ul><br>") +
|
||||||
|
|
||||||
tr("F+key sequences:") +
|
tr("F+key sequences:") +
|
||||||
QStringLiteral("<ul><li>") +
|
QStringLiteral("<ul><li><p>") +
|
||||||
tr("F1 to show this help page") +
|
tr("F1 to show this help page") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("F4 to open a Terminal whitin the selected directory at Files tab") +
|
tr("F4 to open a Terminal whitin the selected directory at Files tab") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("F6 to open a File Manager whitin the selected directory at Files tab") +
|
tr("F6 to open a File Manager whitin the selected directory at Files tab") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("F10 to maximize/demaximize package list view") +
|
tr("F10 to maximize/demaximize package list view") +
|
||||||
QStringLiteral("</li><li>") +
|
QStringLiteral("</p></li><li><p>") +
|
||||||
tr("F11 to maximize/demaximize Tab's view") +
|
tr("F11 to maximize/demaximize Tab's view") +
|
||||||
QStringLiteral("</li></ul><br>");
|
QStringLiteral("</p></li></ul><br>");
|
||||||
|
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ void MainWindow::initPackageGroups()
|
|||||||
ui->twGroups->header()->setSectionResizeMode(QHeaderView::Fixed);
|
ui->twGroups->header()->setSectionResizeMode(QHeaderView::Fixed);
|
||||||
ui->twGroups->setFrameShape(QFrame::NoFrame);
|
ui->twGroups->setFrameShape(QFrame::NoFrame);
|
||||||
ui->twGroups->setFrameShadow(QFrame::Plain);
|
ui->twGroups->setFrameShadow(QFrame::Plain);
|
||||||
ui->twGroups->setStyleSheet(StrConstants::getTreeViewCSS());
|
ui->twGroups->setStyleSheet(QStringLiteral("QTreeView::item { height: 30px; }"));
|
||||||
ui->twGroups->setSelectionMode(QAbstractItemView::SingleSelection);
|
ui->twGroups->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||||
ui->twGroups->setFocusPolicy(Qt::NoFocus);
|
ui->twGroups->setFocusPolicy(Qt::NoFocus);
|
||||||
connect(ui->twGroups, SIGNAL(itemSelectionChanged()), this, SLOT(onPackageGroupChanged()));
|
connect(ui->twGroups, SIGNAL(itemSelectionChanged()), this, SLOT(onPackageGroupChanged()));
|
||||||
|
|||||||
@@ -1527,7 +1527,7 @@ void MainWindow::refreshTabInfo(bool clearContents, bool neverQuit)
|
|||||||
if (Package::getForeignRepositoryToolName() != ctn_KCP_TOOL)
|
if (Package::getForeignRepositoryToolName() != ctn_KCP_TOOL)
|
||||||
{
|
{
|
||||||
html += QLatin1String("<a style=\"font-size:16px;\">") + pkgDescription + QLatin1String("</a>");
|
html += QLatin1String("<a style=\"font-size:16px;\">") + pkgDescription + QLatin1String("</a>");
|
||||||
html += QLatin1String("<table border=\"0\">");
|
html += QLatin1String("<table cellpadding=\"5\" border=\"0\">");
|
||||||
html += QLatin1String("<tr><th width=\"20%\"></th><th width=\"80%\"></th></tr>");
|
html += QLatin1String("<tr><th width=\"20%\"></th><th width=\"80%\"></th></tr>");
|
||||||
html += QLatin1String("<tr><td>") + version + QLatin1String("</td><td>") + package->version + QLatin1String("</td></tr>");
|
html += QLatin1String("<tr><td>") + version + QLatin1String("</td><td>") + package->version + QLatin1String("</td></tr>");
|
||||||
|
|
||||||
@@ -1580,7 +1580,7 @@ void MainWindow::refreshTabInfo(bool clearContents, bool neverQuit)
|
|||||||
else if (Package::getForeignRepositoryToolName() == ctn_KCP_TOOL)
|
else if (Package::getForeignRepositoryToolName() == ctn_KCP_TOOL)
|
||||||
{
|
{
|
||||||
html += QLatin1String("<a style=\"font-size:16px;\">") + kcp.description + QLatin1String("</a>");
|
html += QLatin1String("<a style=\"font-size:16px;\">") + kcp.description + QLatin1String("</a>");
|
||||||
html += QLatin1String("<table border=\"0\">");
|
html += QLatin1String("<table cellpadding=\"5\" border=\"0\">");
|
||||||
html += QLatin1String("<tr><th width=\"20%\"></th><th width=\"80%\"></th></tr>");
|
html += QLatin1String("<tr><th width=\"20%\"></th><th width=\"80%\"></th></tr>");
|
||||||
html += QLatin1String("<tr><td>") + version + QLatin1String("</td><td>") + package->version + QLatin1String("</td></tr>");
|
html += QLatin1String("<tr><td>") + version + QLatin1String("</td><td>") + package->version + QLatin1String("</td></tr>");
|
||||||
|
|
||||||
|
|||||||
@@ -1055,7 +1055,7 @@ void MainWindow::doSystemUpgrade(SystemUpgradeOptions systemUpgradeOptions)
|
|||||||
{
|
{
|
||||||
clearTabOutput();
|
clearTabOutput();
|
||||||
writeToTabOutput(QLatin1String("<b>") + StrConstants::getCollectingTransactionData() +
|
writeToTabOutput(QLatin1String("<b>") + StrConstants::getCollectingTransactionData() +
|
||||||
QLatin1String("</b><br>"), ectn_DONT_TREAT_URL_LINK);
|
QLatin1String("</b><br><br>"), ectn_DONT_TREAT_URL_LINK);
|
||||||
qApp->processEvents();
|
qApp->processEvents();
|
||||||
|
|
||||||
//Shows a dialog indicating the targets needed to be retrieved and asks for the user's permission.
|
//Shows a dialog indicating the targets needed to be retrieved and asks for the user's permission.
|
||||||
@@ -1235,7 +1235,7 @@ void MainWindow::doRemoveAndInstall()
|
|||||||
{
|
{
|
||||||
clearTabOutput();
|
clearTabOutput();
|
||||||
writeToTabOutput(QLatin1String("<b>") + StrConstants::getCollectingTransactionData() +
|
writeToTabOutput(QLatin1String("<b>") + StrConstants::getCollectingTransactionData() +
|
||||||
QLatin1String("</b><br>"), ectn_DONT_TREAT_URL_LINK);
|
QLatin1String("</b><br><br>"), ectn_DONT_TREAT_URL_LINK);
|
||||||
qApp->processEvents();
|
qApp->processEvents();
|
||||||
|
|
||||||
QString listOfRemoveTargets = getTobeRemovedPackages();
|
QString listOfRemoveTargets = getTobeRemovedPackages();
|
||||||
@@ -1436,7 +1436,7 @@ void MainWindow::doRemove()
|
|||||||
{
|
{
|
||||||
clearTabOutput();
|
clearTabOutput();
|
||||||
writeToTabOutput(QLatin1String("<b>") + StrConstants::getCollectingTransactionData() +
|
writeToTabOutput(QLatin1String("<b>") + StrConstants::getCollectingTransactionData() +
|
||||||
QLatin1String("</b><br>"), ectn_DONT_TREAT_URL_LINK);
|
QLatin1String("</b><br><br>"), ectn_DONT_TREAT_URL_LINK);
|
||||||
qApp->processEvents();
|
qApp->processEvents();
|
||||||
|
|
||||||
QString listOfTargets = getTobeRemovedPackages();
|
QString listOfTargets = getTobeRemovedPackages();
|
||||||
@@ -1907,7 +1907,7 @@ void MainWindow::doInstall()
|
|||||||
|
|
||||||
clearTabOutput();
|
clearTabOutput();
|
||||||
writeToTabOutput(QLatin1String("<b>") + StrConstants::getCollectingTransactionData() +
|
writeToTabOutput(QLatin1String("<b>") + StrConstants::getCollectingTransactionData() +
|
||||||
QLatin1String("</b><br>"), ectn_DONT_TREAT_URL_LINK);
|
QLatin1String("</b><br><br>"), ectn_DONT_TREAT_URL_LINK);
|
||||||
qApp->processEvents();
|
qApp->processEvents();
|
||||||
|
|
||||||
QHash<QString, bool> listToBeInst = getTobeInstalledPackages();
|
QHash<QString, bool> listToBeInst = getTobeInstalledPackages();
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ MultiSelectionDialog::MultiSelectionDialog(QWidget *parent) :
|
|||||||
{
|
{
|
||||||
m_actionIsToCheck = true;
|
m_actionIsToCheck = true;
|
||||||
QStringList hhl;
|
QStringList hhl;
|
||||||
hhl << StrConstants::getName() << StrConstants::getDescription();
|
hhl << StrConstants::getName() << StrConstants::getDescription() << StrConstants::getRepository();
|
||||||
|
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
ui->twDepPackages->setColumnCount(3);
|
ui->twDepPackages->setColumnCount(3);
|
||||||
|
|||||||
@@ -522,7 +522,7 @@ QStringList *Package::getOutdatedAURStringList()
|
|||||||
res->append(pkgName); //We only need the package name!
|
res->append(pkgName); //We only need the package name!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else //We have a TRIZEN output
|
else if (!pkgName.contains(QStringLiteral("\t"))) //We have a TRIZEN output
|
||||||
{
|
{
|
||||||
if (!ignorePkgList.contains(pkgName))
|
if (!ignorePkgList.contains(pkgName))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -55,6 +55,10 @@ void PackageTreeView::init()
|
|||||||
header()->setSectionResizeMode(QHeaderView::Interactive);
|
header()->setSectionResizeMode(QHeaderView::Interactive);
|
||||||
header()->setDefaultAlignment(Qt::AlignLeft);
|
header()->setDefaultAlignment(Qt::AlignLeft);
|
||||||
setUniformRowHeights(true);
|
setUniformRowHeights(true);
|
||||||
|
|
||||||
|
//TODO Add a setting...
|
||||||
|
//setIconSize(QSize(32,32));
|
||||||
|
setStyleSheet(QStringLiteral("QTreeView::item { height: 30px; }"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -108,6 +108,9 @@ void PropertiesTabWidget::initTabFiles()
|
|||||||
m_tvPkgFileList->setFrameShadow(QFrame::Plain);
|
m_tvPkgFileList->setFrameShadow(QFrame::Plain);
|
||||||
m_tvPkgFileList->setObjectName(QStringLiteral("tvPkgFileList"));
|
m_tvPkgFileList->setObjectName(QStringLiteral("tvPkgFileList"));
|
||||||
|
|
||||||
|
//TODO Add Option to change...
|
||||||
|
m_tvPkgFileList->setStyleSheet(QStringLiteral("QTreeView::item { height: 30px; }"));
|
||||||
|
|
||||||
modelPkgFileList->setSortRole(0);
|
modelPkgFileList->setSortRole(0);
|
||||||
modelPkgFileList->setColumnCount(0);
|
modelPkgFileList->setColumnCount(0);
|
||||||
gridLayoutX->addWidget(m_tvPkgFileList, 0, 0, 1, 1);
|
gridLayoutX->addWidget(m_tvPkgFileList, 0, 0, 1, 1);
|
||||||
@@ -146,6 +149,10 @@ void PropertiesTabWidget::initTabActions()
|
|||||||
m_tvTransaction->header()->setSectionResizeMode(QHeaderView::Fixed);
|
m_tvTransaction->header()->setSectionResizeMode(QHeaderView::Fixed);
|
||||||
m_tvTransaction->setFrameShape(QFrame::NoFrame);
|
m_tvTransaction->setFrameShape(QFrame::NoFrame);
|
||||||
m_tvTransaction->setFrameShadow(QFrame::Plain);
|
m_tvTransaction->setFrameShadow(QFrame::Plain);
|
||||||
|
|
||||||
|
//TODO Add Option to change...
|
||||||
|
m_tvTransaction->setStyleSheet(QStringLiteral("QTreeView::item { height: 30px; }"));
|
||||||
|
|
||||||
m_tvTransaction->expandAll();
|
m_tvTransaction->expandAll();
|
||||||
|
|
||||||
m_modelTransaction->setSortRole(0);
|
m_modelTransaction->setSortRole(0);
|
||||||
@@ -231,6 +238,11 @@ void PropertiesTabWidget::initTabOutput()
|
|||||||
m_textOutput->setFrameShape(QFrame::NoFrame);
|
m_textOutput->setFrameShape(QFrame::NoFrame);
|
||||||
m_textOutput->setFrameShadow(QFrame::Plain);
|
m_textOutput->setFrameShadow(QFrame::Plain);
|
||||||
|
|
||||||
|
QFont f = QApplication::font();
|
||||||
|
f.setFamily(SettingsManager::getTerminalFontFamily());
|
||||||
|
f.setPointSizeF(SettingsManager::getTerminalFontPointSize() - 1.5);
|
||||||
|
m_textOutput->setFont(f);
|
||||||
|
|
||||||
gridLayoutX->addWidget (m_textOutput, 0, 0, 1, 1);
|
gridLayoutX->addWidget (m_textOutput, 0, 0, 1, 1);
|
||||||
|
|
||||||
QString aux(StrConstants::getTabOutputName());
|
QString aux(StrConstants::getTabOutputName());
|
||||||
|
|||||||
@@ -72,7 +72,9 @@ void TransactionDialog::setInformativeText(const QString &text)
|
|||||||
|
|
||||||
void TransactionDialog::setDetailedText(const QString &detailedtext)
|
void TransactionDialog::setDetailedText(const QString &detailedtext)
|
||||||
{
|
{
|
||||||
ui->detailedText->setText(detailedtext);
|
QString t = detailedtext;
|
||||||
|
t.replace(QLatin1String("\n"), QLatin1String("<br>"));
|
||||||
|
ui->detailedText->setText(QStringLiteral("<p style=\"line-height: 1.5;\">") + t + QStringLiteral("</p>"));
|
||||||
|
|
||||||
//We must search for a 'pacman-version-number' pkg to force terminal upgrade use
|
//We must search for a 'pacman-version-number' pkg to force terminal upgrade use
|
||||||
if (detailedtext.contains(QRegularExpression(QStringLiteral("pacman-[0-9]+"))))
|
if (detailedtext.contains(QRegularExpression(QStringLiteral("pacman-[0-9]+"))))
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ QString OctopiTabInfo::formatTabInfo(const PackageRepository::PackageData& packa
|
|||||||
|
|
||||||
html += pkgDescription;
|
html += pkgDescription;
|
||||||
|
|
||||||
html += QLatin1String("<table border=\"0\">");
|
html += QLatin1String("<table cellpadding=\"5\" border=\"0\">");
|
||||||
|
|
||||||
html += QLatin1String("<tr><th width=\"20%\"></th><th width=\"80%\"></th></tr>");
|
html += QLatin1String("<tr><th width=\"20%\"></th><th width=\"80%\"></th></tr>");
|
||||||
html += QLatin1String("<tr><td>") + url + QLatin1String("</td><td>") + pid.url + QLatin1String("</td>");
|
html += QLatin1String("<tr><td>") + url + QLatin1String("</td><td>") + pid.url + QLatin1String("</td>");
|
||||||
|
|||||||
@@ -366,11 +366,11 @@ QString utils::parseDistroNews()
|
|||||||
else if (eText.tagName() == QLatin1String("link"))
|
else if (eText.tagName() == QLatin1String("link"))
|
||||||
{
|
{
|
||||||
itemLink = Package::makeURLClickable(eText.text());
|
itemLink = Package::makeURLClickable(eText.text());
|
||||||
if (UnixCommand::getLinuxDistro() == ectn_MANJAROLINUX) itemLink += QLatin1String("<br>");
|
/*if (UnixCommand::getLinuxDistro() == ectn_MANJAROLINUX)*/ itemLink += QLatin1String("<br>");
|
||||||
}
|
}
|
||||||
else if (eText.tagName() == QLatin1String("description"))
|
else if (eText.tagName() == QLatin1String("description"))
|
||||||
{
|
{
|
||||||
itemDescription = eText.text();
|
itemDescription = QLatin1String("<p style=\"line-height: 1.5;\">") + eText.text() + QLatin1String("</p>");
|
||||||
itemDescription += QLatin1String("<br>");
|
itemDescription += QLatin1String("<br>");
|
||||||
}
|
}
|
||||||
else if (eText.tagName() == QLatin1String("pubDate"))
|
else if (eText.tagName() == QLatin1String("pubDate"))
|
||||||
@@ -389,8 +389,8 @@ QString utils::parseDistroNews()
|
|||||||
text = text.nextSibling();
|
text = text.nextSibling();
|
||||||
}
|
}
|
||||||
|
|
||||||
html += QLatin1String("<li><p>") + itemTitle + QLatin1Char(' ') + itemPubDate + QLatin1String("<br>") +
|
html += QLatin1String("<li>") + itemTitle + QLatin1Char(' ') + itemPubDate + QLatin1String("<br>") +
|
||||||
itemLink + itemDescription + QLatin1String("</p></li>");
|
itemLink + itemDescription + QLatin1String("</li>");
|
||||||
itemCounter++;
|
itemCounter++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user