Skip to content

Commit

Permalink
Merge pull request #853 from ra3xdh/852_fix
Browse files Browse the repository at this point in the history
Fix Qucs-S fresh start #852
  • Loading branch information
ra3xdh authored Jul 21, 2024
2 parents 6ca42f0 + d7c075e commit 040dbbd
Show file tree
Hide file tree
Showing 157 changed files with 9 additions and 140 deletions.
Binary file removed qucs/bitmaps/dark/EKV26nMOS.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/EKV26pMOS.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/ac.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/ac_current.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/ac_voltage.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/am_mod.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/amplifier.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/and.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/andor4x2.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/andor4x3.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/andor4x4.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/attenuator.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/biast.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/binarytogrey4bit.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/bondwire.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/buffer.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/capacitor.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/cccs.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/ccvs.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/circulator.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/coaxial.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/comp_1bit.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/comp_2bit.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/comp_4bit.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/coplanar.png
Binary file not shown.
Binary file removed qucs/bitmaps/dark/coupler.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/cpwgap.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/cpwopen.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/cpwshort.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/cpwstep.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/ctline.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/dc.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/dc_current.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/dc_voltage.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/dcblock.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/dcfeed.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/dff_SR.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/diac.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/digi.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/diode.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/dmosfet.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/dmosfet_sub.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/dmux2to4.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/dmux3to8.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/dmux4to16.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/ecvs.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/edd.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/equation.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/fa1b.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/fa2b.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/gatedDlatch.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/gnd.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/greytobinary4bit.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/ground.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/gyrator.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/ha1b.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/hb.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/hpribin4bit.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/hybrid.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/iexp.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/inductor.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/inverter.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/iprobe.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/ipulse.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/irect.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/isolator.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/jkff_SR.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/jkflipflop.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/log_amp.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/mscorner.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/mscoupled.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/mscross.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/msgap.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/msline.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/msmbend.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/msopen.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/msrstub.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/msstep.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/mstee.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/msvia.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/mutual.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/mutual2.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/mux2to1.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/mux4to1.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/mux8to1.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/nand.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/nfet.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/nigbt.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/nmosfet.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/nmosfet_sub.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/noise_current.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/noise_ii.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/noise_iv.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/noise_volt.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/noise_vv.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/nor.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/npn.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/npn_therm.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/npnsub.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/npnsub_therm.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/opamp.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/or.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/pfet.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/pm_mod.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/pmosfet.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/pmosfet_sub.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/pnp.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/port.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/potentiometer.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/pshifter.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/rectline.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/relais.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/resistor.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/resistor_us.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/rfedd.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/rlcg.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/rsflipflop.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/source.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/spfile1.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/spfile2.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/spfile3.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/subcircuit.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/subport.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/substrate.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/sweep.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/switch.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/symtrans.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/tff_SR.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/thyristor.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/tline.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/tline_4port.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/tran.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/transformer.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/triac.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/tunneldiode.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/twistedpair.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/vccs.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/vcresistor.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/vcvs.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/vexp.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/vfile.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/vhdlfile.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/vprobe.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/vpulse.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/vrect.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/xnor.png
Diff not rendered.
Binary file removed qucs/bitmaps/dark/xor.png
Diff not rendered.
19 changes: 0 additions & 19 deletions qucs/dialogs/qucssettingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,19 +166,6 @@ QucsSettingsDialog::QucsSettingsDialog(QucsApp *parent)
appSettingsGrid->addWidget(checkFullTraceNames,12,1);
checkFullTraceNames->setChecked(QucsSettings.fullTraceName);

