Improve hints for manage sets dialog (#3419)
This commit is contained in:
parent
051fcff284
commit
0cd671c022
2 changed files with 16 additions and 10 deletions
|
@ -127,14 +127,18 @@ WndSets::WndSets(QWidget *parent) : QMainWindow(parent)
|
|||
labNotes->setOpenExternalLinks(true);
|
||||
labNotes->setText(
|
||||
"<b>" + tr("Deck Editor") + ":</b> " +
|
||||
tr("Only cards in enabled sets will appear in the deck editor card list") + "<br><b>" + tr("Card Art") +
|
||||
":</b> " + tr("Image priority is decided in the following order") + "<ol><li>" + tr("The") +
|
||||
"<a "
|
||||
"href='https://github.com/Cockatrice/Cockatrice/wiki/"
|
||||
tr("Only cards in enabled sets will appear in the deck editor card list") + "<br><br>" + "<b>" +
|
||||
tr("Card Art") + ":</b> " + tr("Image priority is decided in the following order") + "<ol><li>" + tr("The") +
|
||||
"<a href='https://github.com/Cockatrice/Cockatrice/wiki/"
|
||||
"Custom-Cards-%26-Sets#to-add-custom-art-for-cards-the-easiest-way-is-to-use-the-custom-folder'> " +
|
||||
tr("CUSTOM Folder") + "</a></li><li>" + tr("Enabled Sets (Top to Bottom)") + "</li><li>" +
|
||||
tr("Disabled Sets (Top to Bottom)") + "</li></ol>");
|
||||
|
||||
QGridLayout *hintsGrid = new QGridLayout;
|
||||
hintsGrid->addWidget(labNotes, 0, 0);
|
||||
hintsGroupBox = new QGroupBox(tr("Hints"));
|
||||
hintsGroupBox->setLayout(hintsGrid);
|
||||
|
||||
sortWarning = new QLabel;
|
||||
sortWarning->setWordWrap(true);
|
||||
sortWarning->setText(
|
||||
|
@ -157,7 +161,7 @@ WndSets::WndSets(QWidget *parent) : QMainWindow(parent)
|
|||
mainLayout->addWidget(enableSomeButton, 2, 1);
|
||||
mainLayout->addWidget(disableSomeButton, 2, 2);
|
||||
mainLayout->addWidget(sortWarning, 3, 1, 1, 2);
|
||||
mainLayout->addWidget(labNotes, 4, 1, 1, 2);
|
||||
mainLayout->addWidget(hintsGroupBox, 4, 1, 1, 2);
|
||||
mainLayout->addWidget(buttonBox, 5, 1, 1, 2);
|
||||
mainLayout->setColumnStretch(1, 1);
|
||||
mainLayout->setColumnStretch(2, 1);
|
||||
|
|
|
@ -8,13 +8,14 @@
|
|||
#include <QMainWindow>
|
||||
#include <QSet>
|
||||
|
||||
class CardDatabase;
|
||||
class QGroupBox;
|
||||
class QItemSelection;
|
||||
class QPushButton;
|
||||
class QTreeView;
|
||||
class SetsDisplayModel;
|
||||
class SetsModel;
|
||||
class SetsProxyModel;
|
||||
class SetsDisplayModel;
|
||||
class QPushButton;
|
||||
class CardDatabase;
|
||||
class QItemSelection;
|
||||
class QTreeView;
|
||||
|
||||
class WndSets : public QMainWindow
|
||||
{
|
||||
|
@ -22,6 +23,7 @@ class WndSets : public QMainWindow
|
|||
private:
|
||||
SetsModel *model;
|
||||
SetsDisplayModel *displayModel;
|
||||
QGroupBox *hintsGroupBox;
|
||||
QTreeView *view;
|
||||
QPushButton *toggleAllButton, *toggleSelectedButton;
|
||||
QPushButton *enableAllButton, *disableAllButton, *enableSomeButton, *disableSomeButton;
|
||||
|
|
Loading…
Reference in a new issue