Next camel

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29816 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-05-23 10:30:52 +00:00
parent 46ef6b0e48
commit a2b1d2bed9
2 changed files with 11 additions and 11 deletions

View File

@ -1310,13 +1310,13 @@ PrefConverters::PrefConverters(GuiPreferences * form)
setupUi(this); setupUi(this);
connect(converterNewPB, SIGNAL(clicked()), connect(converterNewPB, SIGNAL(clicked()),
this, SLOT(update_converter())); this, SLOT(updateConverter()));
connect(converterRemovePB, SIGNAL(clicked()), connect(converterRemovePB, SIGNAL(clicked()),
this, SLOT(remove_converter())); this, SLOT(removeConverter()));
connect(converterModifyPB, SIGNAL(clicked()), connect(converterModifyPB, SIGNAL(clicked()),
this, SLOT(update_converter())); this, SLOT(updateConverter()));
connect(convertersLW, SIGNAL(currentRowChanged(int)), connect(convertersLW, SIGNAL(currentRowChanged(int)),
this, SLOT(switch_converter())); this, SLOT(switchConverter()));
connect(converterFromCO, SIGNAL(activated(QString)), connect(converterFromCO, SIGNAL(activated(QString)),
this, SLOT(converter_changed())); this, SLOT(converter_changed()));
connect(converterToCO, SIGNAL(activated(QString)), connect(converterToCO, SIGNAL(activated(QString)),
@ -1375,7 +1375,7 @@ void PrefConverters::updateGui()
} }
// currentRowChanged(int) is also triggered when updating the listwidget // currentRowChanged(int) is also triggered when updating the listwidget
// block signals to avoid unnecessary calls to switch_converter() // block signals to avoid unnecessary calls to switchConverter()
convertersLW->blockSignals(true); convertersLW->blockSignals(true);
convertersLW->clear(); convertersLW->clear();
@ -1406,7 +1406,7 @@ void PrefConverters::updateGui()
} }
void PrefConverters::switch_converter() void PrefConverters::switchConverter()
{ {
int const cnr = convertersLW->currentItem()->type(); int const cnr = convertersLW->currentItem()->type();
Converter const & c(form_->converters().get(cnr)); Converter const & c(form_->converters().get(cnr));
@ -1455,7 +1455,7 @@ void PrefConverters::updateButtons()
// FIXME: user must // FIXME: user must
// specify unique from/to or it doesn't appear. This is really bad UI // specify unique from/to or it doesn't appear. This is really bad UI
// this is why we can use the same function for both new and modify // this is why we can use the same function for both new and modify
void PrefConverters::update_converter() void PrefConverters::updateConverter()
{ {
Format const & from = form_->formats().get(converterFromCO->currentIndex()); Format const & from = form_->formats().get(converterFromCO->currentIndex());
Format const & to = form_->formats().get(converterToCO->currentIndex()); Format const & to = form_->formats().get(converterToCO->currentIndex());
@ -1477,7 +1477,7 @@ void PrefConverters::update_converter()
} }
void PrefConverters::remove_converter() void PrefConverters::removeConverter()
{ {
Format const & from = form_->formats().get(converterFromCO->currentIndex()); Format const & from = form_->formats().get(converterFromCO->currentIndex());
Format const & to = form_->formats().get(converterToCO->currentIndex()); Format const & to = form_->formats().get(converterToCO->currentIndex());

View File

@ -333,10 +333,10 @@ public Q_SLOTS:
void updateGui(); void updateGui();
private Q_SLOTS: private Q_SLOTS:
void update_converter(); void updateConverter();
void switch_converter(); void switchConverter();
void removeConverter();
void converter_changed(); void converter_changed();
void remove_converter();
void on_cacheCB_stateChanged(int state); void on_cacheCB_stateChanged(int state);
private: private: