-<ui version="4.0" >
- <author></author>
- <comment></comment>
- <exportmacro></exportmacro>
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
- <widget class="QDialog" name="ERTUi" >
- <property name="geometry" >
+ <widget class="QDialog" name="ERTUi">
+ <property name="geometry">
<height>135</height>
</rect>
</property>
<height>135</height>
</rect>
</property>
- <property name="windowTitle" >
+ <property name="windowTitle">
- <property name="sizeGripEnabled" >
+ <property name="sizeGripEnabled">
<bool>true</bool>
</property>
<bool>true</bool>
</property>
- <layout class="QVBoxLayout" >
- <property name="margin" >
- <number>11</number>
- </property>
- <property name="spacing" >
+ <layout class="QVBoxLayout">
+ <property name="spacing">
<number>6</number>
</property>
<number>6</number>
</property>
+ <property name="margin">
+ <number>11</number>
+ </property>
- <widget class="QGroupBox" name="ertBG" >
- <property name="title" >
+ <widget class="QGroupBox" name="ertBG">
+ <property name="title">
<string>Display</string>
</property>
<string>Display</string>
</property>
- <layout class="QVBoxLayout" >
- <property name="margin" >
- <number>11</number>
- </property>
- <property name="spacing" >
+ <layout class="QVBoxLayout">
+ <property name="spacing">
<number>6</number>
</property>
<number>6</number>
</property>
- <item>
- <widget class="QRadioButton" name="collapsedRB" >
- <property name="toolTip" >
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <item>
+ <widget class="QRadioButton" name="collapsedRB">
+ <property name="toolTip">
<string>Show ERT button only</string>
</property>
<string>Show ERT button only</string>
</property>
- <property name="text" >
<string>&Collapsed</string>
</property>
</widget>
</item>
<item>
<string>&Collapsed</string>
</property>
</widget>
</item>
<item>
- <widget class="QRadioButton" name="openRB" >
- <property name="toolTip" >
+ <widget class="QRadioButton" name="openRB">
+ <property name="toolTip">
<string>Show ERT contents</string>
</property>
<string>Show ERT contents</string>
</property>
- <property name="text" >
<string>O&pen</string>
</property>
</widget>
<string>O&pen</string>
</property>
</widget>
- <layout class="QHBoxLayout" >
- <property name="margin" >
- <number>0</number>
- </property>
- <property name="spacing" >
+ <layout class="QHBoxLayout">
+ <property name="spacing">
<number>6</number>
</property>
<number>6</number>
</property>
+ <property name="margin">
+ <number>0</number>
+ </property>
- <property name="orientation" >
+ <property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<enum>Qt::Horizontal</enum>
</property>
- <property name="sizeType" >
+ <property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<enum>QSizePolicy::Expanding</enum>
</property>
- <property name="sizeHint" >
+ <property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
<size>
<width>20</width>
<height>20</height>
- <widget class="QPushButton" name="okPB" >
- <property name="text" >
- <string>&OK</string>
+ <widget class="QPushButton" name="newPB">
+ <property name="toolTip">
+ <string/>
+ </property>
+ <property name="text">
+ <string>&New</string>
+ </property>
+ <property name="autoDefault">
+ <bool>false</bool>
- <property name="default" >
+ <property name="default">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<bool>false</bool>
</property>
</widget>
</item>
<item>
- <widget class="QPushButton" name="closePB" >
- <property name="text" >
+ <widget class="QPushButton" name="closePB">
+ <property name="text">
<string>Close</string>
</property>
<string>Close</string>
</property>
- <property name="default" >
+ <property name="default">
<bool>true</bool>
</property>
</widget>
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
- <pixmapfunction></pixmapfunction>
- <include location="local" >qt_i18n.h</include>
+ <include location="local">qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</includes>
<resources/>
<connections/>
-InsetBox::~InsetBox()
-{
- hideDialogs("box", this);
-}
-
-
docstring InsetBox::name() const
{
// FIXME: UNICODE
docstring InsetBox::name() const
{
// FIXME: UNICODE
bool InsetBox::showInsetDialog(BufferView * bv) const
{
bool InsetBox::showInsetDialog(BufferView * bv) const
{
- bv->showDialog("box", params2string(params_),
- const_cast<InsetBox *>(this));
///
InsetBox(Buffer *, std::string const &);
///
///
InsetBox(Buffer *, std::string const &);
///
static std::string params2string(InsetBoxParams const &);
///
static void string2params(std::string const &, InsetBoxParams &);
static std::string params2string(InsetBoxParams const &);
///
static void string2params(std::string const &, InsetBoxParams &);
-InsetERT::~InsetERT()
-{
- hideDialogs("ert", this);
-}
-
-
void InsetERT::write(ostream & os) const
{
os << "ERT" << "\n";
void InsetERT::write(ostream & os) const
{
os << "ERT" << "\n";
bool InsetERT::showInsetDialog(BufferView * bv) const
{
bool InsetERT::showInsetDialog(BufferView * bv) const
{
- bv->showDialog("ert", params2string(status(*bv)),
- const_cast<InsetERT *>(this));
///
InsetERT(Buffer *, CollapseStatus status = Open);
///
///
InsetERT(Buffer *, CollapseStatus status = Open);
///
static CollapseStatus string2params(std::string const &);
///
static std::string params2string(CollapseStatus);
static CollapseStatus string2params(std::string const &);
///
static std::string params2string(CollapseStatus);