-/* This file is part of
- * ======================================================
+/**
+ * \file FormBaseDeprecated.C
+ * Copyright 2000-2001 The LyX Team.
+ * See the file COPYING.
*
- * LyX, The Document Processor
- *
- * Copyright 2000-2001 The LyX Team.
- *
- * ======================================================
+ * \author Angus Leeming, a.leeming@ic.ac.uk
*/
#include <config.h>
-#include FORMS_H_LOCATION
-
#ifdef __GNUG__
#pragma implementation
#endif
#include "Dialogs.h"
#include "FormBaseDeprecated.h"
#include "xformsBC.h"
+#include "xforms_resize.h"
#include "GUIRunTime.h"
#include "Tooltips.h"
#include "LyXView.h"
if (!form()) {
build();
+ double const scale = scale_to_fit_tabs(form());
+ if (scale > 1.001)
+ scale_form(form(), scale);
+
bc().refresh();
-
+
// work around dumb xforms sizing bug
minw_ = form()->w;
minh_ = form()->h;
if (form()->visible) {
fl_raise_form(form());
- /* This XMapWindow() will hopefully ensure that
- * iconified dialogs are de-iconified. Mad props
- * out to those crazy Xlib guys for forgetting a
- * XDeiconifyWindow(). At least WindowMaker, when
- * being notified of the redirected MapRequest will
- * specifically de-iconify. From source, fvwm2 seems
- * to do the same.
- */
- XMapWindow(fl_get_display(), form()->window);
+ /* This XMapWindow() will hopefully ensure that
+ * iconified dialogs are de-iconified. Mad props
+ * out to those crazy Xlib guys for forgetting a
+ * XDeiconifyWindow(). At least WindowMaker, when
+ * being notified of the redirected MapRequest will
+ * specifically de-iconify. From source, fvwm2 seems
+ * to do the same.
+ */
+ XMapWindow(fl_get_display(), form()->window);
} else {
connect();
fl_set_form_maxsize(form(), minw_, minh_);
fl_show_form(form(),
- FL_PLACE_MOUSE | FL_FREE_SIZE,
- (lyxrc.dialogs_iconify_with_main ? FL_TRANSIENT : 0),
- title_.c_str());
+ FL_PLACE_MOUSE | FL_FREE_SIZE,
+ (lyxrc.dialogs_iconify_with_main ? FL_TRANSIENT : 0),
+ title_.c_str());
}
+
+ tooltips().set();
}
void FormBaseBD::connect()
{
u_ = d_->updateBufferDependent.
- connect(slot(this, &FormBaseBD::updateSlot));
+ connect(slot(this, &FormBaseBD::updateSlot));
h_ = d_->hideBufferDependent.
- connect(slot(this, &FormBaseBD::hide));
+ connect(slot(this, &FormBaseBD::hide));
FormBaseDeprecated::connect();
}