2000-06-12 11:27:15 +00:00
|
|
|
--- bullet_forms.c.orig Fri Jun 9 17:38:18 2000
|
|
|
|
+++ bullet_forms.c Fri Jun 9 17:39:31 2000
|
|
|
|
@@ -3,6 +3,8 @@
|
1999-09-27 18:44:28 +00:00
|
|
|
#include "forms.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "bullet_forms.h"
|
|
|
|
+#include "bmtable.h"
|
2000-06-12 11:27:15 +00:00
|
|
|
+#include "support/filetools.h"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
FD_form_bullet *create_form_form_bullet(void)
|
|
|
|
{
|
2000-06-12 11:27:15 +00:00
|
|
|
@@ -10,10 +12,21 @@
|
1999-09-27 18:44:28 +00:00
|
|
|
FD_form_bullet *fdui = (FD_form_bullet *) fl_calloc(1, sizeof(*fdui));
|
|
|
|
|
|
|
|
fdui->form_bullet = fl_bgn_form(FL_NO_BOX, 370, 390);
|
|
|
|
+ fl_set_border_width(-1);
|
|
|
|
obj = fl_add_box(FL_UP_BOX,0,0,370,390,"");
|
|
|
|
- fdui->replace_this_with_a_BMTable = obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,90,105,260,180,"");
|
|
|
|
- fl_set_object_boxtype(obj,FL_NO_BOX);
|
|
|
|
- fl_set_pixmapbutton_file(obj, "psnfss2.xpm");
|
|
|
|
+
|
|
|
|
+ // make the border thick again to improve the bmtable looks
|
|
|
|
+ fl_set_border_width(-3);
|
|
|
|
+
|
|
|
|
+ fdui->bmtable_bullet_panel = obj = fl_add_bmtable(1, 90, 105, 265, 180, "");
|
|
|
|
+ fl_set_object_callback(obj, BulletBMTableCB, 0);
|
|
|
|
+ fl_set_object_lcol(obj, FL_BLUE);
|
|
|
|
+ fl_set_object_boxtype(obj, FL_UP_BOX);
|
2000-06-12 11:27:15 +00:00
|
|
|
+ fl_set_bmtable_pixmap_file(obj, 6, 6,
|
|
|
|
+ LibFileSearch("images",
|
|
|
|
+ "standard.xpm").c_str());
|
1999-09-27 18:44:28 +00:00
|
|
|
+
|
|
|
|
+ fl_set_border_width(-1);
|
|
|
|
obj = fl_add_frame(FL_ENGRAVED_FRAME,95,20,255,70,"");
|
|
|
|
obj = fl_add_frame(FL_ENGRAVED_FRAME,0,340,370,50,"");
|
|
|
|
fdui->choice_bullet_size = obj = fl_add_choice(FL_NORMAL_CHOICE,15,45,65,30,"Size|#z");
|
2000-06-12 11:27:15 +00:00
|
|
|
@@ -33,6 +46,8 @@
|
|
|
|
fdui->input_bullet_latex = obj = fl_add_input(FL_NORMAL_INPUT,80,300,275,30,"LaTeX|#L");
|
1999-09-27 18:44:28 +00:00
|
|
|
fl_set_object_lsize(obj,FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lstyle(obj,FL_FIXED_STYLE);
|
|
|
|
+ fl_set_input_return(obj, FL_RETURN_CHANGED);
|
2000-06-12 11:27:15 +00:00
|
|
|
+ fl_set_input_maxchars(obj, 80);
|
1999-09-27 18:44:28 +00:00
|
|
|
fl_set_object_callback(obj,InputBulletLaTeXCB,0);
|
|
|
|
|
|
|
|
fdui->radio_bullet_depth = fl_bgn_group();
|