fix qprefs ui (bug 1829)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9816 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2005-04-15 08:56:46 +00:00
parent aa17555cde
commit e54f1bea17
6 changed files with 701 additions and 484 deletions

View File

@ -1,3 +1,10 @@
2005-04-15 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* ui/QPrefsConvertersModule.ui:
* ui/QPrefsCopiersModule.ui:
* ui/QPrefsFileformatsModule.ui:
* QPrefsDialog.[Ch]: more intuitive ui (cf. bug 1829)
2005-04-14 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* ui/NumberingModuleBase.ui: Remove numbering items ...

View File

@ -179,6 +179,12 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
connect(fileformatsModule->formatRemovePB, SIGNAL(clicked()), this, SLOT(remove_format()));
connect(fileformatsModule->formatModifyPB, SIGNAL(clicked()), this, SLOT(modify_format()));
connect(fileformatsModule->formatsLB, SIGNAL(highlighted(int)), this, SLOT(switch_format(int)));
connect(fileformatsModule->formatED, SIGNAL(textChanged(const QString&)), this, SLOT(fileformat_changed()));
connect(fileformatsModule->guiNameED, SIGNAL(textChanged(const QString&)), this, SLOT(fileformat_changed()));
connect(fileformatsModule->shortcutED, SIGNAL(textChanged(const QString&)), this, SLOT(fileformat_changed()));
connect(fileformatsModule->extensionED, SIGNAL(textChanged(const QString&)), this, SLOT(fileformat_changed()));
connect(fileformatsModule->viewerED, SIGNAL(textChanged(const QString&)), this, SLOT(fileformat_changed()));
connect(fileformatsModule->editorED, SIGNAL(textChanged(const QString&)), this, SLOT(fileformat_changed()));
connect(convertersModule->converterNewPB, SIGNAL(clicked()), this, SLOT(new_converter()));
connect(convertersModule->converterRemovePB, SIGNAL(clicked()), this, SLOT(remove_converter()));
@ -204,6 +210,8 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
connect(copiersModule->copierNewPB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
connect(copiersModule->copierRemovePB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
connect(copiersModule->copierModifyPB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
connect(copiersModule->copierFormatCO, SIGNAL(activated(const QString&)), this, SLOT(copiers_changed()));
connect(copiersModule->copierED, SIGNAL(textChanged(const QString&)), this, SLOT(copiers_changed()));
connect(fileformatsModule->formatNewPB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
connect(fileformatsModule->formatRemovePB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
@ -337,6 +345,10 @@ void QPrefsDialog::updateConverters()
{
QPrefConvertersModule * convertmod(convertersModule);
// save current selection
QString current = convertmod->converterFromCO->currentText()
+ " -> " + convertmod->converterToCO->currentText();
convertmod->converterFromCO->clear();
convertmod->converterToCO->clear();
@ -357,6 +369,12 @@ void QPrefsDialog::updateConverters()
convertmod->convertersLB->insertItem(toqstr(name));
}
// restore selection
if (!current.isEmpty()) {
QListBoxItem * item = convertmod->convertersLB->findItem(current);
convertmod->convertersLB->setCurrentItem(item);
}
// select first element if restoring failed
if (convertmod->convertersLB->currentItem() == -1)
convertmod->convertersLB->setCurrentItem(0);
@ -455,6 +473,8 @@ void QPrefsDialog::remove_converter()
void QPrefsDialog::updateCopiers()
{
// The choice widget
// save current selection
QString current = copiersModule->copierFormatCO->currentText();
copiersModule->copierFormatCO->clear();
for (Formats::const_iterator it = form_->formats().begin(),
@ -478,6 +498,12 @@ void QPrefsDialog::updateCopiers()
copiersModule->AllCopiersLB->insertItem(toqstr(pretty));
}
// restore selection
if (!current.isEmpty()) {
QListBoxItem * item = copiersModule->AllCopiersLB->findItem(current);
copiersModule->AllCopiersLB->setCurrentItem(item);
}
// select first element if restoring failed
if (copiersModule->AllCopiersLB->currentItem() == -1)
copiersModule->AllCopiersLB->setCurrentItem(0);
}
@ -540,6 +566,7 @@ void QPrefsDialog::switch_copierLB(int nr)
break;
}
}
updateCopierButtons();
}
@ -582,6 +609,36 @@ void QPrefsDialog::switch_copierCO(int nr)
}
void QPrefsDialog::copiers_changed()
{
updateCopierButtons();
}
void QPrefsDialog::updateCopierButtons()
{
QString selected = copiersModule->copierFormatCO->currentText();
bool known = false;
for (unsigned int i = 0; i != copiersModule->AllCopiersLB->count(); i++) {
if (copiersModule->AllCopiersLB->text(i) == selected)
known = true;
}
bool const valid = !copiersModule->copierED->text().isEmpty();
Format const * fmt = getFormat(fromqstr(selected));
string const old_command = form_->movers().command(fmt->name());
string const new_command(fromqstr(copiersModule->copierED->text()));
bool modified = (old_command != new_command);
copiersModule->copierModifyPB->setEnabled(valid && known && modified);
copiersModule->copierNewPB->setEnabled(valid && !known);
copiersModule->copierRemovePB->setEnabled(known);
}
void QPrefsDialog::new_copier()
{
std::string const combo_text =
@ -599,6 +656,8 @@ void QPrefsDialog::new_copier()
updateCopiers();
int const last = copiersModule->AllCopiersLB->count() - 1;
copiersModule->AllCopiersLB->setCurrentItem(last);
updateCopierButtons();
}
@ -614,6 +673,7 @@ void QPrefsDialog::modify_copier()
form_->movers().set(fmt->name(), command);
updateCopiers();
updateCopierButtons();
}
@ -629,6 +689,7 @@ void QPrefsDialog::remove_copier()
form_->movers().set(fmt_name, string());
updateCopiers();
updateCopierButtons();
}
@ -636,6 +697,9 @@ void QPrefsDialog::updateFormats()
{
QPrefFileformatsModule * formatmod(fileformatsModule);
// save current selection
QString current = formatmod->guiNameED->text();
formatmod->formatsLB->clear();
Formats::const_iterator cit = form_->formats().begin();
@ -644,6 +708,12 @@ void QPrefsDialog::updateFormats()
formatmod->formatsLB->insertItem(toqstr(cit->prettyname()));
}
// restore selection
if (!current.isEmpty()) {
QListBoxItem * item = formatmod->formatsLB->findItem(current);
formatmod->formatsLB->setCurrentItem(item);
}
// select first element if restoring failed
if (formatmod->formatsLB->currentItem() == -1)
formatmod->formatsLB->setCurrentItem(0);
}
@ -660,17 +730,80 @@ void QPrefsDialog::switch_format(int nr)
fileformatsModule->editorED->setText(toqstr(f.editor()));
fileformatsModule->formatRemovePB->setEnabled(
!form_->converters().formatIsUsed(f.name()));
updateFormatsButtons();
}
void QPrefsDialog::fileformat_changed()
{
updateFormatsButtons();
}
void QPrefsDialog::updateFormatsButtons()
{
QString const format = fileformatsModule->formatED->text();
QString const gui_name = fileformatsModule->guiNameED->text();
int const sel = form_->formats().getNumber(fromqstr(format));
bool gui_name_known = false;
int where = sel;
for (unsigned int i = 0; i != fileformatsModule->formatsLB->count(); i++) {
if (fileformatsModule->formatsLB->text(i) == gui_name) {
gui_name_known = true;
where = i;
}
}
// assure that a gui name cannot be chosen twice
bool const known_otherwise = gui_name_known && (where != sel);
bool const known = !(sel < 0);
bool const valid = (!fileformatsModule->formatED->text().isEmpty()
&& !fileformatsModule->guiNameED->text().isEmpty());
Format const & f(form_->formats().get(
fileformatsModule->formatsLB->currentItem()));
string const old_pretty(f.prettyname());
string const old_shortcut(f.shortcut());
string const old_extension(f.extension());
string const old_viewer(f.viewer());
string const old_editor(f.editor());
string const new_pretty(fromqstr(gui_name));
string const new_shortcut(fromqstr(fileformatsModule->shortcutED->text()));
string const new_extension(fromqstr(fileformatsModule->extensionED->text()));
string const new_viewer(fromqstr(fileformatsModule->viewerED->text()));
string const new_editor(fromqstr(fileformatsModule->editorED->text()));
bool modified = ((old_pretty != new_pretty) || (old_shortcut != new_shortcut)
|| (old_extension != new_extension) || (old_viewer != new_viewer)
|| (old_editor != new_editor));
fileformatsModule->formatModifyPB->setEnabled(
valid && known && modified && !known_otherwise);
fileformatsModule->formatNewPB->setEnabled(valid && !known && !gui_name_known);
fileformatsModule->formatRemovePB->setEnabled(known);
}
void QPrefsDialog::new_format()
{
form_->formats().add(_("New"));
string const name = fromqstr(fileformatsModule->formatED->text());
string const prettyname = fromqstr(fileformatsModule->guiNameED->text());
string const extension = fromqstr(fileformatsModule->extensionED->text());
string const shortcut = fromqstr(fileformatsModule->shortcutED->text());
string const viewer = fromqstr(fileformatsModule->viewerED->text());
string const editor = fromqstr(fileformatsModule->editorED->text());
form_->formats().add(name, extension, prettyname, shortcut, viewer, editor);
form_->formats().sort();
updateFormats();
fileformatsModule->formatsLB->setCurrentItem(form_->formats().getNumber(_("New")));
fileformatsModule->formatsLB->setCurrentItem(form_->formats().getNumber(name));
form_->converters().update(form_->formats());
updateConverters();
updateFormatsButtons();
}
@ -696,6 +829,7 @@ void QPrefsDialog::modify_format()
fileformatsModule->formatsLB->update();
updateConverters();
updateFormatsButtons();
}
@ -707,7 +841,9 @@ void QPrefsDialog::remove_format()
form_->formats().erase(form_->formats().get(nr).name());
updateFormats();
form_->converters().update(form_->formats());
updateConverters();
updateFormatsButtons();
}

