mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Added extra large icons option. Fixes #17.
This commit is contained in:
parent
4b9cd6a038
commit
506e91a16c
2 changed files with 13 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -138,6 +138,7 @@ protected slots:
|
|||
void SetSmallIcons();
|
||||
void SetMediumIcons();
|
||||
void SetLargeIcons();
|
||||
void SetExtraLargeIcons();
|
||||
void TogglePartNames();
|
||||
void ToggleDecoratedParts();
|
||||
void ToggleFixedColor();
|
||||
|
|
Loading…
Reference in a new issue