* src/frontends/qt4/GuiDocument.cpp:

* src/frontends/qt4/ui/LaTeXUi.ui:
	- hide the "browse local layout" button as discussed on
	  http://bugzilla.lyx.org/show_bug.cgi?id=4812
	  because the local layout feature can result in dataloss.

	  Whether the feature itself should be removed for 1.6.0 has
	  to be discussed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25452 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-07-05 08:54:48 +00:00
parent 58de813a30
commit 2c5d1e9ebe
2 changed files with 34 additions and 32 deletions

View File

@ -899,6 +899,8 @@ GuiDocument::GuiDocument(GuiView & lv)
latexModule->psdriverCO->addItem(enc);
}
// latex classes
// FIXME hide local layout button due to bug 4812.
latexModule->layoutPB->hide();
latexModule->classCO->setModel(&classes_model_);
LayoutFileList const & bcl = LayoutFileList::get();
vector<LayoutFileIndex> classList = bcl.classList();

View File

@ -160,19 +160,6 @@
</layout>
</widget>
</item>
<item row="2" column="2" colspan="2" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>261</width>
<height>22</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="1" >
<widget class="QComboBox" name="psdriverCO" >
<property name="duplicatesEnabled" >
@ -203,24 +190,6 @@
</property>
</widget>
</item>
<item row="0" column="3" >
<widget class="QPushButton" name="layoutPB" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip" >
<string>Click to select a local document class definition file</string>
</property>
<property name="text" >
<string>&amp;Local Layout...</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="classL" >
<property name="text" >
@ -231,7 +200,7 @@
</property>
</widget>
</item>
<item row="0" column="1" colspan="2" >
<item row="0" column="1" colspan="3" >
<widget class="QComboBox" name="classCO" >
<property name="maxVisibleItems" >
<number>20</number>
@ -251,6 +220,37 @@
</property>
</spacer>
</item>
<item row="2" column="2" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>31</width>
<height>23</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="3" >
<widget class="QPushButton" name="layoutPB" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip" >
<string>Click to select a local document class definition file</string>
</property>
<property name="text" >
<string>&amp;Local Layout...</string>
</property>
</widget>
</item>
</layout>
</widget>
<tabstops>