QNomenclUi.ui
QNoteUi.ui
QParagraphUi.ui
- QPrefAsciiUi.ui
+ QPrefPlaintextUi.ui
QPrefColorsUi.ui
QPrefConvertersUi.ui
QPrefCopiersUi.ui
QNomenclUi.ui \
QNoteUi.ui \
QParagraphUi.ui \
- QPrefAsciiUi.ui \
QPrefColorsUi.ui \
QPrefConvertersUi.ui \
QPrefCopiersUi.ui \
QPrefLanguageUi.ui \
QPrefLatexUi.ui \
QPrefPathsUi.ui \
+ QPrefPlaintextUi.ui \
QPrefPrinterUi.ui \
QPrefScreenFontsUi.ui \
QPrefsUi.ui \
} // end namespace anon
-PrefAscii::PrefAscii(QWidget * parent)
+PrefPlaintext::PrefPlaintext(QWidget * parent)
: PrefModule(_(Outputs), _("Plain text"), 0, parent)
{
setupUi(this);
}
-void PrefAscii::apply(LyXRC & rc) const
+void PrefPlaintext::apply(LyXRC & rc) const
{
rc.plaintext_linelen = plaintextLinelengthSB->value();
rc.plaintext_roff_command = fromqstr(plaintextRoffED->text());
}
-void PrefAscii::update(LyXRC const & rc)
+void PrefPlaintext::update(LyXRC const & rc)
{
plaintextLinelengthSB->setValue(rc.plaintext_linelen);
plaintextRoffED->setText(toqstr(rc.plaintext_roff_command));
connect(restorePB, SIGNAL(clicked()),
form, SLOT(slotRestore()));
- add(new PrefAscii);
+ add(new PrefPlaintext);
add(new PrefDate);
add(new PrefKeyboard(form_));
add(new PrefLatex(form_));
#include <QDialog>
#include <QCloseEvent>
-#include "ui/QPrefAsciiUi.h"
+#include "ui/QPrefPlaintextUi.h"
#include "ui/QPrefDateUi.h"
#include "ui/QPrefKeyboardUi.h"
#include "ui/QPrefLatexUi.h"
};
-class PrefAscii : public PrefModule, public Ui::QPrefAsciiUi
+class PrefPlaintext : public PrefModule, public Ui::QPrefPlaintextUi
{
Q_OBJECT
public:
- PrefAscii(QWidget * parent = 0);
- ~PrefAscii() {}
+ PrefPlaintext(QWidget * parent = 0);
+ ~PrefPlaintext() {}
virtual void apply(LyXRC & rc) const;
virtual void update(LyXRC const & rc);
+++ /dev/null
-<ui version="4.0" >
- <author></author>
- <comment></comment>
- <exportmacro></exportmacro>
- <class>QPrefAsciiUi</class>
- <widget class="QWidget" name="QPrefAsciiUi" >
- <property name="geometry" >
- <rect>
- <x>0</x>
- <y>0</y>
- <width>340</width>
- <height>99</height>
- </rect>
- </property>
- <property name="windowTitle" >
- <string/>
- </property>
- <layout class="QVBoxLayout" >
- <property name="margin" >
- <number>11</number>
- </property>
- <property name="spacing" >
- <number>6</number>
- </property>
- <item>
- <layout class="QGridLayout" >
- <property name="margin" >
- <number>0</number>
- </property>
- <property name="spacing" >
- <number>6</number>
- </property>
- <item row="1" column="0" >
- <widget class="QLabel" name="plaintextRoffLA" >
- <property name="text" >
- <string>&roff command:</string>
- </property>
- <property name="buddy" >
- <cstring>plaintextRoffED</cstring>
- </property>
- </widget>
- </item>
- <item row="0" column="1" >
- <layout class="QHBoxLayout" >
- <property name="margin" >
- <number>0</number>
- </property>
- <property name="spacing" >
- <number>6</number>
- </property>
- <item>
- <widget class="QSpinBox" name="plaintextLinelengthSB" >
- <property name="toolTip" >
- <string>Max. line length of exported plain text/LaTeX/SGML files</string>
- </property>
- <property name="maximum" >
- <number>120</number>
- </property>
- </widget>
- </item>
- <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>
- </layout>
- </item>
- <item row="0" column="0" >
- <widget class="QLabel" name="plaintextLinelengthLA" >
- <property name="text" >
- <string>Output &line length:</string>
- </property>
- <property name="buddy" >
- <cstring>plaintextLinelengthSB</cstring>
- </property>
- </widget>
- </item>
- <item row="1" column="1" >
- <widget class="QLineEdit" name="plaintextRoffED" >
- <property name="toolTip" >
- <string>External app for formating tables in plain text output</string>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item>
- <spacer>
- <property name="orientation" >
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeType" >
- <enum>QSizePolicy::Expanding</enum>
- </property>
- <property name="sizeHint" >
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </widget>
- <pixmapfunction></pixmapfunction>
- <includes>
- <include location="local" >qt_helpers.h</include>
- </includes>
- <resources/>
- <connections/>
-</ui>
--- /dev/null
+<ui version="4.0" >
+ <author></author>
+ <comment></comment>
+ <exportmacro></exportmacro>
+ <class>QPrefPlaintextUi</class>
+ <widget class="QWidget" name="QPrefPlaintextUi" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>340</width>
+ <height>99</height>
+ </rect>
+ </property>
+ <property name="windowTitle" >
+ <string/>
+ </property>
+ <layout class="QVBoxLayout" >
+ <property name="margin" >
+ <number>11</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item>
+ <layout class="QGridLayout" >
+ <property name="margin" >
+ <number>0</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item row="1" column="0" >
+ <widget class="QLabel" name="plaintextRoffLA" >
+ <property name="text" >
+ <string>&roff command:</string>
+ </property>
+ <property name="buddy" >
+ <cstring>plaintextRoffED</cstring>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1" >
+ <layout class="QHBoxLayout" >
+ <property name="margin" >
+ <number>0</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item>
+ <widget class="QSpinBox" name="plaintextLinelengthSB" >
+ <property name="toolTip" >
+ <string>Max. line length of exported plain text/LaTeX/SGML files. If set to 0, paragraphs are output in a single line; if the line length is > 0, paragraphs are separated by a blank line.</string>
+ </property>
+ <property name="maximum" >
+ <number>120</number>
+ </property>
+ </widget>
+ </item>
+ <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>
+ </layout>
+ </item>
+ <item row="0" column="0" >
+ <widget class="QLabel" name="plaintextLinelengthLA" >
+ <property name="text" >
+ <string>Output &line length:</string>
+ </property>
+ <property name="buddy" >
+ <cstring>plaintextLinelengthSB</cstring>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1" >
+ <widget class="QLineEdit" name="plaintextRoffED" >
+ <property name="toolTip" >
+ <string>External app for formating tables in plain text output</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <spacer>
+ <property name="orientation" >
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeType" >
+ <enum>QSizePolicy::Expanding</enum>
+ </property>
+ <property name="sizeHint" >
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </widget>
+ <pixmapfunction></pixmapfunction>
+ <includes>
+ <include location="local" >qt_helpers.h</include>
+ </includes>
+ <resources/>
+ <connections/>
+</ui>
uic QFloatUi.ui -o QFloatUi.h
uic QIndexUi.ui -o QIndexUi.h
uic QMathMatrixUi.ui -o QMathMatrixUi.h
-uic QPrefAsciiUi.ui -o QPrefAsciiUi.h
+uic QPrefPlaintextUi.ui -o QPrefPlaintextUi.h
uic QPrefCopiersUi.ui -o QPrefCopiersUi.h
uic QPrefDisplayUi.ui -o QPrefDisplayUi.h
uic QPrefKeyboardUi.ui -o QPrefKeyboardUi.h