QStringList lst_icons;
lst_icons<<"Automatic"<<"Light"<<"Dark";
PanelIconsCombo = new QComboBox;
PanelIconsCombo->addItems(lst_icons);
PanelIconsCombo->setCurrentIndex(QucsSettings.panelIconsTheme);
appSettingsGrid->addWidget(new QLabel(tr("Panel icons theme (set after reload):"),appSettingsTab),13,0);
appSettingsGrid->addWidget(PanelIconsCombo,13,1);
CompIconsCombo = new QComboBox;
CompIconsCombo->addItems(lst_icons);
CompIconsCombo->setCurrentIndex(QucsSettings.compIconsTheme);
appSettingsGrid->addWidget(new QLabel(tr("Components icons theme (set after reload):"),appSettingsTab),14,0);
appSettingsGrid->addWidget(CompIconsCombo,14,1);

t->addTab(appSettingsTab, tr("Settings"));

// ...........................................................
Expand Down Expand Up @@ -594,9 +581,6 @@ void QucsSettingsDialog::slotApply()
QucsSettings.appFont = AppFont;
QucsSettings.textFont = TextFont;

QucsSettings.panelIconsTheme = PanelIconsCombo->currentIndex();
QucsSettings.compIconsTheme = CompIconsCombo->currentIndex();

QucsSettings.Language =
LanguageCombo->currentText().section('(',1,1).remove(')');

Expand Down Expand Up @@ -795,9 +779,6 @@ void QucsSettingsDialog::slotDefaultValues()
LargeFontSizeEdit->setText(QString::number(16.0));

LanguageCombo->setCurrentIndex(0);

PanelIconsCombo->setCurrentIndex(0);
CompIconsCombo->setCurrentIndex(0);

p = BGColorButton->palette();
p.setColor(BGColorButton->backgroundRole(), QColor(255,250,225));
Expand Down
1 change: 0 additions & 1 deletion qucs/dialogs/qucssettingsdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ private slots:
*checkAntiAliasing, *checkTextAntiAliasing,
*checkFullTraceNames;
QComboBox *LanguageCombo;
QComboBox *PanelIconsCombo, *CompIconsCombo;
QPushButton *FontButton, *AppFontButton, *TextFontButton, *BGColorButton;
QLineEdit *LargeFontSizeEdit, *undoNumEdit, *editorEdit, *Input_Suffix,
*Input_Program, *homeEdit, *admsXmlEdit, *ascoEdit, *octaveEdit,
Expand Down
15 changes: 0 additions & 15 deletions qucs/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ bool loadSettings()
QucsSettings.Directive = _settings::Get().item<QString>("Directive");
QucsSettings.Task = _settings::Get().item<QString>("Task");

QucsSettings.panelIconsTheme = _settings::Get().item<int>("panelIconsTheme");
QucsSettings.compIconsTheme = _settings::Get().item<int>("compIconsTheme");