View File

@ -54,12 +54,15 @@ public:
void updateConverters();
void updateConverterButtons();
void updateCopiers();
void updateCopierButtons();
void updateFormats();
void updateFormatsButtons();
public slots:
void change_adaptor();
void switch_format(int);
void fileformat_changed();
void new_format();
void modify_format();
void remove_format();
@ -72,6 +75,7 @@ public slots:
void switch_copierLB(int nr);
void switch_copierCO(int nr);
void copiers_changed();
void new_copier();
void modify_copier();
void remove_copier();

View File

@ -13,7 +13,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>466</width>
<width>458</width>
<height>265</height>
</rect>
</property>
@ -30,98 +30,6 @@
<name>spacing</name>
<number>6</number>
</property>
<widget row="0" column="0" >
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout7</cstring>
</property>
<grid>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget row="0" column="0" rowspan="1" colspan="2" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>formatsLA_2</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Converters</string>
</property>
<property>
<name>buddy</name>
<cstring>convertersLB</cstring>
</property>
</widget>
<spacer row="2" column="1" >
<property>
<name>name</name>
<cstring>Spacer8</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Horizontal</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget row="2" column="0" >
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>converterRemovePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Remove</string>
</property>
</widget>
<widget row="1" column="0" rowspan="1" colspan="2" >
<class>QListBox</class>
<item>
<property>
<name>text</name>
<string>New Item</string>
</property>
</item>
<property stdset="1">
<name>name</name>
<cstring>convertersLB</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>3</hsizetype>
<vsizetype>7</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>vScrollBarMode</name>
<enum>AlwaysOn</enum>
</property>
<property stdset="1">
<name>hScrollBarMode</name>
<enum>AlwaysOff</enum>
</property>
</widget>
</grid>
</widget>
<widget row="0" column="1" >
<class>QLayoutWidget</class>
<property stdset="1">
@ -339,6 +247,115 @@
</widget>
</grid>
</widget>
<widget row="0" column="0" >
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout6</cstring>
</property>
<grid>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget row="0" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>formatsLA_2</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Converters</string>
</property>
<property>
<name>buddy</name>
<cstring>convertersLB</cstring>
</property>
</widget>
<widget row="2" column="0" >
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout5</cstring>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<spacer>
<property>
<name>name</name>
<cstring>Spacer8</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Horizontal</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>converterRemovePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Remove</string>
</property>
</widget>
</hbox>
</widget>
<widget row="1" column="0" >
<class>QListBox</class>
<item>
<property>
<name>text</name>
<string>New Item</string>
</property>
</item>
<property stdset="1">
<name>name</name>
<cstring>convertersLB</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>7</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>vScrollBarMode</name>
<enum>AlwaysOn</enum>
</property>
<property stdset="1">
<name>hScrollBarMode</name>
<enum>AlwaysOff</enum>
</property>
</widget>
</grid>
</widget>
</grid>
</widget>
<tabstops>

