mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 19:14:51 +00:00
couple more fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5626 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
29e606295d
commit
5091380d6b
@ -59,18 +59,19 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
|
|||||||
form, SLOT(slotClose()));
|
form, SLOT(slotClose()));
|
||||||
connect(restorePB, SIGNAL(clicked()),
|
connect(restorePB, SIGNAL(clicked()),
|
||||||
form, SLOT(slotRestore()));
|
form, SLOT(slotRestore()));
|
||||||
|
|
||||||
prefsLV->setSorting(-1);
|
prefsLV->setSorting(-1);
|
||||||
|
|
||||||
// OK, Qt is REALLY broken. We have to hard
|
// OK, Qt is REALLY broken. We have to hard
|
||||||
// code the menu structure here.
|
// code the menu structure here.
|
||||||
|
|
||||||
QListViewItem * adv(new QListViewItem(prefsLV, _("Advanced settings")));
|
|
||||||
adv->setSelectable(false);
|
|
||||||
QListViewItem * lan(new QListViewItem(prefsLV, _("Language settings")));
|
|
||||||
lan->setSelectable(false);
|
|
||||||
QListViewItem * lnf(new QListViewItem(prefsLV, _("Look and feel")));
|
QListViewItem * lnf(new QListViewItem(prefsLV, _("Look and feel")));
|
||||||
lnf->setSelectable(false);
|
lnf->setSelectable(false);
|
||||||
|
lnf->setOpen(true);
|
||||||
|
QListViewItem * lan(new QListViewItem(prefsLV, lnf, _("Language settings")));
|
||||||
|
lan->setSelectable(false);
|
||||||
|
QListViewItem * adv(new QListViewItem(prefsLV, lan, _("Advanced settings")));
|
||||||
|
adv->setSelectable(false);
|
||||||
|
|
||||||
asciiModule = new QPrefAsciiModule(prefsWS);
|
asciiModule = new QPrefAsciiModule(prefsWS);
|
||||||
dateModule = new QPrefDateModule(prefsWS);
|
dateModule = new QPrefDateModule(prefsWS);
|
||||||
@ -103,28 +104,28 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
|
|||||||
prefsWS->addWidget(languageModule, 12);
|
prefsWS->addWidget(languageModule, 12);
|
||||||
prefsWS->addWidget(printerModule, 13);
|
prefsWS->addWidget(printerModule, 13);
|
||||||
prefsWS->addWidget(uiModule, 14);
|
prefsWS->addWidget(uiModule, 14);
|
||||||
|
|
||||||
QListViewItem * i;
|
QListViewItem * i;
|
||||||
|
|
||||||
// advanced settings
|
// advanced settings
|
||||||
|
|
||||||
i = new QListViewItem(adv, _("Converters"));
|
i = new QListViewItem(adv, _("Converters"));
|
||||||
pane_map_[i] = convertersModule;
|
pane_map_[i] = convertersModule;
|
||||||
i = new QListViewItem(adv, i, _("File formats"));
|
i = new QListViewItem(adv, i, _("File formats"));
|
||||||
pane_map_[i] = fileformatsModule;
|
pane_map_[i] = fileformatsModule;
|
||||||
// language settings
|
// language settings
|
||||||
|
|
||||||
i = new QListViewItem(lan, _("Language"));
|
i = new QListViewItem(lan, _("Language"));
|
||||||
pane_map_[i] = languageModule;
|
pane_map_[i] = languageModule;
|
||||||
i = new QListViewItem(lan, i, _("Spellchecker"));
|
i = new QListViewItem(lan, i, _("Spellchecker"));
|
||||||
pane_map_[i] = spellcheckerModule;
|
pane_map_[i] = spellcheckerModule;
|
||||||
|
|
||||||
// UI
|
// UI
|
||||||
|
|
||||||
i = new QListViewItem(lnf, _("User interface"));
|
i = new QListViewItem(lnf, _("User interface"));
|
||||||
pane_map_[i] = uiModule;
|
pane_map_[i] = uiModule;
|
||||||
prefsLV->setCurrentItem(i);
|
prefsLV->setCurrentItem(i);
|
||||||
|
|
||||||
i = new QListViewItem(lnf, i, _("Screen fonts"));
|
i = new QListViewItem(lnf, i, _("Screen fonts"));
|
||||||
pane_map_[i] = screenfontsModule;
|
pane_map_[i] = screenfontsModule;
|
||||||
i = new QListViewItem(lnf, i, _("Colors"));
|
i = new QListViewItem(lnf, i, _("Colors"));
|
||||||
@ -133,9 +134,9 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
|
|||||||
pane_map_[i] = displayModule;
|
pane_map_[i] = displayModule;
|
||||||
i = new QListViewItem(lnf, i, _("Miscellaneous")); // YUCK !
|
i = new QListViewItem(lnf, i, _("Miscellaneous")); // YUCK !
|
||||||
pane_map_[i] = lnfmiscModule;
|
pane_map_[i] = lnfmiscModule;
|
||||||
|
|
||||||
// rag bag of crap
|
// rag bag of crap
|
||||||
|
|
||||||
i = new QListViewItem(prefsLV, lan, _("Ascii"));
|
i = new QListViewItem(prefsLV, lan, _("Ascii"));
|
||||||
pane_map_[i] = asciiModule;
|
pane_map_[i] = asciiModule;
|
||||||
i = new QListViewItem(prefsLV, i, _("Date"));
|
i = new QListViewItem(prefsLV, i, _("Date"));
|
||||||
@ -148,8 +149,11 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
|
|||||||
pane_map_[i] = pathsModule;
|
pane_map_[i] = pathsModule;
|
||||||
i = new QListViewItem(prefsLV, i, _("Printer"));
|
i = new QListViewItem(prefsLV, i, _("Printer"));
|
||||||
pane_map_[i] = printerModule;
|
pane_map_[i] = printerModule;
|
||||||
|
|
||||||
prefsLV->setMinimumSize(prefsLV->sizeHint());
|
prefsLV->setMinimumSize(prefsLV->sizeHint());
|
||||||
|
|
||||||
|
// Qt sucks
|
||||||
|
resize(minimumSize());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,6 +17,13 @@
|
|||||||
<height>192</height>
|
<height>192</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
<property stdset="1">
|
||||||
|
<name>sizePolicy</name>
|
||||||
|
<sizepolicy>
|
||||||
|
<hsizetype>1</hsizetype>
|
||||||
|
<vsizetype>1</vsizetype>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
<property stdset="1">
|
<property stdset="1">
|
||||||
<name>caption</name>
|
<name>caption</name>
|
||||||
<string>Preferences</string>
|
<string>Preferences</string>
|
||||||
@ -131,42 +138,6 @@
|
|||||||
<name>spacing</name>
|
<name>spacing</name>
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<widget>
|
|
||||||
<class>QLabel</class>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>name</name>
|
|
||||||
<cstring>titleL</cstring>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>sizePolicy</name>
|
|
||||||
<sizepolicy>
|
|
||||||
<hsizetype>7</hsizetype>
|
|
||||||
<vsizetype>0</vsizetype>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>text</name>
|
|
||||||
<string>title here</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<widget>
|
|
||||||
<class>Line</class>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>name</name>
|
|
||||||
<cstring>Line1</cstring>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>sizePolicy</name>
|
|
||||||
<sizepolicy>
|
|
||||||
<hsizetype>1</hsizetype>
|
|
||||||
<vsizetype>0</vsizetype>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property stdset="1">
|
|
||||||
<name>orientation</name>
|
|
||||||
<enum>Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<widget>
|
<widget>
|
||||||
<class>QWidgetStack</class>
|
<class>QWidgetStack</class>
|
||||||
<property stdset="1">
|
<property stdset="1">
|
||||||
@ -188,15 +159,15 @@
|
|||||||
<column>
|
<column>
|
||||||
<property>
|
<property>
|
||||||
<name>text</name>
|
<name>text</name>
|
||||||
<string>Column 1</string>
|
<string>Preferences</string>
|
||||||
</property>
|
</property>
|
||||||
<property>
|
<property>
|
||||||
<name>clickable</name>
|
<name>clickable</name>
|
||||||
<bool>true</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property>
|
<property>
|
||||||
<name>resizeable</name>
|
<name>resizeable</name>
|
||||||
<bool>true</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</column>
|
||||||
<property stdset="1">
|
<property stdset="1">
|
||||||
@ -206,7 +177,7 @@
|
|||||||
<property stdset="1">
|
<property stdset="1">
|
||||||
<name>sizePolicy</name>
|
<name>sizePolicy</name>
|
||||||
<sizepolicy>
|
<sizepolicy>
|
||||||
<hsizetype>1</hsizetype>
|
<hsizetype>5</hsizetype>
|
||||||
<vsizetype>7</vsizetype>
|
<vsizetype>7</vsizetype>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
|
Loading…
Reference in New Issue
Block a user