// TODO: Convert this to the new settings model.
if(settings.contains("Qucsator")) {
QucsSettings.Qucsator = settings.value("Qucsator").toString();
Expand Down Expand Up @@ -147,11 +144,6 @@ bool loadSettings()
QucsSettings.GraphAntiAliasing = _settings::Get().item<bool>("GraphAntiAliasing");
QucsSettings.TextAntiAliasing = _settings::Get().item<bool>("TextAntiAliasing");
QucsSettings.fullTraceName = _settings::Get().item<bool>("fullTraceName");
QucsSettings.FileToolbar = _settings::Get().item<bool>("FileToolbar");
QucsSettings.EditToolbar = _settings::Get().item<bool>("EditToolbar");
QucsSettings.ViewToolbar = _settings::Get().item<bool>("ViewToolbar");
QucsSettings.WorkToolbar = _settings::Get().item<bool>("WorkToolbar");
QucsSettings.SimulateToolbar = _settings::Get().item<bool>("SimulateToolbar");
QucsSettings.RecentDocs = _settings::Get().item<QString>("RecentDocs").split("*",qucs::SkipEmptyParts);
QucsSettings.numRecentDocs = QucsSettings.RecentDocs.count();
QucsSettings.spiceExtensions << "*.sp" << "*.cir" << "*.spc" << "*.spi";
Expand Down Expand Up @@ -224,13 +216,6 @@ bool saveApplSettings()
qs.setItem<bool>("GraphAntiAliasing", QucsSettings.GraphAntiAliasing);
qs.setItem<bool>("TextAntiAliasing", QucsSettings.TextAntiAliasing);
qs.setItem<bool>("fullTraceName",QucsSettings.fullTraceName);
qs.setItem<int>("panelIconsTheme",QucsSettings.panelIconsTheme);
qs.setItem<int>("compIconsTheme",QucsSettings.compIconsTheme);
qs.setItem<bool>("FileToolbar", QucsSettings.FileToolbar);
qs.setItem<bool>("EditToolbar", QucsSettings.EditToolbar);
qs.setItem<bool>("ViewToolbar", QucsSettings.ViewToolbar);
qs.setItem<bool>("WorkToolbar", QucsSettings.WorkToolbar);
qs.setItem<bool>("SimulateToolbar", QucsSettings.SimulateToolbar);

// Copy the list of directory paths in which Qucs should
// search for subcircuit schematics from qucsPathList
Expand Down
14 changes: 0 additions & 14 deletions qucs/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,9 @@ class VersionTriplet;

static const double pi = 3.1415926535897932384626433832795029; /* pi */

namespace qucs {
enum iconType { panelIcons = 0, compIcons = 1 };
enum iconTheme { autoIcons = 0, lightIcons = 1, darkIcons = 2 };
}

struct tQucsSettings {
int DefaultSimulator;

int panelIconsTheme;
int compIconsTheme;

QFont font;
QFont appFont;
QFont textFont;
Expand Down Expand Up @@ -113,12 +105,6 @@ struct tQucsSettings {
bool hasDarkTheme;
bool fullTraceName;

bool FileToolbar;
bool EditToolbar;
bool ViewToolbar;
bool WorkToolbar;
bool SimulateToolbar;

bool firstRun;
};

Expand Down
36 changes: 1 addition & 35 deletions qucs/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,48 +65,14 @@ bool misc::isDarkTheme()
return is_dark_theme;
}

QString misc::getIconPath(const QString &file, int icon_type)
QString misc::getIconPath(const QString &file)
{
auto icons_theme = QucsSettings.panelIconsTheme;
switch (icon_type) {
case qucs::panelIcons:
icons_theme = QucsSettings.panelIconsTheme;
break;
case qucs::compIcons:
icons_theme = QucsSettings.compIconsTheme;
break;
}

bool loadDark = false;
switch (icons_theme) {
case qucs::autoIcons:
loadDark = QucsSettings.hasDarkTheme;
break;
case qucs::darkIcons:
loadDark = true;
break;
case qucs::lightIcons:
loadDark = false;
break;
}

QString icon_path =":bitmaps/svg/"; // look for svg version first
if (loadDark) {
QString icon_path_dark = ":bitmaps/svg/dark/";
if (QFileInfo::exists(icon_path_dark + file + ".svg"))
icon_path = icon_path_dark;
}
icon_path += file + ".svg";
if (QFile::exists(icon_path)) {
return icon_path;
}

icon_path =":bitmaps/";
if (loadDark) {
QString icon_path_dark = ":bitmaps/dark/";
if (QFileInfo::exists(icon_path_dark + file + ".png"))
icon_path = icon_path_dark;
}
icon_path += file + ".png";
return icon_path;
}
Expand Down
2 changes: 1 addition & 1 deletion qucs/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ namespace misc {
}

QStringList parseCmdArgs(const QString &program);
QString getIconPath(const QString &file, int icon_type);
QString getIconPath(const QString &file);
bool isDarkTheme();
QString getWindowTitle();
QString wildcardToRegularExpression(const QString &wc_str, const bool enableEscaping);
Expand Down
17 changes: 2 additions & 15 deletions qucs/qucs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,20 +148,12 @@ QucsApp::QucsApp()
fillSimulatorsComboBox();
initToolBar();
initStatusBar();
viewToolBar->setChecked(true);
viewStatusBar->setChecked(true);
viewBrowseDock->setChecked(true);
slotViewOctaveDock(false);
slotUpdateRecentFiles();
initCursorMenu();
//Module::registerModules ();

fileToolbar->setVisible(QucsSettings.FileToolbar);
editToolbar->setVisible(QucsSettings.EditToolbar);
viewToolbar->setVisible(QucsSettings.ViewToolbar);
workToolbar->setVisible(QucsSettings.WorkToolbar);
simulateToolbar->setVisible(QucsSettings.SimulateToolbar);

// instance of small text search dialog
SearchDia = new SearchDialog(this);
TuningMode = false;
Expand Down Expand Up @@ -871,7 +863,7 @@ void QucsApp::slotSetCompView (int index)
if (Infos) {
/// \todo warning: expression result unused, can we rewrite this?
(void) *((*it)->info) (Name, File, false);
QString icon_path = misc::getIconPath(QString (File), qucs::compIcons);
QString icon_path = misc::getIconPath(QString (File));
QListWidgetItem *icon = new QListWidgetItem(Name);
if (QFileInfo::exists(icon_path)) {
icon->setIcon(QPixmap(icon_path));
Expand Down Expand Up @@ -933,7 +925,7 @@ void QucsApp::slotSearchComponent(const QString &searchText)

if((Name.indexOf(searchText, 0, Qt::CaseInsensitive)) != -1) {
//match
QString icon_path = misc::getIconPath(QString (File), qucs::compIcons);
QString icon_path = misc::getIconPath(QString (File));
QListWidgetItem *icon = new QListWidgetItem(Name);
if (QFileInfo::exists(icon_path)) {
icon->setIcon(QPixmap(icon_path));
Expand Down Expand Up @@ -2235,11 +2227,6 @@ void QucsApp::closeEvent(QCloseEvent* Event)
// Saves settings
void QucsApp::saveSettings()
{
QucsSettings.FileToolbar = fileToolbar->isVisible();
QucsSettings.EditToolbar = editToolbar->isVisible();
QucsSettings.ViewToolbar = viewToolbar->isVisible();
QucsSettings.WorkToolbar = workToolbar->isVisible();
QucsSettings.SimulateToolbar = simulateToolbar->isVisible();
saveApplSettings();
}

Expand Down
4 changes: 1 addition & 3 deletions qucs/qucs.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,6 @@ public slots:
void slotUpdateRedo(bool); // update redo available state

private slots:
void slotViewToolBar(bool toggle); // toggle the toolbar
void slotViewStatusBar(bool toggle); // toggle the statusbar
void slotViewBrowseDock(bool toggle); // toggle the dock window
void slotViewOctaveDock(bool); // toggle the dock window
void slotToggleOctave(bool);
Expand All @@ -316,7 +314,7 @@ private slots:
void initToolBar(); // creates the toolbars
void initStatusBar(); // setup the statusbar

QAction *helpAboutApp, *helpAboutQt, *viewToolBar, *viewStatusBar,
QAction *helpAboutApp, *helpAboutQt,
*viewBrowseDock, *viewOctaveDock;

// menus contain the items of their menubar
Expand Down
33 changes: 0 additions & 33 deletions qucs/qucs_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,19 +611,6 @@ void QucsApp::initActions()
//buildIFS = new QAction(tr("Build XSPICE IFS file from subcircuit"),this);
//connect(buildIFS,SIGNAL(triggered()),SLOT(slotBuildXSPICEIfs()));


viewToolBar = new QAction(tr("Tool&bar"), this);
viewToolBar->setCheckable(true);
viewToolBar->setStatusTip(tr("Enables/disables the toolbar"));
viewToolBar->setWhatsThis(tr("Toolbar\n\nEnables/disables the toolbar"));
connect(viewToolBar, SIGNAL(toggled(bool)), SLOT(slotViewToolBar(bool)));

viewStatusBar = new QAction(tr("&Statusbar"), this);
viewStatusBar->setCheckable(true);
viewStatusBar->setStatusTip(tr("Enables/disables the statusbar"));
viewStatusBar->setWhatsThis(tr("Statusbar\n\nEnables/disables the statusbar"));
connect(viewStatusBar, SIGNAL(toggled(bool)), SLOT(slotViewStatusBar(bool)));

viewBrowseDock = new QAction(tr("&Dock Window"), this);
viewBrowseDock->setCheckable(true);
viewBrowseDock->setStatusTip(tr("Enables/disables the browse dock window"));
Expand Down Expand Up @@ -808,8 +795,6 @@ void QucsApp::initMenuBar()
viewMenu->addAction(setDiagramLimits);
viewMenu->addSeparator();
//viewMenu->setCheckable(true);
viewMenu->addAction(viewToolBar);
viewMenu->addAction(viewStatusBar);
viewMenu->addAction(viewBrowseDock);
viewMenu->addAction(viewOctaveDock);

Expand Down Expand Up @@ -1041,24 +1026,6 @@ void QucsApp::slotUpdateRedo(bool isEnabled)
redo->setEnabled(isEnabled);
}

// ----------------------------------------------------------
// turn Toolbar on or off
void QucsApp::slotViewToolBar(bool toggle)
{
fileToolbar->setVisible(toggle);
editToolbar->setVisible(toggle);
viewToolbar->setVisible(toggle);
workToolbar->setVisible(toggle);
simulateToolbar->setVisible(toggle);
}

// ----------------------------------------------------------
// turn Statusbar on or off
void QucsApp::slotViewStatusBar(bool toggle)
{
statusBar()->setVisible(toggle);
}

// ----------------------------------------------------------
// turn Browse Dock Window on or off
void QucsApp::slotViewBrowseDock(bool toggle)
Expand Down
8 changes: 4 additions & 4 deletions qucs/settings.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <QApplication>
#include <QStandardPaths>

#include "main.h"
#include "settings.h"
Expand Down Expand Up @@ -44,13 +45,12 @@ void settingsManager::resetDefaults(const QString &group)
void settingsManager::initDefaults()
{
m_Defaults["DefaultSimulator"] = spicecompat::simNotSpecified;
m_Defaults["FirstRun"] = true;
m_Defaults["firstRun"] = true;
m_Defaults["font"] = QApplication::font();
m_Defaults["appFont"] = QApplication::font();
m_Defaults["LargeFontSize"] = static_cast<double>(16.0);
m_Defaults["maxUndo"] = 20;
m_Defaults["panelIconsTheme"] = qucs::autoIcons;
m_Defaults["compIconsTheme"] = qucs::autoIcons;
m_Defaults["QucsHomeDir"] = QDir::homePath() + QDir::toNativeSeparators("/QucsWorkspace");

#ifdef Q_OS_WIN
m_Defaults["NgspiceExecutable"] = "ngspice_con.exe";
Expand All @@ -63,7 +63,7 @@ void settingsManager::initDefaults()
#endif

m_Defaults["XyceParExecutable"] = "mpirun -np %p /usr/local/Xyce-Release-6.8.0-OPENMPI-OPENSOURCE/bin/Xyce";
m_Defaults["S4Q_workdir"] = "";
m_Defaults["S4Q_workdir"] = QStandardPaths::writableLocation(QStandardPaths::CacheLocation);
m_Defaults["Nprocs"] = 4;
m_Defaults["SpiceOpusExecutable"] = "spiceopus";
m_Defaults["SimParameters"] = "";
Expand Down

0 comments on commit 040dbbd

Please sign in to comment.