- Private(): language_model_(0), global_menubar_(0),
- meta_fake_bit(NoModifier)
+ Private(): language_model_(0), meta_fake_bit(NoModifier),
+ global_menubar_(0)
// This function runs "configure" and then rereads lyx.defaults to
// reconfigure the automatic settings.
// This function runs "configure" and then rereads lyx.defaults to
// reconfigure the automatic settings.
Buffer * buf = current_view_->loadDocument(fname, false);
if (buf) {
current_view_->setBuffer(buf);
Buffer * buf = current_view_->loadDocument(fname, false);
if (buf) {
current_view_->setBuffer(buf);
// c.f. http://doc.trolltech.com/4.1/qtranslator.html#load
if (!d->qt_trans_.load(language_name,
QLibraryInfo::location(QLibraryInfo::TranslationsPath))) {
// c.f. http://doc.trolltech.com/4.1/qtranslator.html#load
if (!d->qt_trans_.load(language_name,
QLibraryInfo::location(QLibraryInfo::TranslationsPath))) {
QStandardItemModel * lang_model = new QStandardItemModel(this);
lang_model->insertColumns(0, 1);
int current_row;
QStandardItemModel * lang_model = new QStandardItemModel(this);
lang_model->insertColumns(0, 1);
int current_row;
- Languages::const_iterator it = languages.begin();
- Languages::const_iterator end = languages.end();
+ Languages::const_iterator it = lyx::languages.begin();
+ Languages::const_iterator end = lyx::languages.end();
for (; it != end; ++it) {
current_row = lang_model->rowCount();
lang_model->insertRows(current_row, 1);
for (; it != end; ++it) {
current_row = lang_model->rowCount();
lang_model->insertRows(current_row, 1);