Added extra large icons option. Fixes #17.

This commit is contained in:
leozide 2017-02-08 17:47:30 -08:00
parent 4b9cd6a038
commit 506e91a16c
2 changed files with 13 additions and 2 deletions

View file

@ -320,8 +320,8 @@ void lcPartSelectionListModel::DrawPreview(int InfoIndex)
View* View = gMainWindow->GetActiveView();
View->MakeCurrent();
lcContext* Context = View->mContext;
int Width = 128;
int Height = 128;
int Width = mIconSize * 2;
int Height = mIconSize * 2;
if (!Context->BeginRenderToTexture(Width, Height))
return;
@ -444,6 +444,11 @@ void lcPartSelectionListView::CustomContextMenuRequested(QPoint Pos)
LargeIcons->setChecked(mListModel->GetIconSize() == 96);
IconGroup->addAction(LargeIcons);
QAction* ExtraLargeIcons = Menu->addAction(tr("Extra Large Icons"), this, SLOT(SetExtraLargeIcons()));
ExtraLargeIcons->setCheckable(true);
ExtraLargeIcons->setChecked(mListModel->GetIconSize() == 192);
IconGroup->addAction(ExtraLargeIcons);
Menu->addSeparator();
if (mListModel->GetIconSize() != 0)
@ -484,6 +489,11 @@ void lcPartSelectionListView::SetLargeIcons()
SetIconSize(96);
}
void lcPartSelectionListView::SetExtraLargeIcons()
{
SetIconSize(192);
}
void lcPartSelectionListView::TogglePartNames()
{
bool Show = !mListModel->GetShowPartNames();

View file

@ -138,6 +138,7 @@ protected slots:
void SetSmallIcons();
void SetMediumIcons();
void SetLargeIcons();
void SetExtraLargeIcons();
void TogglePartNames();
void ToggleDecoratedParts();
void ToggleFixedColor();