mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-25 09:42:51 +00:00
5b83287abe
(document_): new flag, telling whether this is a document format and we want to show this format in the export and view menus (documentFormat): accessor for document_ * src/format.h: Add some documentation * src/frontends/qt3/QPrefsDialog.C (QPrefsDialog::QPrefsDialog): handle new documentCB checkbox (QPrefsDialog::switch_format): ditto (QPrefsDialog::updateFormatsButtons): ditto (QPrefsDialog::new_format): ditto (QPrefsDialog::modify_format): ditto * src/frontends/qt3/ui/QPrefFileformatsModule.ui: Add documentCB checkbox * src/frontends/qt4/QPrefsDialog.C (QPrefsDialog::QPrefsDialog): handle new documentCB checkbox (QPrefsDialog::switch_format): ditto (QPrefsDialog::updateFormatsButtons): ditto (QPrefsDialog::new_format): ditto (QPrefsDialog::modify_format): ditto * src/frontends/qt4/ui/QPrefFileformatsUi.ui: Add documentCB checkbox * src/frontends/xforms/FormPreferences.C (FormPreferences::Formats::build): handle new check_document checkbox (FormPreferences::Formats::input): ditto (FormPreferences::Formats::Add): ditto (FormPreferences::Formats::Browser): ditto * src/frontends/xforms/forms/form_preferences.fd: Add check_document checkbox * src/lyxrc.C (LyXRC::read): Remove compatibility code for 1.3 \format entries. Read the new format flags (but don't require them for 1.4 compatibility) (LyXRC::write): Write the new format flags * src/MenuBackend.C (expandFormats): Remove the hardcoded exception for image formats and use Format::isDocument() instead * lib/doc/Customization.lyx: Document auto viever/editor and the "document format" flag git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13887 a592a061-630c-0410-9148-cb99ea01b6c8
248 lines
6.5 KiB
XML
248 lines
6.5 KiB
XML
<ui version="4.0" >
|
|
<author></author>
|
|
<comment></comment>
|
|
<exportmacro></exportmacro>
|
|
<class>QPrefFileformatsUi</class>
|
|
<widget class="QWidget" name="QPrefFileformatsUi" >
|
|
<property name="geometry" >
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>351</width>
|
|
<height>340</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle" >
|
|
<string/>
|
|
</property>
|
|
<layout class="QGridLayout" >
|
|
<property name="margin" >
|
|
<number>9</number>
|
|
</property>
|
|
<property name="spacing" >
|
|
<number>6</number>
|
|
</property>
|
|
<item row="1" column="4" >
|
|
<spacer>
|
|
<property name="orientation" >
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" >
|
|
<size>
|
|
<width>91</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item row="2" column="1" >
|
|
<spacer>
|
|
<property name="orientation" >
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeType" >
|
|
<enum>QSizePolicy::MinimumExpanding</enum>
|
|
</property>
|
|
<property name="sizeHint" >
|
|
<size>
|
|
<width>20</width>
|
|
<height>31</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item row="2" column="2" >
|
|
<widget class="QPushButton" name="formatNewPB" >
|
|
<property name="text" >
|
|
<string>&Add</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="3" >
|
|
<widget class="QPushButton" name="formatModifyPB" >
|
|
<property name="text" >
|
|
<string>&Modify</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1" colspan="3" >
|
|
<spacer>
|
|
<property name="orientation" >
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeType" >
|
|
<enum>QSizePolicy::Expanding</enum>
|
|
</property>
|
|
<property name="sizeHint" >
|
|
<size>
|
|
<width>129</width>
|
|
<height>31</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item row="1" column="1" colspan="3" >
|
|
<layout class="QGridLayout" >
|
|
<property name="margin" >
|
|
<number>0</number>
|
|
</property>
|
|
<property name="spacing" >
|
|
<number>6</number>
|
|
</property>
|
|
<item row="4" column="1" >
|
|
<widget class="QLineEdit" name="viewerED" />
|
|
</item>
|
|
<item row="5" column="1" >
|
|
<widget class="QLineEdit" name="editorED" />
|
|
</item>
|
|
<item row="2" column="1" >
|
|
<widget class="QLineEdit" name="shortcutED" />
|
|
</item>
|
|
<item row="1" column="0" >
|
|
<widget class="QLabel" name="guiNameLA" >
|
|
<property name="text" >
|
|
<string>&GUI name:</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>guiNameED</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="0" >
|
|
<widget class="QLabel" name="formatLA" >
|
|
<property name="text" >
|
|
<string>F&ormat:</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>formatED</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1" >
|
|
<widget class="QLineEdit" name="guiNameED" />
|
|
</item>
|
|
<item row="4" column="0" >
|
|
<widget class="QLabel" name="viewerLA" >
|
|
<property name="text" >
|
|
<string>&Viewer:</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>viewerED</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="0" >
|
|
<widget class="QLabel" name="editorLA" >
|
|
<property name="text" >
|
|
<string>Ed&itor:</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>editorED</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1" >
|
|
<widget class="QLineEdit" name="formatED" />
|
|
</item>
|
|
<item row="2" column="0" >
|
|
<widget class="QLabel" name="shortcutLA" >
|
|
<property name="text" >
|
|
<string>S&hortcut:</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>shortcutED</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0" >
|
|
<widget class="QLabel" name="extensionLA" >
|
|
<property name="text" >
|
|
<string>E&xtension:</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>extensionED</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1" >
|
|
<widget class="QLineEdit" name="extensionED" />
|
|
</item>
|
|
<item row="6" column="0" >
|
|
<widget class="QCheckBox" name="documentCB" >
|
|
<property name="enabled" >
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="toolTip" >
|
|
<string>Tell whether this format is a document format. A document can not be exported to or viewed in a non-document format.</string>
|
|
</property>
|
|
<property name="text" >
|
|
<string>&Document format</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="4" column="0" >
|
|
<layout class="QHBoxLayout" >
|
|
<property name="margin" >
|
|
<number>0</number>
|
|
</property>
|
|
<property name="spacing" >
|
|
<number>6</number>
|
|
</property>
|
|
<item>
|
|
<spacer>
|
|
<property name="orientation" >
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeType" >
|
|
<enum>QSizePolicy::Preferred</enum>
|
|
</property>
|
|
<property name="sizeHint" >
|
|
<size>
|
|
<width>20</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="formatRemovePB" >
|
|
<property name="text" >
|
|
<string>&Remove</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item rowspan="3" row="1" column="0" >
|
|
<widget class="QListWidget" name="formatsLW" />
|
|
</item>
|
|
<item row="0" column="0" >
|
|
<widget class="QLabel" name="formatsLA" >
|
|
<property name="text" >
|
|
<string>&File formats</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>formatsLW</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
|
|
<tabstops>
|
|
<tabstop>formatNewPB</tabstop>
|
|
<tabstop>formatRemovePB</tabstop>
|
|
<tabstop>formatED</tabstop>
|
|
<tabstop>guiNameED</tabstop>
|
|
<tabstop>shortcutED</tabstop>
|
|
<tabstop>extensionED</tabstop>
|
|
<tabstop>viewerED</tabstop>
|
|
<tabstop>editorED</tabstop>
|
|
<tabstop>documentCB</tabstop>
|
|
</tabstops>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|