#include <config.h>
-#ifdef __GNUG__
-#pragma implementation
-#endif
#include "ControlGraphics.h"
#include "debug.h"
-#include "gettext.h"
+#include "qt_helpers.h"
#include "LString.h"
#include <qwidget.h>
#include <qfiledialog.h>
#include <qcombobox.h>
+#include "lengthcombo.h"
+
#include "QGraphicsDialog.h"
#include "QGraphics.h"
void QGraphicsDialog::change_bb()
{
form_->controller().bbChanged = true;
+ lyxerr[Debug::GRAPHICS]
+ << "[controller().bb_Changed set to true]\n";
form_->changed();
}
bool useHeight = (widthUnit->currentItem() > 0);
height->setEnabled(useHeight);
heightUnit->setEnabled(useHeight);
+ form_->changed();
}
void QGraphicsDialog::browse_clicked()
{
- QString file = QFileDialog::getOpenFileName(
- QString::null, _("Files (*)"),
- this, 0, _("Select a graphic file"));
- if (!file.isNull()) {
- string const name = file.latin1();
- filename->setText(name.c_str());
- form_->changed();
- }
+ string const str =
+ form_->controller().Browse(fromqstr(filename->text()));
+ filename->setText(toqstr(str));
+ form_->changed();
}