this, SLOT(change_adaptor()));
connect(browsePB, SIGNAL(clicked()),
this, SLOT(browseClicked()));
- connect(editPB, SIGNAL(clicked()),
- this, SLOT(editClicked()));
connect(externalCO, SIGNAL(activated(QString)),
this, SLOT(templateChanged()));
connect(extraED, SIGNAL(textChanged(QString)),
bc().addReadOnly(fileED);
bc().addReadOnly(browsePB);
- bc().addReadOnly(editPB);
bc().addReadOnly(externalCO);
bc().addReadOnly(draftCB);
bc().addReadOnly(displayscaleED);
}
-void GuiExternal::editClicked()
-{
- editExternal();
-}
-
-
void GuiExternal::extraChanged(const QString & text)
{
extra_[extraFormatCO->currentText()] = text;
}
-void GuiExternal::editExternal()
-{
- applyView();
- string const lfun = InsetExternal::params2string(params_, buffer());
- dispatch(FuncRequest(LFUN_INSET_EDIT, lfun));
-}
-
-
static QStringList templateFilters(QString const & template_name)
{
/// Determine the template file extension
<x>0</x>
<y>0</y>
<width>390</width>
- <height>367</height>
+ <height>346</height>
</rect>
</property>
<property name="windowTitle" >
<number>6</number>
</property>
<item row="1" column="0" >
- <spacer>
- <property name="orientation" >
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeType" >
- <enum>QSizePolicy::Expanding</enum>
+ <layout class="QHBoxLayout" >
+ <property name="margin" >
+ <number>0</number>
</property>
- <property name="sizeHint" >
- <size>
- <width>20</width>
- <height>20</height>
- </size>
+ <property name="spacing" >
+ <number>6</number>
</property>
- </spacer>
+ <item>
+ <spacer>
+ <property name="orientation" >
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType" >
+ <enum>QSizePolicy::Expanding</enum>
+ </property>
+ <property name="sizeHint" >
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QPushButton" name="okPB" >
+ <property name="text" >
+ <string>&OK</string>
+ </property>
+ <property name="default" >
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="applyPB" >
+ <property name="text" >
+ <string>&Apply</string>
+ </property>
+ <property name="default" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="closePB" >
+ <property name="text" >
+ <string>&Close</string>
+ </property>
+ <property name="autoDefault" >
+ <bool>false</bool>
+ </property>
+ <property name="default" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
</item>
- <item row="0" column="0" colspan="4" >
+ <item row="0" column="0" >
<widget class="QTabWidget" name="tab" >
<property name="currentIndex" >
- <number>0</number>
+ <number>2</number>
</property>
<widget class="QWidget" name="filetab" >
<attribute name="title" >
<property name="spacing" >
<number>6</number>
</property>
- <item row="3" column="0" colspan="3" >
- <widget class="QCheckBox" name="draftCB" >
- <property name="text" >
- <string>&Draft</string>
- </property>
- </widget>
- </item>
- <item row="1" column="2" >
- <widget class="QPushButton" name="editPB" >
- <property name="toolTip" >
- <string>Edit the file externally</string>
- </property>
- <property name="text" >
- <string>&Edit File...</string>
- </property>
- </widget>
- </item>
- <item row="0" column="2" >
- <widget class="QPushButton" name="browsePB" >
- <property name="toolTip" >
- <string>Select a file</string>
- </property>
- <property name="text" >
- <string>&Browse...</string>
- </property>
- </widget>
- </item>
- <item row="0" column="0" >
- <widget class="QLabel" name="fileLA" >
- <property name="toolTip" >
- <string>Filename</string>
- </property>
- <property name="text" >
- <string>&File:</string>
- </property>
- <property name="buddy" >
- <cstring>fileED</cstring>
- </property>
- </widget>
- </item>
- <item row="0" column="1" >
- <widget class="QLineEdit" name="fileED" >
- <property name="toolTip" >
- <string>Filename</string>
- </property>
- </widget>
- </item>
- <item row="2" column="0" colspan="3" >
+ <item row="1" column="0" colspan="3" >
<widget class="QGroupBox" name="GroupBox3" >
<property name="title" >
<string>Template</string>
</layout>
</widget>
</item>
+ <item row="0" column="1" >
+ <widget class="QLineEdit" name="fileED" >
+ <property name="toolTip" >
+ <string>Filename</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="0" >
+ <widget class="QLabel" name="fileLA" >
+ <property name="toolTip" >
+ <string>Filename</string>
+ </property>
+ <property name="text" >
+ <string>&File:</string>
+ </property>
+ <property name="buddy" >
+ <cstring>fileED</cstring>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="2" >
+ <widget class="QPushButton" name="browsePB" >
+ <property name="toolTip" >
+ <string>Select a file</string>
+ </property>
+ <property name="text" >
+ <string>&Browse...</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0" colspan="3" >
+ <widget class="QCheckBox" name="draftCB" >
+ <property name="text" >
+ <string>&Draft</string>
+ </property>
+ </widget>
+ </item>
</layout>
</widget>
<widget class="QWidget" name="lyxviewtab" >
</widget>
</widget>
</item>
- <item row="1" column="1" >
- <widget class="QPushButton" name="okPB" >
- <property name="text" >
- <string>&OK</string>
- </property>
- <property name="default" >
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item row="1" column="2" >
- <widget class="QPushButton" name="applyPB" >
- <property name="text" >
- <string>&Apply</string>
- </property>
- <property name="default" >
- <bool>false</bool>
- </property>
- </widget>
- </item>
- <item row="1" column="3" >
- <widget class="QPushButton" name="closePB" >
- <property name="text" >
- <string>&Close</string>
- </property>
- <property name="autoDefault" >
- <bool>false</bool>
- </property>
- <property name="default" >
- <bool>false</bool>
- </property>
- </widget>
- </item>
</layout>
</widget>
<customwidgets>
<tabstop>tab</tabstop>
<tabstop>fileED</tabstop>
<tabstop>browsePB</tabstop>
- <tabstop>editPB</tabstop>
<tabstop>externalCO</tabstop>
<tabstop>externalTB</tabstop>
<tabstop>draftCB</tabstop>