+2002-09-09 Rob Lahaye <lahaye@snu.ac.kr>
+
+ * FormBase.C:
+ * FormBaseDeprecated.C: use "LyX: " prefix to dialog window title;
+ set minimized title (without "LyX: ") and its icon.
+
+ * FormSpellchecker.C:
+ * FormSearch.C:
+ * FormThesaurus.C: remove "LyX: " from dialog window title.
+
+ * FormRef.[Ch]: add proper switch for "Go to" button.
+
+ * FormBibitem.C:
+ * forms/form_bibitem.fd:
+ * FormCitation.C:
+ * forms/form_citation.fd:
+ * FormRef.C:
+ * forms/form_ref.fd:
+ * FormSpellchecker.[Ch]:
+ * forms/form_spellchecker.fd:
+ * forms/form_toc.fd:
+ * forms/form_url.fd: less bulky dialogs; use proper gravity and
+ resize policy; add few tooltips.
+
2002-09-06 Alain Castera <castera@in2p3.fr>
* FormTabular.C: leave the horizontal alignment buttons alive
#include "xformsBC.h"
#include "xforms_resize.h"
#include "Tooltips.h"
+
#include "support/LAssert.h"
+#include "support/filetools.h" // LibFileSearch
+
#include FORMS_H_LOCATION
extern "C" {
if (!allow_resize_)
fl_set_form_maxsize(form(), minw_, minh_);
- int const iconify = getController().IconifyWithMain() ?
- FL_TRANSIENT : 0;
+ string const maximize_title = "LyX: " + title_;
+ int const iconify_policy = getController().IconifyWithMain() ?
+ FL_TRANSIENT : 0;
fl_show_form(form(),
FL_PLACE_MOUSE | FL_FREE_SIZE,
- iconify,
- title_.c_str());
+ iconify_policy,
+ maximize_title.c_str());
+
+ if (iconify_policy == 0) {
+ // set title for minimized form
+ string const minimize_title = title_;
+ fl_winicontitle(form()->window, minimize_title.c_str());
+
+ // assign an icon to form
+ string const iconname = LibFileSearch("images", "lyx", "xpm");
+ if (!iconname.empty()) {
+ unsigned int w, h;
+ Pixmap icon_mask;
+ Pixmap const icon_p = fl_read_pixmapfile(fl_root,
+ iconname.c_str(),
+ &w,
+ &h,
+ &icon_mask,
+ 0, 0, 0); // this leaks
+ fl_set_form_icon(form(), icon_p, icon_mask);
+ }
+ }
}
tooltips().set();
#include "frontends/LyXView.h"
#include "support/LAssert.h"
+#include "support/filetools.h" // LibFileSearch
#include <boost/bind.hpp>
if (!allow_resize_)
fl_set_form_maxsize(form(), minw_, minh_);
+ string const maximize_title = "LyX: " + title_;
+ int const iconify_policy = lyxrc.dialogs_iconify_with_main ?
+ FL_TRANSIENT : 0;
+
fl_show_form(form(),
FL_PLACE_MOUSE | FL_FREE_SIZE,
- (lyxrc.dialogs_iconify_with_main ? FL_TRANSIENT : 0),
- title_.c_str());
+ iconify_policy,
+ maximize_title.c_str());
+
+ if (iconify_policy == 0) {
+ // set title for minimized form
+ string const minimize_title = title_;
+ fl_winicontitle(form()->window, minimize_title.c_str());
+
+ // assign an icon to form
+ string const iconname = LibFileSearch("images", "lyx", "xpm");
+ if (!iconname.empty()) {
+ unsigned int w, h;
+ Pixmap icon_mask;
+ Pixmap const icon_p = fl_read_pixmapfile(fl_root,
+ iconname.c_str(),
+ &w,
+ &h,
+ &icon_mask,
+ 0, 0, 0); // this leaks
+ fl_set_form_icon(form(), icon_p, icon_mask);
+ }
+ }
}
tooltips().set();
#include "xformsBC.h"
#include "ControlBibitem.h"
#include "FormBibitem.h"
+#include "Tooltips.h"
#include "forms/form_bibitem.h"
#include FORMS_H_LOCATION
#include "gettext.h"
bc().addReadOnly(dialog_->input_key);
bc().addReadOnly(dialog_->input_label);
+
+ // set up the tooltips
+ string str = _("Key used within LyX document.");
+ tooltips().init(dialog_->input_key, str);
+ str = _("Label used for final output.");
+ tooltips().init(dialog_->input_label, str);
}
setEnabled(dialog->choice_style, !vec.empty());
if (vec.empty())
return;
-
- // The width of the choice varies with the contents.
- // Ensure that it is centred in the frame.
-
- int width = 0;
- for (vector<string>::const_iterator it = vec.begin();
- it != vec.end(); ++it) {
- width = max(width, string_width(*it));
- }
-
- int const dx =
- max(5, int(0.5 * (dialog->frame_style->w - width)));
-
- fl_set_object_geometry(dialog->choice_style,
- dialog->frame_style->x + dx,
- dialog->choice_style->y,
- width,
- dialog->choice_style->h);
}
FormCitation::FormCitation()
- : base_class(_("Citation"), false)
+ : base_class(_("Citation"))
{}
#include "xformsBC.h"
#include "ControlRef.h"
#include "FormRef.h"
+#include "Tooltips.h"
#include "forms/form_ref.h"
#include "xforms_helpers.h"
#include "insets/insetref.h"
dialog_.reset(build_ref(this));
for (int i = 0; !InsetRef::types[i].latex_name.empty(); ++i)
- fl_addto_choice(dialog_->choice_type,
+ fl_addto_choice(dialog_->choice_format,
_(InsetRef::types[i].gui_name.c_str()));
// Force the user to use the browser to change refs.
bc().addReadOnly(dialog_->button_update);
bc().addReadOnly(dialog_->input_name);
bc().addReadOnly(dialog_->input_ref);
+
+ // set up the tooltips
+ string str = _("Select a document for references.");
+ tooltips().init(dialog_->choice_document, str);
+ str = _("Sort the references alphabetically.");
+ tooltips().init(dialog_->check_sort, str);
+ str = _("Go to selected reference.");
+ tooltips().init(dialog_->button_go, str);
+ str = _("Update the list of references.");
+ tooltips().init(dialog_->button_update, str);
+ str = _("Select format style of the reference.");
+ tooltips().init(dialog_->choice_format, str);
}
controller().params().getContents().c_str());
fl_set_input(dialog_->input_name,
controller().params().getOptions().c_str());
- fl_set_choice(dialog_->choice_type,
+ fl_set_choice(dialog_->choice_format,
InsetRef::getType(controller().params().getCmdName()) + 1);
at_ref_ = false;
- fl_set_object_label(dialog_->button_go, _("Go to reference"));
+ switch_go_button();
// Name is irrelevant to LaTeX/Literate documents
if (controller().docType() == ControlRef::LATEX ||
// type is irrelevant to LinuxDoc/DocBook.
if (controller().docType() == ControlRef::LINUXDOC ||
controller().docType() == ControlRef::DOCBOOK) {
- fl_set_choice(dialog_->choice_type, 1);
- setEnabled(dialog_->choice_type, false);
+ fl_set_choice(dialog_->choice_format, 1);
+ setEnabled(dialog_->choice_format, false);
} else {
- setEnabled(dialog_->choice_type, true);
+ setEnabled(dialog_->choice_format, true);
}
// Get the available buffers
vector<string> const buffers = controller().getBufferList();
- vector<string> const choice_buffers =
- getVector(dialog_->choice_buffer);
+ vector<string> const choice_documents =
+ getVector(dialog_->choice_document);
// If different from the current contents of the choice, then update it
- if (buffers != choice_buffers) {
+ if (buffers != choice_documents) {
// create a string of entries " entry1 | entry2 | entry3 "
// with which to initialise the xforms choice object.
string const choice =
" " + getStringFromVector(buffers, " | ") + " ";
- fl_clear_choice(dialog_->choice_buffer);
- fl_addto_choice(dialog_->choice_buffer, choice.c_str());
+ fl_clear_choice(dialog_->choice_document);
+ fl_addto_choice(dialog_->choice_document, choice.c_str());
- fl_set_choice(dialog_->choice_buffer,
+ fl_set_choice(dialog_->choice_document,
controller().getBufferNum() + 1);
}
string const name = controller().
- getBufferName(fl_get_choice(dialog_->choice_buffer) - 1);
+ getBufferName(fl_get_choice(dialog_->choice_document) - 1);
refs_ = controller().getLabelList(name);
updateBrowser(refs_);
void FormRef::apply()
{
- int const type = fl_get_choice(dialog_->choice_type) - 1;
+ int const type = fl_get_choice(dialog_->choice_format) - 1;
controller().params().setCmdName(InsetRef::getName(type));
controller().params().setOptions(fl_get_input(dialog_->input_name));
at_ref_ = !at_ref_;
if (at_ref_) {
controller().gotoRef(fl_get_input(dialog_->input_ref));
- fl_set_object_label(dialog_->button_go, _("Go back"));
} else {
controller().gotoBookmark();
- fl_set_object_label(dialog_->button_go,
- _("Go to reference"));
}
+ switch_go_button();
} else if (ob == dialog_->browser_refs) {
if (at_ref_)
controller().gotoBookmark();
at_ref_ = false;
- fl_set_object_label(dialog_->button_go, _("Go to reference"));
+ switch_go_button();
- setEnabled(dialog_->choice_type, true);
+ setEnabled(dialog_->choice_format, true);
setEnabled(dialog_->button_go, true);
fl_set_object_lcol(dialog_->input_ref, FL_BLACK);
} else if (ob == dialog_->button_update ||
ob == dialog_->check_sort ||
- ob == dialog_->choice_buffer) {
+ ob == dialog_->choice_document) {
if (ob == dialog_->button_update ||
- ob == dialog_->choice_buffer) {
+ ob == dialog_->choice_document) {
string const name =
- controller().getBufferName(fl_get_choice(dialog_->choice_buffer) - 1);
+ controller().getBufferName(fl_get_choice(dialog_->choice_document) - 1);
refs_ = controller().getLabelList(name);
}
updateBrowser(refs_);
fl_unfreeze_form(form());
- } else if (ob == dialog_->choice_type) {
+ } else if (ob == dialog_->choice_format) {
- int const type = fl_get_choice(dialog_->choice_type) - 1;
+ int const type = fl_get_choice(dialog_->choice_format) - 1;
if (controller().params().getCmdName() ==
InsetRef::getName(type)) {
activate = ButtonPolicy::SMI_NOOP;
return activate;
}
+
+
+void FormRef::switch_go_button()
+{
+ if (at_ref_) {
+ fl_set_object_label(dialog_->button_go, _("Go back"));
+ tooltips().init(dialog_->button_go, _("Go back to original place."));
+ } else {
+ fl_set_object_label(dialog_->button_go, _("Go to"));
+ tooltips().init(dialog_->button_go, _("Go to selected reference."));
+ }
+ fl_set_button_shortcut(dialog_->button_go, "#G", 1);
+ fl_show_object(dialog_->button_go);
+}
///
void updateBrowser(std::vector<string> const &) const;
+
+ ///
+ void switch_go_button();
///
bool at_ref_;
typedef FormCB<ControlSearch, FormDB<FD_search> > base_class;
FormSearch::FormSearch()
- : base_class(_("LyX: Find and Replace"))
+ : base_class(_("Find and Replace"))
{}
#pragma implementation
#endif
+#include "Tooltips.h"
#include "xformsBC.h"
#include "xforms_helpers.h"
#include "ControlSpellchecker.h"
typedef FormCB<ControlSpellchecker, FormDB<FD_spellchecker> > base_class;
FormSpellchecker::FormSpellchecker()
- : base_class(_("LyX: Spellchecker"), false)
+ : base_class(_("Spellchecker"))
{}
{
dialog_.reset(build_spellchecker(this));
- fl_set_slider_bounds(dialog_->slider, 0.0, 100.0);
- fl_set_slider_step(dialog_->slider, 1.0);
-
fl_set_browser_dblclick_callback(dialog_->browser,
C_FormBaseInputCB, 2);
bc().setCancel(dialog_->button_close);
bc().addReadOnly(dialog_->button_replace);
bc().addReadOnly(dialog_->button_accept);
- bc().addReadOnly(dialog_->button_insert);
+ bc().addReadOnly(dialog_->button_add);
bc().addReadOnly(dialog_->button_ignore);
bc().addReadOnly(dialog_->button_start);
- bc().addReadOnly(dialog_->button_stop);
bc().addReadOnly(dialog_->browser);
+
+ // set up the tooltips
+ string str = _("Type replacement for unknown word "
+ " or select from suggestions.");
+ tooltips().init(dialog_->input, str);
+ str = _("List of replacement suggestions from dictionary.");
+ tooltips().init(dialog_->browser, str);
+ str = _("Start the spellingchecker.");
+ tooltips().init(dialog_->button_start, str);
+ str = _("Replace unknown word.");
+ tooltips().init(dialog_->button_replace, str);
+ str = _("Ignore unknown word.");
+ tooltips().init(dialog_->button_ignore, str);
+ str = _("Accept unknown word as known in this session.");
+ tooltips().init(dialog_->button_accept, str);
+ str = _("Add unknown word to personal dictionary.");
+ tooltips().init(dialog_->button_add, str);
}
void FormSpellchecker::update()
{
- string const w;
- fl_set_input(dialog_->input, w.c_str());
- fl_set_object_label(dialog_->text, w.c_str());
+ fl_set_input(dialog_->input, "");
+ fl_set_object_label(dialog_->text, "");
fl_clear_browser(dialog_->browser);
fl_set_slider_value(dialog_->slider, 0);
+ start(true);
}
ButtonPolicy::SMInput FormSpellchecker::input(FL_OBJECT * obj, long val)
controller().replace(tmp);
} else if (obj == dialog_->button_start) {
- controller().check();
- stop(false);
-
- } else if (obj == dialog_->button_stop) {
- controller().stop();
- stop(true);
+ if (start())
+ controller().check();
+ else
+ controller().stop();
} else if (obj == dialog_->button_ignore) {
controller().check();
} else if (obj == dialog_->button_accept) {
controller().ignoreAll();
- } else if (obj == dialog_->button_insert) {
+ } else if (obj == dialog_->button_add) {
controller().insert();
} else if (obj == dialog_->browser) {
fl_show_message(msg, "", "");
}
-void FormSpellchecker::stop(bool stop)
+bool FormSpellchecker::start(bool init)
{
- setEnabled(dialog_->button_start, stop);
- setEnabled(dialog_->button_replace, !stop);
- setEnabled(dialog_->button_ignore, !stop);
- setEnabled(dialog_->button_accept, !stop);
- setEnabled(dialog_->button_insert, !stop);
- setEnabled(dialog_->button_stop, !stop);
- setEnabled(dialog_->browser, !stop);
- setEnabled(dialog_->input, !stop);
+ static bool running = false;
+
+ if (init) {
+ running = false;
+ } else {
+ running = !running;
+ }
+
+ fl_set_object_label(dialog_->button_start,
+ (running ? _("Stop") : _("Start")));
+ fl_set_button_shortcut(dialog_->button_start, "#S", 1);
+ fl_show_object(dialog_->button_start);
+
+ string const str = (running ? _("Stop the spellingchecker.") :
+ _("Start the spellingchecker."));
+ tooltips().init(dialog_->button_start, str);
+
+ setEnabled(dialog_->button_replace, running);
+ setEnabled(dialog_->button_ignore, running);
+ setEnabled(dialog_->button_accept, running);
+ setEnabled(dialog_->button_add, running);
+ setEnabled(dialog_->browser, running);
+ setEnabled(dialog_->input, running);
+
+ return running;
}
///
void update();
- /// enable/disable widgets when start/stop
- void stop(bool);
+ /// enable/disable widgets when start/stop; return running status
+ bool start(bool init = false);
/// update progress bar, set suggestions, exit message
void partialUpdate(int);
FormThesaurus::FormThesaurus()
- : base_class(_("LyX: Thesaurus"), false),
+ : base_class(_("Thesaurus"), false),
clickline_(-1)
{
}
Number of forms: 1
Unit of measure: FL_COORD_PIXEL
+SnapGrid: 5
=============== FORM ===============
Name: form_bibitem
-Width: 220
-Height: 130
+Width: 195
+Height: 110
Number of Objects: 5
--------------------
class: FL_BOX
-type: UP_BOX
-box: 0 0 220 130
-boxtype: FL_UP_BOX
+type: FLAT_BOX
+box: 0 0 195 110
+boxtype: FL_FLAT_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
--------------------
class: FL_INPUT
type: NORMAL_INPUT
-box: 80 10 130 30
+box: 60 10 130 25
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_MCOL
alignment: FL_ALIGN_LEFT
lcol: FL_BLACK
label: Key:|#K
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+resize: FL_RESIZE_X
+gravity: FL_West FL_East
name: input_key
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BUTTON
type: RETURN_BUTTON
-box: 20 90 90 30
+box: 5 80 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
lcol: FL_BLACK
label: OK
shortcut: ^M
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+resize: FL_RESIZE_NONE
+gravity: FL_SouthEast FL_SouthEast
name: button_ok
callback: C_FormBaseOKCB
argument: 3
---------------------
-class: FL_BUTTON
-type: NORMAL_BUTTON
-box: 120 90 90 30
-boxtype: FL_UP_BOX
-colors: FL_COL1 FL_COL1
-alignment: FL_ALIGN_CENTER
-style: FL_NORMAL_STYLE
-size: FL_NORMAL_SIZE
-lcol: FL_BLACK
-label: Cancel|^[
-shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
-name: button_close
-callback: C_FormBaseCancelCB
-argument: 2
-
--------------------
class: FL_INPUT
type: NORMAL_INPUT
-box: 80 50 130 30
+box: 60 45 130 25
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_MCOL
alignment: FL_ALIGN_LEFT
lcol: FL_BLACK
label: Label:|#L
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+resize: FL_RESIZE_X
+gravity: FL_West FL_East
name: input_label
callback: C_FormBaseInputCB
argument: 0
+--------------------
+class: FL_BUTTON
+type: NORMAL_BUTTON
+box: 100 80 90 25
+boxtype: FL_UP_BOX
+colors: FL_COL1 FL_COL1
+alignment: FL_ALIGN_CENTER
+style: FL_NORMAL_STYLE
+size: FL_NORMAL_SIZE
+lcol: FL_BLACK
+label: Cancel|^[
+shortcut:
+resize: FL_RESIZE_NONE
+gravity: FL_SouthEast FL_SouthEast
+name: button_close
+callback: C_FormBaseCancelCB
+argument: 2
+
==============================
create_the_forms
Number of forms: 1
Unit of measure: FL_COORD_PIXEL
+SnapGrid: 5
=============== FORM ===============
Name: form_citation
-Width: 680
-Height: 440
-Number of Objects: 25
+Width: 640
+Height: 345
+Number of Objects: 23
--------------------
class: FL_BOX
-type: UP_BOX
-box: 0 0 680 440
-boxtype: FL_UP_BOX
+type: FLAT_BOX
+box: 0 0 640 345
+boxtype: FL_FLAT_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
label:
shortcut:
resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
-name:
+gravity: FL_NorthWest FL_SouthEast
+name:
callback:
argument:
--------------------
class: FL_BROWSER
type: HOLD_BROWSER
-box: 10 30 150 240
+box: 5 25 150 185
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_YELLOW
alignment: FL_ALIGN_TOP_LEFT
lcol: FL_BLACK
label: Inset keys|#I
shortcut:
-resize: FL_RESIZE_X
+resize: FL_RESIZE_ALL
gravity: FL_NorthWest FL_South
name: browser_cite
callback: C_FormBaseInputCB
--------------------
class: FL_BROWSER
type: HOLD_BROWSER
-box: 200 30 160 240
+box: 195 25 150 185
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_YELLOW
alignment: FL_ALIGN_TOP_LEFT
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
-label: Bibliography keys|#y
+label: Bibliography keys|#k
shortcut:
-resize: FL_RESIZE_X
+resize: FL_RESIZE_ALL
gravity: FL_North FL_SouthEast
name: browser_bib
callback: C_FormBaseInputCB
argument: 0
+--------------------
+class: FL_BROWSER
+type: NORMAL_BROWSER
+box: 5 235 340 70
+boxtype: FL_DOWN_BOX
+colors: FL_COL1 FL_YELLOW
+alignment: FL_ALIGN_TOP_LEFT
+style: FL_NORMAL_STYLE
+size: FL_NORMAL_SIZE
+lcol: FL_BLACK
+label: Info
+shortcut:
+resize: FL_RESIZE_NONE
+gravity: FL_SouthWest FL_SouthEast
+name: browser_info
+callback:
+argument:
+
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 165 30 30 30
+box: 5 315 90 25
+boxtype: FL_UP_BOX
+colors: FL_COL1 FL_COL1
+alignment: FL_ALIGN_CENTER
+style: FL_NORMAL_STYLE
+size: FL_NORMAL_SIZE
+lcol: FL_BLACK
+label: Restore|#R
+shortcut:
+resize: FL_RESIZE_NONE
+gravity: FL_SouthWest FL_SouthWest
+name: button_restore
+callback: C_FormBaseRestoreCB
+argument: 0
+
+--------------------
+class: FL_BUTTON
+type: NORMAL_BUTTON
+box: 160 30 30 30
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 165 65 30 30
+box: 160 65 30 30
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 165 100 30 30
+box: 160 100 30 30
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 165 135 30 30
+box: 160 135 30 30
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
callback: C_FormBaseInputCB
argument: 0
---------------------
-class: FL_BROWSER
-type: NORMAL_BROWSER
-box: 10 290 350 90
-boxtype: FL_DOWN_BOX
-colors: FL_COL1 FL_YELLOW
-alignment: FL_ALIGN_TOP_LEFT
-style: FL_NORMAL_STYLE
-size: FL_NORMAL_SIZE
-lcol: FL_BLACK
-label: Info
-shortcut:
-resize: FL_RESIZE_NONE
-gravity: FL_SouthWest FL_SouthEast
-name: browser_info
-callback:
-argument:
-
--------------------
class: FL_LABELFRAME
type: ENGRAVED_FRAME
-box: 370 30 300 130
+box: 355 10 280 110
boxtype: FL_NO_BOX
colors: FL_BLACK FL_COL1
alignment: FL_ALIGN_TOP_LEFT
lcol: FL_BLACK
label: Search
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_SouthWest FL_SouthEast
+resize: FL_RESIZE_Y
+gravity: FL_East FL_East
name: frame_search
callback:
argument:
--------------------
class: FL_INPUT
type: NORMAL_INPUT
-box: 380 45 280 30
+box: 360 25 265 25
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_MCOL
alignment: FL_ALIGN_TOP
label:
shortcut:
resize: FL_RESIZE_NONE
-gravity: FL_SouthWest FL_SouthEast
+gravity: FL_East FL_East
name: input_search
callback:
argument:
--------------------
class: FL_CHECKBUTTON
type: PUSH_BUTTON
-box: 385 90 30 30
+box: 360 60 25 25
boxtype: FL_NO_BOX
colors: FL_COL1 FL_YELLOW
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
-label: Regular Expression|#R
+label: Regular Expression|#x
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_SouthWest FL_SouthWest
+resize: FL_RESIZE_NONE
+gravity: FL_East FL_East
name: check_search_type
callback:
argument:
--------------------
class: FL_CHECKBUTTON
type: PUSH_BUTTON
-box: 385 120 30 30
+box: 360 90 25 25
boxtype: FL_NO_BOX
colors: FL_COL1 FL_YELLOW
alignment: FL_ALIGN_CENTER
label: Case sensitive|#C
shortcut:
resize: FL_RESIZE_NONE
-gravity: FL_SouthWest FL_SouthWest
+gravity: FL_East FL_East
name: check_search_case
callback:
argument:
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 570 85 90 30
+box: 535 60 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
label: Previous|#P
shortcut:
resize: FL_RESIZE_NONE
-gravity: FL_SouthEast FL_SouthEast
+gravity: FL_East FL_East
name: button_previous
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 570 120 90 30
+box: 535 90 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
label: Next|#N
shortcut:
resize: FL_RESIZE_NONE
-gravity: FL_SouthEast FL_SouthEast
+gravity: FL_East FL_East
name: button_next
callback: C_FormBaseInputCB
argument: 0
---------------------
-class: FL_LABELFRAME
-type: ENGRAVED_FRAME
-box: 370 170 300 110
-boxtype: FL_NO_BOX
-colors: FL_BLACK FL_COL1
-alignment: FL_ALIGN_TOP_LEFT
-style: FL_NORMAL_STYLE
-size: FL_NORMAL_SIZE
-lcol: FL_BLACK
-label: Citation style
-shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
-name: frame_style
-callback:
-argument:
-
--------------------
class: FL_CHOICE
type: NORMAL_CHOICE
-box: 435 200 170 30
+box: 455 135 180 25
boxtype: FL_FRAME_BOX
colors: FL_COL1 FL_BLACK
-alignment: FL_ALIGN_TOP
+alignment: FL_ALIGN_LEFT
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
label: Style:|#S
shortcut:
resize: FL_RESIZE_NONE
-gravity: FL_SouthWest FL_SouthEast
+gravity: FL_East FL_East
name: choice_style
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_CHECKBUTTON
type: PUSH_BUTTON
-box: 375 240 30 30
+box: 365 245 25 25
boxtype: FL_NO_BOX
colors: FL_COL1 FL_YELLOW
alignment: FL_ALIGN_RIGHT
lcol: FL_BLACK
label: Full author list|#F
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+resize: FL_RESIZE_NONE
+gravity: FL_East FL_East
name: check_full_author_list
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_CHECKBUTTON
type: PUSH_BUTTON
-box: 515 240 30 30
+box: 365 275 25 25
boxtype: FL_NO_BOX
colors: FL_COL1 FL_YELLOW
alignment: FL_ALIGN_RIGHT
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
-label: Upper case|#U
+label: Force upper case|#u
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+resize: FL_RESIZE_NONE
+gravity: FL_East FL_East
name: check_force_uppercase
callback: C_FormBaseInputCB
argument: 0
---------------------
-class: FL_LABELFRAME
-type: ENGRAVED_FRAME
-box: 370 290 300 90
-boxtype: FL_NO_BOX
-colors: FL_BLACK FL_COL1
-alignment: FL_ALIGN_TOP_LEFT
-style: FL_NORMAL_STYLE
-size: FL_NORMAL_SIZE
-lcol: FL_BLACK
-label: Optional text
-shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
-name:
-callback:
-argument:
-
--------------------
class: FL_INPUT
type: NORMAL_INPUT
-box: 460 305 200 30
+box: 455 170 180 25
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_MCOL
alignment: FL_ALIGN_LEFT
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
-label: Before:|#B
+label: Text before:|#b
shortcut:
resize: FL_RESIZE_NONE
-gravity: FL_SouthWest FL_SouthEast
+gravity: FL_East FL_East
name: input_before
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_INPUT
type: NORMAL_INPUT
-box: 460 340 200 30
+box: 455 205 180 25
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_MCOL
alignment: FL_ALIGN_LEFT
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
-label: After:|#e
+label: Text after:|#a
shortcut:
resize: FL_RESIZE_NONE
-gravity: FL_SouthWest FL_SouthEast
+gravity: FL_East FL_East
name: input_after
callback: C_FormBaseInputCB
argument: 0
---------------------
-class: FL_BUTTON
-type: NORMAL_BUTTON
-box: 10 400 100 30
-boxtype: FL_UP_BOX
-colors: FL_COL1 FL_COL1
-alignment: FL_ALIGN_CENTER
-style: FL_NORMAL_STYLE
-size: FL_NORMAL_SIZE
-lcol: FL_BLACK
-label: Restore|#R
-shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_SouthWest FL_SouthWest
-name: button_restore
-callback: C_FormBaseRestoreCB
-argument: 0
-
--------------------
class: FL_BUTTON
type: RETURN_BUTTON
-box: 360 400 90 30
+box: 355 315 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
lcol: FL_BLACK
label: OK
shortcut: ^M
-resize: FL_RESIZE_ALL
+resize: FL_RESIZE_NONE
gravity: FL_SouthEast FL_SouthEast
name: button_ok
callback: C_FormBaseOKCB
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 470 400 90 30
+box: 545 315 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
-label: Apply|#A
+label: Cancel|^[
shortcut:
-resize: FL_RESIZE_ALL
+resize: FL_RESIZE_NONE
gravity: FL_SouthEast FL_SouthEast
-name: button_apply
-callback: C_FormBaseApplyCB
+name: button_close
+callback: C_FormBaseCancelCB
argument: 0
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 580 400 90 30
+box: 450 315 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
-label: Cancel|^[
+label: Apply|#A
shortcut:
-resize: FL_RESIZE_ALL
+resize: FL_RESIZE_NONE
gravity: FL_SouthEast FL_SouthEast
-name: button_close
-callback: C_FormBaseCancelCB
+name: button_apply
+callback: C_FormBaseApplyCB
argument: 0
==============================
Number of forms: 1
Unit of measure: FL_COORD_PIXEL
+SnapGrid: 5
=============== FORM ===============
Name: form_ref
-Width: 530
-Height: 380
+Width: 395
+Height: 330
Number of Objects: 13
--------------------
class: FL_BOX
-type: UP_BOX
-box: 0 0 530 380
-boxtype: FL_UP_BOX
+type: FLAT_BOX
+box: 0 0 395 330
+boxtype: FL_FLAT_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
-size: FL_DEFAULT_SIZE
+size: FL_NORMAL_SIZE
lcol: FL_BLACK
label:
shortcut:
callback:
argument:
---------------------
-class: FL_CHOICE
-type: NORMAL_CHOICE
-box: 105 10 350 30
-boxtype: FL_FRAME_BOX
-colors: FL_COL1 FL_BLACK
-alignment: FL_ALIGN_LEFT
-style: FL_NORMAL_STYLE
-size: FL_DEFAULT_SIZE
-lcol: FL_BLACK
-label: Buffer|#B
-shortcut:
-resize: FL_RESIZE_NONE
-gravity: FL_SouthEast FL_SouthEast
-name: choice_buffer
-callback: C_FormBaseInputCB
-argument: 0
-
--------------------
class: FL_BROWSER
type: HOLD_BROWSER
-box: 10 50 270 240
+box: 5 35 385 110
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_YELLOW
alignment: FL_ALIGN_TOP
label:
shortcut:
resize: FL_RESIZE_ALL
-gravity: FL_NorthWest FL_South
+gravity: FL_NorthWest FL_SouthEast
name: browser_refs
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 10 300 100 30
+box: 110 155 100 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
-size: FL_DEFAULT_SIZE
+size: FL_NORMAL_SIZE
lcol: FL_BLACK
label: Update|#U
shortcut:
resize: FL_RESIZE_NONE
-gravity: FL_SouthWest FL_SouthWest
+gravity: FL_South FL_South
name: button_update
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_CHECKBUTTON
type: PUSH_BUTTON
-box: 130 300 30 30
+box: 5 155 25 25
boxtype: FL_NO_BOX
colors: FL_COL1 FL_YELLOW
alignment: FL_ALIGN_RIGHT
style: FL_NORMAL_STYLE
-size: FL_DEFAULT_SIZE
+size: FL_NORMAL_SIZE
lcol: FL_BLACK
label: Sort|#S
shortcut:
resize: FL_RESIZE_NONE
-gravity: FL_SouthWest FL_SouthWest
+gravity: FL_South FL_South
name: check_sort
callback: C_FormBaseInputCB
argument: 0
---------------------
-class: FL_INPUT
-type: NORMAL_INPUT
-box: 370 50 150 40
-boxtype: FL_DOWN_BOX
-colors: FL_COL1 FL_MCOL
-alignment: FL_ALIGN_LEFT
-style: FL_NORMAL_STYLE
-size: FL_DEFAULT_SIZE
-lcol: FL_BLACK
-label: Name:|#N
-shortcut:
-resize: FL_RESIZE_NONE
-gravity: FL_NorthEast FL_NorthEast
-name: input_name
-callback:
-argument:
-
---------------------
-class: FL_INPUT
-type: NORMAL_INPUT
-box: 370 100 150 40
-boxtype: FL_DOWN_BOX
-colors: FL_COL1 FL_MCOL
-alignment: FL_ALIGN_LEFT
-style: FL_NORMAL_STYLE
-size: FL_DEFAULT_SIZE
-lcol: FL_BLACK
-label: Ref:
-shortcut:
-resize: FL_RESIZE_NONE
-gravity: FL_NorthEast FL_NorthEast
-name: input_ref
-callback:
-argument:
-
---------------------
-class: FL_CHOICE
-type: NORMAL_CHOICE
-box: 370 170 150 40
-boxtype: FL_FRAME_BOX
-colors: FL_COL1 FL_BLACK
-alignment: FL_ALIGN_TOP
-style: FL_NORMAL_STYLE
-size: FL_DEFAULT_SIZE
-lcol: FL_BLACK
-label: Reference type|#R
-shortcut:
-resize: FL_RESIZE_NONE
-gravity: FL_SouthEast FL_SouthEast
-name: choice_type
-callback: C_FormBaseInputCB
-argument: 0
-
---------------------
-class: FL_BUTTON
-type: NORMAL_BUTTON
-box: 370 220 150 40
-boxtype: FL_UP_BOX
-colors: FL_COL1 FL_COL1
-alignment: FL_ALIGN_CENTER
-style: FL_NORMAL_STYLE
-size: FL_DEFAULT_SIZE
-lcol: FL_BLACK
-label: Goto reference|#G
-shortcut:
-resize: FL_RESIZE_NONE
-gravity: FL_SouthEast FL_SouthEast
-name: button_go
-callback: C_FormBaseInputCB
-argument: 0
-
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 10 340 100 30
+box: 5 300 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
-size: FL_DEFAULT_SIZE
+size: FL_NORMAL_SIZE
lcol: FL_BLACK
label: Restore|#R
shortcut:
resize: FL_RESIZE_NONE
-gravity: FL_SouthEast FL_SouthEast
+gravity: FL_SouthWest FL_SouthWest
name: button_restore
callback: C_FormBaseRestoreCB
argument: 0
--------------------
class: FL_BUTTON
type: RETURN_BUTTON
-box: 230 340 90 30
+box: 110 300 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
-size: FL_DEFAULT_SIZE
+size: FL_NORMAL_SIZE
lcol: FL_BLACK
label: OK
shortcut: ^M
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 430 340 90 30
+box: 300 300 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
-size: FL_DEFAULT_SIZE
+size: FL_NORMAL_SIZE
lcol: FL_BLACK
label: Cancel|^[
shortcut:
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 330 340 90 30
+box: 205 300 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
-size: FL_DEFAULT_SIZE
+size: FL_NORMAL_SIZE
lcol: FL_BLACK
label: Apply|#A
shortcut:
callback: C_FormBaseApplyCB
argument: 0
+--------------------
+class: FL_CHOICE
+type: NORMAL_CHOICE
+box: 95 5 295 25
+boxtype: FL_FRAME_BOX
+colors: FL_COL1 FL_BLACK
+alignment: FL_ALIGN_LEFT
+style: FL_NORMAL_STYLE
+size: FL_NORMAL_SIZE
+lcol: FL_BLACK
+label: Document|#D
+shortcut:
+resize: FL_RESIZE_X
+gravity: FL_NorthWest FL_NorthEast
+name: choice_document
+callback: C_FormBaseInputCB
+argument: 0
+ align: FL_ALIGN_LEFT
+
+--------------------
+class: FL_INPUT
+type: NORMAL_INPUT
+box: 110 265 280 25
+boxtype: FL_DOWN_BOX
+colors: FL_COL1 FL_MCOL
+alignment: FL_ALIGN_LEFT
+style: FL_NORMAL_STYLE
+size: FL_NORMAL_SIZE
+lcol: FL_BLACK
+label: Name:|#N
+shortcut:
+resize: FL_RESIZE_X
+gravity: FL_South FL_South
+name: input_name
+callback:
+argument:
+
+--------------------
+class: FL_INPUT
+type: NORMAL_INPUT
+box: 110 195 280 25
+boxtype: FL_DOWN_BOX
+colors: FL_COL1 FL_MCOL
+alignment: FL_ALIGN_LEFT
+style: FL_NORMAL_STYLE
+size: FL_NORMAL_SIZE
+lcol: FL_BLACK
+label: Reference:|#e
+shortcut:
+resize: FL_RESIZE_X
+gravity: FL_South FL_South
+name: input_ref
+callback:
+argument:
+
+--------------------
+class: FL_CHOICE
+type: NORMAL_CHOICE
+box: 110 230 280 25
+boxtype: FL_FRAME_BOX
+colors: FL_COL1 FL_BLACK
+alignment: FL_ALIGN_LEFT
+style: FL_NORMAL_STYLE
+size: FL_NORMAL_SIZE
+lcol: FL_BLACK
+label: Format|#F
+shortcut:
+resize: FL_RESIZE_X
+gravity: FL_South FL_South
+name: choice_format
+callback: C_FormBaseInputCB
+argument: 0
+
+--------------------
+class: FL_BUTTON
+type: NORMAL_BUTTON
+box: 220 155 100 25
+boxtype: FL_UP_BOX
+colors: FL_COL1 FL_COL1
+alignment: FL_ALIGN_CENTER
+style: FL_NORMAL_STYLE
+size: FL_NORMAL_SIZE
+lcol: FL_BLACK
+label: Go to|#G
+shortcut:
+resize: FL_RESIZE_NONE
+gravity: FL_South FL_South
+name: button_go
+callback: C_FormBaseInputCB
+argument: 0
+
==============================
create_the_forms
Number of forms: 1
Unit of measure: FL_COORD_PIXEL
+SnapGrid: 5
=============== FORM ===============
Name: form_spellchecker
-Width: 540
-Height: 280
-Number of Objects: 14
+Width: 215
+Height: 310
+Number of Objects: 12
--------------------
class: FL_BOX
-type: UP_BOX
-box: 0 0 540 280
-boxtype: FL_UP_BOX
+type: FLAT_BOX
+box: 0 0 215 310
+boxtype: FL_FLAT_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
--------------------
class: FL_TEXT
type: NORMAL_TEXT
-box: 80 10 220 30
+box: 5 3 205 25
+boxtype: FL_FLAT_BOX
+colors: FL_COL1 FL_MCOL
+alignment: FL_ALIGN_LEFT|FL_ALIGN_INSIDE
+style: FL_NORMAL_STYLE
+size: FL_NORMAL_SIZE
+lcol: FL_BLACK
+label: Unknown:
+shortcut:
+resize: FL_RESIZE_X
+gravity: FL_NorthWest FL_NorthEast
+name:
+callback:
+argument: 0
+
+--------------------
+class: FL_TEXT
+type: NORMAL_TEXT
+box: 5 25 205 25
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_MCOL
alignment: FL_ALIGN_LEFT|FL_ALIGN_INSIDE
lcol: FL_BLACK
label:
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+resize: FL_RESIZE_X
+gravity: FL_NorthWest FL_NorthEast
name: text
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_INPUT
type: NORMAL_INPUT
-box: 80 40 220 30
+box: 5 70 205 25
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_MCOL
-alignment: FL_ALIGN_LEFT
+alignment: FL_ALIGN_TOP_LEFT
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
-label: Replace
+label: Replacement:|#R
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+resize: FL_RESIZE_X
+gravity: FL_NorthWest FL_NorthEast
name: input
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BROWSER
type: SELECT_BROWSER
-box: 80 70 220 150
+box: 5 185 205 75
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_YELLOW
-alignment: FL_ALIGN_LEFT
+alignment: FL_ALIGN_TOP_LEFT
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
-label: Suggestions
+label: Suggestions:|#g
shortcut:
resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+gravity: FL_NorthWest FL_SouthEast
name: browser
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 310 10 220 30
+box: 5 280 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
-label: Start spellchecking|#S
+label: Start|#S
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+resize: FL_RESIZE_NONE
+gravity: FL_SouthWest FL_SouthWest
name: button_start
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 310 50 220 30
+box: 110 135 100 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
-label: Insert in personal dictionary|#I
+label: Add|#d
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
-name: button_insert
+resize: FL_RESIZE_X
+gravity: FL_North FL_NorthEast
+name: button_add
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 310 110 220 30
+box: 110 105 100 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
-label: Ignore word|#g
+label: Ignore|#I
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+resize: FL_RESIZE_X
+gravity: FL_North FL_NorthEast
name: button_ignore
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 310 80 220 30
+box: 5 135 100 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
-label: Accept word in this session|#A
+label: Accept|#A
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+resize: FL_RESIZE_X
+gravity: FL_NorthWest FL_North
name: button_accept
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 310 200 220 30
+box: 120 280 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
-label: Stop spellchecking|#T
+label: Close|#C^[
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
-name: button_stop
-callback: C_FormBaseInputCB
-argument: 0
-
---------------------
-class: FL_BUTTON
-type: NORMAL_BUTTON
-box: 310 240 220 30
-boxtype: FL_UP_BOX
-colors: FL_COL1 FL_COL1
-alignment: FL_ALIGN_CENTER
-style: FL_NORMAL_STYLE
-size: FL_NORMAL_SIZE
-lcol: FL_BLACK
-label: Close Spellchecker|#C^[
-shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+resize: FL_RESIZE_NONE
+gravity: FL_SouthEast FL_SouthEast
name: button_close
callback: C_FormBaseCancelCB
argument: 0
---------------------
-class: FL_BOX
-type: NO_BOX
-box: 10 250 50 20
-boxtype: FL_NO_BOX
-colors: FL_COL1 FL_COL1
-alignment: FL_ALIGN_LEFT|FL_ALIGN_INSIDE
-style: FL_NORMAL_STYLE
-size: FL_NORMAL_SIZE
-lcol: FL_BLACK
-label: 0 %
-shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
-name:
-callback:
-argument:
-
---------------------
-class: FL_BOX
-type: NO_BOX
-box: 250 250 50 20
-boxtype: FL_NO_BOX
-colors: FL_COL1 FL_COL1
-alignment: FL_ALIGN_RIGHT|FL_ALIGN_INSIDE
-style: FL_NORMAL_STYLE
-size: FL_NORMAL_SIZE
-lcol: FL_BLACK
-label: 100 %
-shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
-name:
-callback:
-argument:
-
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 310 140 220 30
+box: 5 105 100 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
-label: Replace word|#R
+label: Replace|#R
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+resize: FL_RESIZE_X
+gravity: FL_NorthWest FL_North
name: button_replace
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_SLIDER
type: HOR_FILL_SLIDER
-box: 10 230 290 20
+box: 5 265 205 10
boxtype: FL_DOWN_BOX
colors: FL_BLUE FL_COL1
alignment: FL_ALIGN_LEFT
lcol: FL_BLACK
label:
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+resize: FL_RESIZE_X
+gravity: FL_SouthWest FL_SouthEast
name: slider
callback:
argument:
+ bounds: 0 100
+ value: 0
+ step: 1
==============================
create_the_forms
Number of forms: 1
Unit of measure: FL_COORD_PIXEL
+SnapGrid: 5
=============== FORM ===============
Name: form_toc
-Width: 420
-Height: 340
+Width: 375
+Height: 250
Number of Objects: 5
--------------------
class: FL_BOX
-type: UP_BOX
-box: 0 0 420 340
-boxtype: FL_UP_BOX
+type: FLAT_BOX
+box: 0 0 375 250
+boxtype: FL_FLAT_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
--------------------
class: FL_BROWSER
type: HOLD_BROWSER
-box: 10 10 400 280
+box: 5 5 365 205
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_YELLOW
alignment: FL_ALIGN_BOTTOM
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 200 300 100 30
+box: 185 220 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
label: Update|#U
shortcut:
resize: FL_RESIZE_NONE
-gravity: FL_SouthEast FL_SouthEast
+gravity: FL_SouthWest FL_SouthWest
name: button_update
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_CHOICE
type: NORMAL_CHOICE
-box: 60 300 130 30
+box: 60 220 120 25
boxtype: FL_FRAME_BOX
colors: FL_COL1 FL_BLACK
alignment: FL_ALIGN_LEFT
style: FL_NORMAL_STYLE
-size: FL_DEFAULT_SIZE
+size: FL_NORMAL_SIZE
lcol: FL_BLACK
label: Type|#T
shortcut:
resize: FL_RESIZE_NONE
-gravity: FL_SouthEast FL_SouthEast
+gravity: FL_SouthWest FL_SouthWest
name: choice_toc_type
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BUTTON
-type: RETURN_BUTTON
-box: 310 300 100 30
+type: NORMAL_BUTTON
+box: 280 220 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
size: FL_NORMAL_SIZE
lcol: FL_BLACK
label: Close|^[^M
-shortcut:
+shortcut:
resize: FL_RESIZE_NONE
gravity: FL_SouthEast FL_SouthEast
name: button_close
Number of forms: 1
Unit of measure: FL_COORD_PIXEL
+SnapGrid: 5
=============== FORM ===============
Name: form_url
-Width: 520
-Height: 170
+Width: 395
+Height: 125
Number of Objects: 8
--------------------
class: FL_BOX
-type: UP_BOX
-box: 0 0 520 170
-boxtype: FL_UP_BOX
+type: FLAT_BOX
+box: 0 0 395 125
+boxtype: FL_FLAT_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
lcol: FL_BLACK
label:
shortcut:
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
+resize: FL_RESIZE_X
+gravity: FL_NorthWest FL_SouthEast
name:
callback:
argument:
--------------------
class: FL_INPUT
type: NORMAL_INPUT
-box: 70 50 440 30
+box: 70 30 320 25
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_MCOL
alignment: FL_ALIGN_LEFT
label: URL|#U
shortcut:
resize: FL_RESIZE_X
-gravity: FL_NorthWest FL_NorthEast
+gravity: FL_West FL_East
name: input_url
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_INPUT
type: NORMAL_INPUT
-box: 70 90 440 30
+box: 70 60 320 25
boxtype: FL_DOWN_BOX
colors: FL_COL1 FL_MCOL
alignment: FL_ALIGN_LEFT
label: Name|#N
shortcut:
resize: FL_RESIZE_X
-gravity: FL_NorthWest FL_NorthEast
+gravity: FL_West FL_East
name: input_name
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_CHECKBUTTON
type: PUSH_BUTTON
-box: 480 10 30 30
+box: 70 5 25 25
boxtype: FL_NO_BOX
colors: FL_COL1 FL_YELLOW
-alignment: FL_ALIGN_LEFT
+alignment: FL_ALIGN_RIGHT
style: FL_NORMAL_STYLE
size: FL_NORMAL_SIZE
lcol: FL_BLACK
label: HTML type|#H
shortcut:
-resize: FL_RESIZE_X
-gravity: FL_NorthWest FL_NorthEast
+resize: FL_RESIZE_NONE
+gravity: FL_West FL_West
name: check_html
callback: C_FormBaseInputCB
argument: 0
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 410 130 100 30
+box: 300 95 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
--------------------
class: FL_BUTTON
-type: RETURN_BUTTON
-box: 190 130 100 30
+type: NORMAL_BUTTON
+box: 110 95 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
-size: FL_DEFAULT_SIZE
+size: FL_NORMAL_SIZE
lcol: FL_BLACK
label: OK
-shortcut: ^M
-resize: FL_RESIZE_ALL
+shortcut:
+resize: FL_RESIZE_NONE
gravity: FL_SouthEast FL_SouthEast
name: button_ok
callback: C_FormBaseOKCB
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 300 130 100 30
+box: 205 95 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
--------------------
class: FL_BUTTON
type: NORMAL_BUTTON
-box: 10 130 100 30
+box: 5 95 90 25
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
label: Restore|#R
shortcut:
resize: FL_RESIZE_NONE
-gravity: FL_SouthEast FL_SouthEast
+gravity: FL_SouthWest FL_SouthWest
name: button_restore
callback: C_FormBaseRestoreCB
argument: 0
+2002-09-29 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * insetgraphics.C: disfuscated use of ']' in built output string.
+
2002-09-06 Lars Gullik Bjønnes <larsbj@gullik.net>
* remove all INHERIT_LANG and INHERIT_LANGUAGE commented code.
IsFileReadable(file_ + ".eps") || // original.eps
IsFileReadable(file_ + ".ps")); // original.ps
string const message = file_exists ?
- string() : string("bb = 0 0 200 100, draft, type=eps]");
+ string() : string("bb = 0 0 200 100, draft, type=eps");
// if !message.empty() than there was no existing file
// "filename(.(e)ps)" found. In this case LaTeX
// draws only a rectangle with the above bb and the
lyxerr[Debug::GRAPHICS] << "\tOpts = " << opts << endl;
if (!opts.empty() && !message.empty())
- before += ("[%\n" + opts + ',' + message);
- else if (!message.empty())
- before += ("[%\n" + message);
- else if (!opts.empty())
- before += ("[%\n" + opts + ']');
+ before += ("[%\n" + opts + ',' + message + ']');
+ else if (!opts.empty() || !message.empty())
+ before += ("[%\n" + opts + message + ']');
lyxerr[Debug::GRAPHICS]
<< "\tBefore = " << before