@@ -230,9 +230,8 @@ MainWindow::MainWindow(QSplashScreen *pSplashScreen, QWidget *parent)
230
230
if (mpMessagesWidget->getMessagesTreeWidget ()->topLevelItemCount () > 0 ) restoreMessagesWidget = true ;
231
231
restoreState (pSettings->value (" application/windowState" ).toByteArray ());
232
232
if (restoreMessagesWidget) mpMessagesDockWidget->show ();
233
- mpPerspectiveTabbar->setCurrentIndex (0 );
234
- switchToWelcomePerspective ();
235
233
}
234
+ switchToWelcomePerspective ();
236
235
// read last Open Directory location
237
236
if (pSettings->contains (" lastOpenDirectory" ))
238
237
StringHandler::setLastOpenDirectory (pSettings->value (" lastOpenDirectory" ).toString ());
@@ -1947,11 +1946,11 @@ void MainWindow::createActions()
1947
1946
mpClearRecentFilesAction->setStatusTip (tr (" Clears the recent files list" ));
1948
1947
connect (mpClearRecentFilesAction, SIGNAL (triggered ()), SLOT (clearRecentFilesList ()));
1949
1948
// print action
1950
- mpPrintModelAction = new QAction (QIcon (" :/Resources/icons/print.png " ), tr (" Print..." ), this );
1949
+ mpPrintModelAction = new QAction (QIcon (" :/Resources/icons/print.svg " ), tr (" Print..." ), this );
1951
1950
mpPrintModelAction->setShortcut (QKeySequence (" Ctrl+p" ));
1952
1951
mpPrintModelAction->setEnabled (false );
1953
1952
// close OMEdit action
1954
- mpQuitAction = new QAction (QIcon (" :/Resources/icons/quit.png " ), tr (" Quit" ), this );
1953
+ mpQuitAction = new QAction (QIcon (" :/Resources/icons/quit.svg " ), tr (" Quit" ), this );
1955
1954
mpQuitAction->setStatusTip (tr (" Quit the " ).append (Helper::applicationIntroText));
1956
1955
mpQuitAction->setShortcut (QKeySequence (" Ctrl+q" ));
1957
1956
connect (mpQuitAction, SIGNAL (triggered ()), SLOT (close ()));
@@ -1967,7 +1966,7 @@ void MainWindow::createActions()
1967
1966
mpPasteAction = new QAction (QIcon (" :/Resources/icons/paste.svg" ), tr (" Paste" ), this );
1968
1967
mpPasteAction->setShortcut (QKeySequence (" Ctrl+v" ));
1969
1968
// find replace class action
1970
- mpFindReplaceAction = new QAction (QIcon ( " :/Resources/icons/search.png " ), QString (Helper::findReplaceModelicaText), this );
1969
+ mpFindReplaceAction = new QAction (QString (Helper::findReplaceModelicaText), this );
1971
1970
mpFindReplaceAction->setStatusTip (tr (" Shows the Find/Replace window" ));
1972
1971
mpFindReplaceAction->setShortcut (QKeySequence (" Ctrl+f" ));
1973
1972
mpFindReplaceAction->setEnabled (false );
@@ -2089,7 +2088,7 @@ void MainWindow::createActions()
2089
2088
mpImportNgspiceNetlistAction->setStatusTip (Helper::importNgspiceNetlistTip);
2090
2089
connect (mpImportNgspiceNetlistAction, SIGNAL (triggered ()), SLOT (importNgspiceNetlist ()));
2091
2090
// open options action
2092
- mpOptionsAction = new QAction (QIcon (" :/Resources/icons/options.png " ), tr (" Options" ), this );
2091
+ mpOptionsAction = new QAction (QIcon (" :/Resources/icons/options.svg " ), tr (" Options" ), this );
2093
2092
mpOptionsAction->setStatusTip (tr (" Shows the options window" ));
2094
2093
mpOptionsAction->setMenuRole (QAction::PreferencesRole);
2095
2094
connect (mpOptionsAction, SIGNAL (triggered ()), SLOT (openConfigurationOptions ()));
@@ -2158,7 +2157,7 @@ void MainWindow::createActions()
2158
2157
mpBitmapShapeAction->setCheckable (true );
2159
2158
connect (mpBitmapShapeAction, SIGNAL (triggered ()), SLOT (toggleShapesButton ()));
2160
2159
// connect/unconnect action
2161
- mpConnectModeAction = new QAction (QIcon (" :/Resources/icons/connect-mode.png " ), tr (" Connect/Unconnect Mode" ), mpShapesActionGroup);
2160
+ mpConnectModeAction = new QAction (QIcon (" :/Resources/icons/connect-mode.svg " ), tr (" Connect/Unconnect Mode" ), mpShapesActionGroup);
2162
2161
mpConnectModeAction->setStatusTip (tr (" Changes to/from connect mode" ));
2163
2162
mpConnectModeAction->setCheckable (true );
2164
2163
mpConnectModeAction->setChecked (true );
@@ -2183,7 +2182,7 @@ void MainWindow::createActions()
2183
2182
mpNewParametricPlotWindowAction->setStatusTip (tr (" Inserts new parametric plot window" ));
2184
2183
connect (mpNewParametricPlotWindowAction, SIGNAL (triggered ()), SLOT (addNewParametricPlotWindow ()));
2185
2184
// clear plot window action
2186
- mpClearPlotWindowAction = new QAction (QIcon (" :/Resources/icons/clearmessages.png " ), tr (" Clear Plot Window" ), this );
2185
+ mpClearPlotWindowAction = new QAction (QIcon (" :/Resources/icons/clear.svg " ), tr (" Clear Plot Window" ), this );
2187
2186
mpClearPlotWindowAction->setStatusTip (tr (" Clears all the curves from the plot window" ));
2188
2187
connect (mpClearPlotWindowAction, SIGNAL (triggered ()), SLOT (clearPlotWindow ()));
2189
2188
// Other Actions
@@ -2395,7 +2394,8 @@ void MainWindow::switchToPlottingPerspective()
2395
2394
// ! Creates the toolbars
2396
2395
void MainWindow::createToolbars ()
2397
2396
{
2398
- setIconSize (QSize (16 , 16 ));
2397
+ int toolbarIconSize = mpOptionsDialog->getGeneralSettingsPage ()->getToolbarIconSizeSpinBox ()->value ();
2398
+ setIconSize (QSize (toolbarIconSize, toolbarIconSize));
2399
2399
// File Toolbar
2400
2400
mpFileToolBar = addToolBar (tr (" File Toolbar" ));
2401
2401
mpFileToolBar->setObjectName (" File Toolbar" );
@@ -2464,13 +2464,12 @@ void MainWindow::createToolbars()
2464
2464
mpModelSwitcherToolButton->setEnabled (false );
2465
2465
mpModelSwitcherToolButton->setMenu (mpModelSwitcherMenu);
2466
2466
mpModelSwitcherToolButton->setPopupMode (QToolButton::MenuButtonPopup);
2467
- mpModelSwitcherToolButton->setIcon (QIcon (" :/Resources/icons/switch.png " ));
2467
+ mpModelSwitcherToolButton->setIcon (QIcon (" :/Resources/icons/switch.svg " ));
2468
2468
mpModelSwitcherToolBar->addWidget (mpModelSwitcherToolButton);
2469
2469
// Plot Toolbar
2470
2470
mpPlotToolBar = addToolBar (tr (" Plot Toolbar" ));
2471
2471
mpPlotToolBar->setObjectName (" Plot Toolbar" );
2472
2472
mpPlotToolBar->setAllowedAreas (Qt::TopToolBarArea);
2473
- mpPlotToolBar->setEnabled (false );
2474
2473
// add actions to Plot Toolbar
2475
2474
mpPlotToolBar->addAction (mpReSimulateModelAction);
2476
2475
mpPlotToolBar->addSeparator ();
@@ -2540,7 +2539,7 @@ InfoBar::InfoBar(QWidget *pParent)
2540
2539
mpInfoLabel->setWordWrap (true );
2541
2540
mpCloseButton = new QToolButton;
2542
2541
mpCloseButton->setAutoRaise (true );
2543
- mpCloseButton->setIcon (QIcon (" :/Resources/icons/clear.png " ));
2542
+ mpCloseButton->setIcon (QIcon (" :/Resources/icons/delete.svg " ));
2544
2543
mpCloseButton->setToolTip (Helper::close);
2545
2544
connect (mpCloseButton, SIGNAL (clicked ()), SLOT (hide ()));
2546
2545
// set the layout
0 commit comments