View File

@ -13,7 +13,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>547</width>
<width>428</width>
<height>261</height>
</rect>
</property>
@ -21,7 +21,7 @@
<name>caption</name>
<string>File Conversion</string>
</property>
<hbox>
<grid>
<property stdset="1">
<name>margin</name>
<number>11</number>
@ -30,13 +30,13 @@
<name>spacing</name>
<number>6</number>
</property>
<widget>
<widget row="0" column="0" >
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout4</cstring>
<cstring>Layout7</cstring>
</property>
<vbox>
<grid>
<property stdset="1">
<name>margin</name>
<number>0</number>
@ -45,7 +45,84 @@
<name>spacing</name>
<number>6</number>
</property>
<widget>
<widget row="1" column="0" >
<class>QListBox</class>
<item>
<property>
<name>text</name>
<string>New Item</string>
</property>
</item>
<property stdset="1">
<name>name</name>
<cstring>AllCopiersLB</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>7</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>vScrollBarMode</name>
<enum>Auto</enum>
</property>
<property stdset="1">
<name>hScrollBarMode</name>
<enum>AlwaysOff</enum>
</property>
</widget>
<widget row="2" column="0" >
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout6</cstring>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<spacer>
<property>
<name>name</name>
<cstring>Spacer3</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Horizontal</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Preferred</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>copierRemovePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Remove</string>
</property>
</widget>
</hbox>
</widget>
<widget row="0" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
@ -60,82 +137,15 @@
<cstring>AllCopiersLB</cstring>
</property>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout1</cstring>
</property>
<grid>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget row="0" column="0" rowspan="1" colspan="2" >
<class>QListBox</class>
<item>
<property>
<name>text</name>
<string>New Item</string>
</property>
</item>
<property stdset="1">
<name>name</name>
<cstring>AllCopiersLB</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>3</hsizetype>
<vsizetype>7</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>vScrollBarMode</name>
<enum>AlwaysOn</enum>
</property>
<property stdset="1">
<name>hScrollBarMode</name>
<enum>AlwaysOff</enum>
</property>
</widget>
<widget row="1" column="0" >
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>copierNewPB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;New</string>
</property>
</widget>
<widget row="1" column="1" >
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>copierRemovePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Remove</string>
</property>
</widget>
</grid>
</widget>
</vbox>
</grid>
</widget>
<widget>
<widget row="0" column="1" >
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout6</cstring>
<cstring>Layout9</cstring>
</property>
<vbox>
<grid>
<property stdset="1">
<name>margin</name>
<number>0</number>
@ -144,7 +154,67 @@
<name>spacing</name>
<number>6</number>
</property>
<widget>
<widget row="1" column="0" >
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout8</cstring>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>copierNewPB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Add</string>
</property>
</widget>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>copierModifyPB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Modify</string>
</property>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer2</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Horizontal</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</hbox>
</widget>
<widget row="0" column="0" >
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
@ -212,56 +282,7 @@
</widget>
</grid>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout5</cstring>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>copierModifyPB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Modify</string>
</property>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer2</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Horizontal</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</hbox>
</widget>
<spacer>
<spacer row="2" column="0" >
<property>
<name>name</name>
<cstring>Spacer28</cstring>
@ -282,9 +303,9 @@
</size>
</property>
</spacer>
</vbox>
</grid>
</widget>
</hbox>
</grid>
</widget>
<tabstops>
<tabstop>AllCopiersLB</tabstop>

View File

@ -13,7 +13,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>356</width>
<width>419</width>
<height>261</height>
</rect>
</property>
@ -21,7 +21,7 @@
<name>caption</name>
<string>File Formats</string>
</property>
<hbox>
<grid>
<property stdset="1">
<name>margin</name>
<number>11</number>
@ -30,11 +30,241 @@
<name>spacing</name>
<number>6</number>
</property>
<widget>
<widget row="0" column="1" rowspan="1" colspan="2" >
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout3</cstring>
<cstring>Layout4</cstring>
</property>
<grid>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget row="4" column="1" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>viewerED</cstring>
</property>
</widget>
<widget row="5" column="1" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>editorED</cstring>
</property>
</widget>
<widget row="2" column="1" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>shortcutED</cstring>
</property>
</widget>
<widget row="1" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>guiNameLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;GUI name:</string>
</property>
<property>
<name>buddy</name>
<cstring>guiNameED</cstring>
</property>
</widget>
<widget row="0" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>formatLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>F&amp;ormat:</string>
</property>
<property>
<name>buddy</name>
<cstring>formatED</cstring>
</property>
</widget>
<widget row="1" column="1" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>guiNameED</cstring>
</property>
</widget>
<widget row="4" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>viewerLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Viewer:</string>
</property>
<property>
<name>buddy</name>
<cstring>viewerED</cstring>
</property>
</widget>
<widget row="5" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>editorLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Ed&amp;itor:</string>
</property>
<property>
<name>buddy</name>
<cstring>editorED</cstring>
</property>
</widget>
<widget row="0" column="1" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>formatED</cstring>
</property>
</widget>
<widget row="2" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>shortcutLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>S&amp;hortcut:</string>
</property>
<property>
<name>buddy</name>
<cstring>shortcutED</cstring>
</property>
</widget>
<widget row="3" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>extensionLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>E&amp;xtension:</string>
</property>
<property>
<name>buddy</name>
<cstring>extensionED</cstring>
</property>
</widget>
<widget row="3" column="1" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>extensionED</cstring>
</property>
</widget>
</grid>
</widget>
<widget row="1" column="1" rowspan="1" colspan="2" >
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout5</cstring>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>formatNewPB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Add</string>
</property>
</widget>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>formatModifyPB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Modify</string>
</property>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer3_2</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Horizontal</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>MinimumExpanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</hbox>
</widget>
<spacer row="2" column="2" >
<property>
<name>name</name>
<cstring>Spacer26</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Vertical</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget row="0" column="0" rowspan="3" colspan="1" >
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout10</cstring>
</property>
<vbox>
<property stdset="1">
@ -61,236 +291,38 @@
</property>
</widget>
<widget>
<class>QLayoutWidget</class>
<class>QListBox</class>
<item>
<property>
<name>text</name>
<string>New Item</string>
</property>
</item>
<property stdset="1">
<name>name</name>
<cstring>Layout1</cstring>
<cstring>formatsLB</cstring>
</property>
<grid>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget row="1" column="0" >
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>formatNewPB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;New</string>
</property>
</widget>
<widget row="0" column="0" rowspan="1" colspan="2" >
<class>QListBox</class>
<item>
<property>
<name>text</name>
<string>New Item</string>
</property>
</item>
<property stdset="1">
<name>name</name>
<cstring>formatsLB</cstring>
</property>
<property stdset="1">
<name>vScrollBarMode</name>
<enum>AlwaysOn</enum>
</property>
<property stdset="1">
<name>hScrollBarMode</name>
<enum>AlwaysOff</enum>
</property>
</widget>
<widget row="1" column="1" >
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>formatRemovePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Remove</string>
</property>
</widget>
</grid>
</widget>
</vbox>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout6</cstring>
</property>
<vbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout4</cstring>
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>7</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>vScrollBarMode</name>
<enum>AlwaysOn</enum>
</property>
<property stdset="1">
<name>hScrollBarMode</name>
<enum>AlwaysOff</enum>
</property>
<grid>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget row="4" column="1" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>viewerED</cstring>
</property>
</widget>
<widget row="5" column="1" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>editorED</cstring>
</property>
</widget>
<widget row="2" column="1" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>shortcutED</cstring>
</property>
</widget>
<widget row="1" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>guiNameLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;GUI name:</string>
</property>
<property>
<name>buddy</name>
<cstring>guiNameED</cstring>
</property>
</widget>
<widget row="0" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>formatLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>F&amp;ormat:</string>
</property>
<property>
<name>buddy</name>
<cstring>formatED</cstring>
</property>
</widget>
<widget row="1" column="1" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>guiNameED</cstring>
</property>
</widget>
<widget row="4" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>viewerLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Viewer:</string>
</property>
<property>
<name>buddy</name>
<cstring>viewerED</cstring>
</property>
</widget>
<widget row="5" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>editorLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Ed&amp;itor:</string>
</property>
<property>
<name>buddy</name>
<cstring>editorED</cstring>
</property>
</widget>
<widget row="0" column="1" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>formatED</cstring>
</property>
</widget>
<widget row="2" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>shortcutLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>S&amp;hortcut:</string>
</property>
<property>
<name>buddy</name>
<cstring>shortcutED</cstring>
</property>
</widget>
<widget row="3" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>extensionLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>E&amp;xtension:</string>
</property>
<property>
<name>buddy</name>
<cstring>extensionED</cstring>
</property>
</widget>
<widget row="3" column="1" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>extensionED</cstring>
</property>
</widget>
</grid>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout5</cstring>
<cstring>Layout7</cstring>
</property>
<hbox>
<property stdset="1">
@ -301,21 +333,10 @@
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>formatModifyPB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Modify</string>
</property>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer2</cstring>
<cstring>Spacer3</cstring>
</property>
<property stdset="1">
<name>orientation</name>
@ -323,7 +344,7 @@
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
<enum>Preferred</enum>
</property>
<property>
<name>sizeHint</name>
@ -333,32 +354,43 @@
</size>
</property>
</spacer>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>formatRemovePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Remove</string>
</property>
</widget>
</hbox>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer26</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Vertical</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</vbox>
</widget>
</hbox>
<spacer row="2" column="1" >
<property>
<name>name</name>
<cstring>Spacer4</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Horizontal</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Minimum</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</grid>
</widget>
<tabstops>
<tabstop>formatsLB</tabstop>