mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 23:42:15 +08:00
Fl_Value_Slider::draw_bg() didn't always apply the clipping
rectangle (STR #235) fl_filename_relative() returned the wrong string if the absolute pathname was equal to the current working directory (STR #224) Fl_Help_Dialog didn't correctly restore the scroll position when going forward/back in the link history if the file changed (STR #218) glutGetModifiers() did not mask off extra state bits, confusing some GLUT-based applications (STR #213) Fixed mouse capture problems on MacOS X (STR #209, STR #229) Fl_Sys_Menu_Bar is now built into the library for MacOS X (STR #229) Fl_Menu_ now provides item_pathname() methods to get the "pathname" of a menu item, e.g. "File/Quit" (STR #283) Fl_Text_Display now provides cursor_color() methods to get and set the cursor color (STR #271) Fl_Scroll didn't honor FL_NO_BOX (STR #305) FLUID declaration blocks didn't support public/private definitions (STR #301) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3231 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -2,6 +2,28 @@ CHANGES IN FLTK 1.1.5rc1
|
|||||||
|
|
||||||
- Documentation updates (STR #245, STR #250, STR #277,
|
- Documentation updates (STR #245, STR #250, STR #277,
|
||||||
STR #281)
|
STR #281)
|
||||||
|
- Fl_Value_Slider::draw_bg() didn't always apply the
|
||||||
|
clipping rectangle (STR #235)
|
||||||
|
- fl_filename_relative() returned the wrong string if
|
||||||
|
the absolute pathname was equal to the current working
|
||||||
|
directory (STR #224)
|
||||||
|
- Fl_Help_Dialog didn't correctly restore the scroll
|
||||||
|
position when going forward/back in the link history
|
||||||
|
if the file changed (STR #218)
|
||||||
|
- glutGetModifiers() did not mask off extra state bits,
|
||||||
|
confusing some GLUT-based applications (STR #213)
|
||||||
|
- Fixed mouse capture problems on MacOS X (STR #209, STR
|
||||||
|
#229)
|
||||||
|
- Fl_Sys_Menu_Bar is now built into the library for
|
||||||
|
MacOS X (STR #229)
|
||||||
|
- Fl_Menu_ now provides item_pathname() methods to get
|
||||||
|
the "pathname" of a menu item, e.g. "File/Quit" (STR
|
||||||
|
#283)
|
||||||
|
- Fl_Text_Display now provides cursor_color() methods to
|
||||||
|
get and set the cursor color (STR #271)
|
||||||
|
- Fl_Scroll didn't honor FL_NO_BOX (STR #305)
|
||||||
|
- FLUID declaration blocks didn't support public/private
|
||||||
|
definitions (STR #301)
|
||||||
- Fl_Preferences incorrectly created the preferences
|
- Fl_Preferences incorrectly created the preferences
|
||||||
directory before necessary (STR #247)
|
directory before necessary (STR #247)
|
||||||
- The WIN32 project files still defined the (obsolete)
|
- The WIN32 project files still defined the (obsolete)
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
// generated by Fast Light User Interface Designer (fluid) version 1.0104
|
// generated by Fast Light User Interface Designer (fluid) version 1.0105
|
||||||
|
|
||||||
#ifndef Fl_Help_Dialog_H
|
#ifndef Fl_Help_Dialog_H
|
||||||
#define Fl_Help_Dialog_H
|
#define Fl_Help_Dialog_H
|
||||||
|
|||||||
+3
-2
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Menu_.H,v 1.7.2.4.2.7 2003/06/15 04:47:28 easysw Exp $"
|
// "$Id: Fl_Menu_.H,v 1.7.2.4.2.8 2004/03/11 05:17:10 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Menu base class header file for the Fast Light Tool Kit (FLTK).
|
// Menu base class header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -45,6 +45,7 @@ protected:
|
|||||||
unsigned textcolor_;
|
unsigned textcolor_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
int item_pathname(char *name, int namelen, const Fl_Menu_Item *finditem=0) const;
|
||||||
const Fl_Menu_Item* picked(const Fl_Menu_Item*);
|
const Fl_Menu_Item* picked(const Fl_Menu_Item*);
|
||||||
|
|
||||||
Fl_Menu_(int,int,int,int,const char * =0);
|
Fl_Menu_(int,int,int,int,const char * =0);
|
||||||
@@ -94,5 +95,5 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Menu_.H,v 1.7.2.4.2.7 2003/06/15 04:47:28 easysw Exp $".
|
// End of "$Id: Fl_Menu_.H,v 1.7.2.4.2.8 2004/03/11 05:17:10 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Text_Display.H,v 1.4.2.13 2003/01/30 21:40:18 easysw Exp $"
|
// "$Id: Fl_Text_Display.H,v 1.4.2.14 2004/03/11 05:17:11 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Header file for Fl_Text_Display class.
|
// Header file for Fl_Text_Display class.
|
||||||
//
|
//
|
||||||
@@ -98,6 +98,8 @@ class FL_EXPORT Fl_Text_Display: public Fl_Group {
|
|||||||
void show_cursor(int b = 1);
|
void show_cursor(int b = 1);
|
||||||
void hide_cursor() { show_cursor(0); }
|
void hide_cursor() { show_cursor(0); }
|
||||||
void cursor_style(int style);
|
void cursor_style(int style);
|
||||||
|
Fl_Color cursor_color() const {return mCursor_color;}
|
||||||
|
void cursor_color(Fl_Color n) {mCursor_color = n;}
|
||||||
int scrollbar_width() { return scrollbar_width_; }
|
int scrollbar_width() { return scrollbar_width_; }
|
||||||
Fl_Align scrollbar_align() { return scrollbar_align_; }
|
Fl_Align scrollbar_align() { return scrollbar_align_; }
|
||||||
void scrollbar_width(int W) { scrollbar_width_ = W; }
|
void scrollbar_width(int W) { scrollbar_width_ = W; }
|
||||||
@@ -288,5 +290,5 @@ class FL_EXPORT Fl_Text_Display: public Fl_Group {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Text_Display.H,v 1.4.2.13 2003/01/30 21:40:18 easysw Exp $".
|
// End of "$Id: Fl_Text_Display.H,v 1.4.2.14 2004/03/11 05:17:11 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: glut.H,v 1.6.2.10.2.5 2003/01/30 21:40:50 easysw Exp $"
|
// "$Id: glut.H,v 1.6.2.10.2.6 2004/03/11 05:17:11 easysw Exp $"
|
||||||
//
|
//
|
||||||
// GLUT emulation header file for the Fast Light Tool Kit (FLTK).
|
// GLUT emulation header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -367,11 +367,11 @@ enum {
|
|||||||
//#define GLUT_NUM_DIALS 608
|
//#define GLUT_NUM_DIALS 608
|
||||||
//#define GLUT_NUM_TABLET_BUTTONS 609
|
//#define GLUT_NUM_TABLET_BUTTONS 609
|
||||||
|
|
||||||
inline int glutGetModifiers() {return Fl::event_state();}
|
|
||||||
// WARNING: these values are different than GLUT uses:
|
// WARNING: these values are different than GLUT uses:
|
||||||
# define GLUT_ACTIVE_SHIFT FL_SHIFT
|
# define GLUT_ACTIVE_SHIFT FL_SHIFT
|
||||||
# define GLUT_ACTIVE_CTRL FL_CTRL
|
# define GLUT_ACTIVE_CTRL FL_CTRL
|
||||||
# define GLUT_ACTIVE_ALT FL_ALT
|
# define GLUT_ACTIVE_ALT FL_ALT
|
||||||
|
inline int glutGetModifiers() {return Fl::event_state() & (GLUT_ACTIVE_SHIFT | GLUT_ACTIVE_CTRL | GLUT_ACTIVE_ALT);}
|
||||||
|
|
||||||
int glutLayerGet(GLenum);
|
int glutLayerGet(GLenum);
|
||||||
# define GLUT_OVERLAY_POSSIBLE 800
|
# define GLUT_OVERLAY_POSSIBLE 800
|
||||||
@@ -470,5 +470,5 @@ extern void APIENTRY glutSolidIcosahedron();
|
|||||||
#endif /* !__glut_h__ */
|
#endif /* !__glut_h__ */
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: glut.H,v 1.6.2.10.2.5 2003/01/30 21:40:50 easysw Exp $".
|
// End of "$Id: glut.H,v 1.6.2.10.2.6 2004/03/11 05:17:11 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ be "private": a dynamically allocated array managed by the Fl_Menu_.
|
|||||||
<LI><A href=#Fl_Menu_.copy>copy</A></LI>
|
<LI><A href=#Fl_Menu_.copy>copy</A></LI>
|
||||||
<LI><A href=#Fl_Menu_.down_box>down_box</A></LI>
|
<LI><A href=#Fl_Menu_.down_box>down_box</A></LI>
|
||||||
<LI><A href=#Fl_Menu_.global>global</A></LI>
|
<LI><A href=#Fl_Menu_.global>global</A></LI>
|
||||||
|
<LI><A href=#Fl_Menu_.item_pathname>global</A></LI>
|
||||||
<LI><A href=#Fl_Menu_.menu>menu</A></LI>
|
<LI><A href=#Fl_Menu_.menu>menu</A></LI>
|
||||||
</UL>
|
</UL>
|
||||||
</TD><TD align=left valign=top>
|
</TD><TD align=left valign=top>
|
||||||
@@ -213,6 +214,25 @@ not have to be put in a window at all).
|
|||||||
<P>Currently there can be only one <TT>global()</TT>menu. Setting a new
|
<P>Currently there can be only one <TT>global()</TT>menu. Setting a new
|
||||||
one will replace the old one. There is no way to remove the <TT>
|
one will replace the old one. There is no way to remove the <TT>
|
||||||
global()</TT> setting (so don't destroy the widget!)</P>
|
global()</TT> setting (so don't destroy the widget!)</P>
|
||||||
|
|
||||||
|
<h4><a name='Fl_Menu_.item_pathnaem'>int Fl_Menu_::item_pathname(char *name, int namelen ) const;</a><br>
|
||||||
|
int Fl_Menu_::item_pathname(char *name, int namelen,
|
||||||
|
const Fl_Menu_Item *finditem) const;</h4>
|
||||||
|
|
||||||
|
<p>Returns the 'menu pathname' (eg. "File/Quit") for the recently picked item in user supplied string 'name'. Useful in the callback function for a menu item, to determine the last picked item's 'menu pathname' string.
|
||||||
|
|
||||||
|
<p>If finditem is specified, name will contain the 'menu pathname' for that item.
|
||||||
|
|
||||||
|
<p>Returns:
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>0 - OK: 'name' has the pathname, guaranteed not longer than namelen
|
||||||
|
<li>-1 - Failed: 'finditem' was not found in the menu
|
||||||
|
<li>-2 - Failed: 'name' is not large enough to handle the menu names
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>In the case of errors (-1 or -2), 'name' will be an empty string.
|
||||||
|
|
||||||
<H4><A name=Fl_Menu_.text>const char* Fl_Menu_::text() const
|
<H4><A name=Fl_Menu_.text>const char* Fl_Menu_::text() const
|
||||||
<BR> const char* Fl_Menu_::text(int i) const</A></H4>
|
<BR> const char* Fl_Menu_::text(int i) const</A></H4>
|
||||||
Returns the title of the last item chosen, or of item <TT>i</TT>.
|
Returns the title of the last item chosen, or of item <TT>i</TT>.
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ class.
|
|||||||
<LI><A HREF="#Fl_Text_Display.Fl_Text_Display">Fl_Text_Display</A></LI>
|
<LI><A HREF="#Fl_Text_Display.Fl_Text_Display">Fl_Text_Display</A></LI>
|
||||||
<LI><A HREF="#Fl_Text_Display.~Fl_Text_Display">~Fl_Text_Display</A></LI>
|
<LI><A HREF="#Fl_Text_Display.~Fl_Text_Display">~Fl_Text_Display</A></LI>
|
||||||
<LI><A HREF="#Fl_Text_Display.buffer">buffer</A></LI>
|
<LI><A HREF="#Fl_Text_Display.buffer">buffer</A></LI>
|
||||||
|
<LI><A HREF="#Fl_Text_Display.cursor_color">cursor_color</A></LI>
|
||||||
<LI><A HREF="#Fl_Text_Display.cursor_style">cursor_style</A></LI>
|
<LI><A HREF="#Fl_Text_Display.cursor_style">cursor_style</A></LI>
|
||||||
<LI><A HREF="#Fl_Text_Display.hide_cursor">hide_cursor</A></LI>
|
<LI><A HREF="#Fl_Text_Display.hide_cursor">hide_cursor</A></LI>
|
||||||
<LI><A HREF="#Fl_Text_Display.highlight_data">highlight_data</A></LI>
|
<LI><A HREF="#Fl_Text_Display.highlight_data">highlight_data</A></LI>
|
||||||
@@ -93,6 +94,11 @@ Fl_Text_Buffer* buffer();</A></H4>
|
|||||||
<P>Sets or gets the current text buffer associated with the text widget.
|
<P>Sets or gets the current text buffer associated with the text widget.
|
||||||
Multiple text widgets can be associated with the same text buffer.
|
Multiple text widgets can be associated with the same text buffer.
|
||||||
|
|
||||||
|
<H4><A NAME="Fl_Text_Display.cursor_color">void cursor_color(Fl_Color c);</A><br>
|
||||||
|
Fl_Color cursor_color();</H4>
|
||||||
|
|
||||||
|
<P>Sets or gets the text cursor color.
|
||||||
|
|
||||||
<H4><A NAME="Fl_Text_Display.cursor_style">void cursor_style(int style);</A></H4>
|
<H4><A NAME="Fl_Text_Display.cursor_style">void cursor_style(int style);</A></H4>
|
||||||
|
|
||||||
<P>Sets the text cursor style to one of the following:
|
<P>Sets the text cursor style to one of the following:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Function_Type.cxx,v 1.15.2.16.2.13 2003/08/02 21:17:30 easysw Exp $"
|
// "$Id: Fl_Function_Type.cxx,v 1.15.2.16.2.14 2004/03/11 05:17:11 easysw Exp $"
|
||||||
//
|
//
|
||||||
// C function type code for the Fast Light Tool Kit (FLTK).
|
// C function type code for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -433,7 +433,16 @@ void Fl_CodeBlock_Type::write_code2() {
|
|||||||
|
|
||||||
////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
int Fl_Decl_Type::is_public() const {return public_;}
|
int Fl_Decl_Type::is_public() const
|
||||||
|
{
|
||||||
|
Fl_Type *p = Fl_Type::current;
|
||||||
|
while (p && !p->is_decl_block()) p = p->parent;
|
||||||
|
if(p && p->is_public() && public_)
|
||||||
|
return public_;
|
||||||
|
else if(!p)
|
||||||
|
return public_;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
Fl_Type *Fl_Decl_Type::make() {
|
Fl_Type *Fl_Decl_Type::make() {
|
||||||
Fl_Type *p = Fl_Type::current;
|
Fl_Type *p = Fl_Type::current;
|
||||||
@@ -525,11 +534,14 @@ void Fl_Decl_Type::write_code2() {}
|
|||||||
|
|
||||||
////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
int Fl_DeclBlock_Type::is_public() const {return public_;}
|
||||||
|
|
||||||
Fl_Type *Fl_DeclBlock_Type::make() {
|
Fl_Type *Fl_DeclBlock_Type::make() {
|
||||||
Fl_Type *p = Fl_Type::current;
|
Fl_Type *p = Fl_Type::current;
|
||||||
while (p && !p->is_decl_block()) p = p->parent;
|
while (p && !p->is_decl_block()) p = p->parent;
|
||||||
Fl_DeclBlock_Type *o = new Fl_DeclBlock_Type();
|
Fl_DeclBlock_Type *o = new Fl_DeclBlock_Type();
|
||||||
o->name("#if 1");
|
o->name("#if 1");
|
||||||
|
o->public_ = 0;
|
||||||
o->after = strdup("#endif");
|
o->after = strdup("#endif");
|
||||||
o->add(p);
|
o->add(p);
|
||||||
o->factory = this;
|
o->factory = this;
|
||||||
@@ -538,12 +550,15 @@ Fl_Type *Fl_DeclBlock_Type::make() {
|
|||||||
|
|
||||||
void Fl_DeclBlock_Type::write_properties() {
|
void Fl_DeclBlock_Type::write_properties() {
|
||||||
Fl_Type::write_properties();
|
Fl_Type::write_properties();
|
||||||
|
if (public_) write_string("public");
|
||||||
write_string("after");
|
write_string("after");
|
||||||
write_word(after);
|
write_word(after);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Fl_DeclBlock_Type::read_property(const char *c) {
|
void Fl_DeclBlock_Type::read_property(const char *c) {
|
||||||
if (!strcmp(c,"after")) {
|
if(!strcmp(c,"public")) {
|
||||||
|
public_ = 1;
|
||||||
|
} else if (!strcmp(c,"after")) {
|
||||||
storestring(read_word(),after);
|
storestring(read_word(),after);
|
||||||
} else {
|
} else {
|
||||||
Fl_Type::read_property(c);
|
Fl_Type::read_property(c);
|
||||||
@@ -553,6 +568,7 @@ void Fl_DeclBlock_Type::read_property(const char *c) {
|
|||||||
void Fl_DeclBlock_Type::open() {
|
void Fl_DeclBlock_Type::open() {
|
||||||
if (!declblock_panel) make_declblock_panel();
|
if (!declblock_panel) make_declblock_panel();
|
||||||
decl_before_input->static_value(name());
|
decl_before_input->static_value(name());
|
||||||
|
declblock_public_button->value(public_);
|
||||||
decl_after_input->static_value(after);
|
decl_after_input->static_value(after);
|
||||||
declblock_panel->show();
|
declblock_panel->show();
|
||||||
const char* message = 0;
|
const char* message = 0;
|
||||||
@@ -574,6 +590,7 @@ void Fl_DeclBlock_Type::open() {
|
|||||||
message = c_check(c&&c[0]=='#' ? c+1 : c);
|
message = c_check(c&&c[0]=='#' ? c+1 : c);
|
||||||
if (message) continue;
|
if (message) continue;
|
||||||
storestring(c,after);
|
storestring(c,after);
|
||||||
|
public_ = declblock_public_button->value();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
BREAK2:
|
BREAK2:
|
||||||
@@ -584,12 +601,16 @@ Fl_DeclBlock_Type Fl_DeclBlock_type;
|
|||||||
|
|
||||||
void Fl_DeclBlock_Type::write_code1() {
|
void Fl_DeclBlock_Type::write_code1() {
|
||||||
const char* c = name();
|
const char* c = name();
|
||||||
if (c) write_c("%s\n", c);
|
if (public_)
|
||||||
|
write_h("%s\n", c);
|
||||||
|
write_c("%s\n", c);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Fl_DeclBlock_Type::write_code2() {
|
void Fl_DeclBlock_Type::write_code2() {
|
||||||
const char* c = after;
|
const char* c = after;
|
||||||
if (c) write_c("%s\n", c);
|
if (public_)
|
||||||
|
write_h("%s\n", c);
|
||||||
|
write_c("%s\n", c);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////
|
||||||
@@ -740,5 +761,5 @@ void Fl_Class_Type::write_code2() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Function_Type.cxx,v 1.15.2.16.2.13 2003/08/02 21:17:30 easysw Exp $".
|
// End of "$Id: Fl_Function_Type.cxx,v 1.15.2.16.2.14 2004/03/11 05:17:11 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+4
-2
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Type.h,v 1.5.2.11.2.10 2003/09/03 19:50:54 easysw Exp $"
|
// "$Id: Fl_Type.h,v 1.5.2.11.2.11 2004/03/11 05:17:11 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Widget type header file for the Fast Light Tool Kit (FLTK).
|
// Widget type header file for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -197,6 +197,7 @@ public:
|
|||||||
|
|
||||||
class Fl_DeclBlock_Type : public Fl_Type {
|
class Fl_DeclBlock_Type : public Fl_Type {
|
||||||
const char* after;
|
const char* after;
|
||||||
|
char public_;
|
||||||
public:
|
public:
|
||||||
Fl_Type *make();
|
Fl_Type *make();
|
||||||
void write_code1();
|
void write_code1();
|
||||||
@@ -207,6 +208,7 @@ public:
|
|||||||
void read_property(const char *);
|
void read_property(const char *);
|
||||||
int is_parent() const {return 1;}
|
int is_parent() const {return 1;}
|
||||||
int is_decl_block() const {return 1;}
|
int is_decl_block() const {return 1;}
|
||||||
|
virtual int is_public() const;
|
||||||
int pixmapID() { return 11; }
|
int pixmapID() { return 11; }
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -594,5 +596,5 @@ int storestring(const char *n, const char * & p, int nostrip=0);
|
|||||||
extern int include_H_from_C;
|
extern int include_H_from_C;
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Type.h,v 1.5.2.11.2.10 2003/09/03 19:50:54 easysw Exp $".
|
// End of "$Id: Fl_Type.h,v 1.5.2.11.2.11 2004/03/11 05:17:11 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+19
-12
@@ -1,4 +1,4 @@
|
|||||||
// generated by Fast Light User Interface Designer (fluid) version 1.0104
|
// generated by Fast Light User Interface Designer (fluid) version 1.0105
|
||||||
|
|
||||||
#include "function_panel.h"
|
#include "function_panel.h"
|
||||||
#include <FL/Fl_Pixmap.H>
|
#include <FL/Fl_Pixmap.H>
|
||||||
@@ -73,7 +73,7 @@ Fl_Button *code_panel_cancel=(Fl_Button *)0;
|
|||||||
|
|
||||||
Fl_Window* make_code_panel() {
|
Fl_Window* make_code_panel() {
|
||||||
Fl_Window* w;
|
Fl_Window* w;
|
||||||
{ Fl_Window* o = code_panel = new Fl_Window(548, 175, "code");
|
{ Fl_Window* o = code_panel = new Fl_Window(545, 175, "code");
|
||||||
w = o;
|
w = o;
|
||||||
{ Fl_Group* o = new Fl_Group(10, 10, 525, 120);
|
{ Fl_Group* o = new Fl_Group(10, 10, 525, 120);
|
||||||
o->box(FL_DOWN_FRAME);
|
o->box(FL_DOWN_FRAME);
|
||||||
@@ -153,11 +153,13 @@ Fl_Return_Button *declblock_panel_ok=(Fl_Return_Button *)0;
|
|||||||
|
|
||||||
Fl_Button *declblock_panel_cancel=(Fl_Button *)0;
|
Fl_Button *declblock_panel_cancel=(Fl_Button *)0;
|
||||||
|
|
||||||
|
Fl_Light_Button *declblock_public_button=(Fl_Light_Button *)0;
|
||||||
|
|
||||||
Fl_Window* make_declblock_panel() {
|
Fl_Window* make_declblock_panel() {
|
||||||
Fl_Window* w;
|
Fl_Window* w;
|
||||||
{ Fl_Window* o = declblock_panel = new Fl_Window(295, 130, "declaration block");
|
{ Fl_Window* o = declblock_panel = new Fl_Window(295, 155, "declaration block");
|
||||||
w = o;
|
w = o;
|
||||||
{ Fl_Input* o = decl_before_input = new Fl_Input(10, 10, 275, 25);
|
{ Fl_Input* o = decl_before_input = new Fl_Input(10, 35, 275, 25);
|
||||||
o->tooltip("#ifdef or similar conditional declaration block.");
|
o->tooltip("#ifdef or similar conditional declaration block.");
|
||||||
o->labelsize(12);
|
o->labelsize(12);
|
||||||
o->textfont(4);
|
o->textfont(4);
|
||||||
@@ -165,22 +167,27 @@ Fl_Window* make_declblock_panel() {
|
|||||||
o->when(FL_WHEN_NEVER);
|
o->when(FL_WHEN_NEVER);
|
||||||
Fl_Group::current()->resizable(o);
|
Fl_Group::current()->resizable(o);
|
||||||
}
|
}
|
||||||
{ Fl_Box* o = new Fl_Box(10, 35, 275, 25, "\"\\n...child code...\\n\" is inserted here");
|
{ Fl_Box* o = new Fl_Box(10, 60, 275, 25, "\"\\n...child code...\\n\" is inserted here");
|
||||||
o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
|
o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
|
||||||
}
|
}
|
||||||
{ Fl_Input* o = decl_after_input = new Fl_Input(10, 60, 275, 25);
|
{ Fl_Input* o = decl_after_input = new Fl_Input(10, 85, 275, 25);
|
||||||
o->tooltip("#endif or similar declaration code block.");
|
o->tooltip("#endif or similar declaration code block.");
|
||||||
o->labelsize(12);
|
o->labelsize(12);
|
||||||
o->textfont(4);
|
o->textfont(4);
|
||||||
o->align(FL_ALIGN_TOP_LEFT);
|
o->align(FL_ALIGN_TOP_LEFT);
|
||||||
o->when(FL_WHEN_NEVER);
|
o->when(FL_WHEN_NEVER);
|
||||||
}
|
}
|
||||||
{ Fl_Return_Button* o = declblock_panel_ok = new Fl_Return_Button(120, 95, 80, 25, "OK");
|
{ Fl_Return_Button* o = declblock_panel_ok = new Fl_Return_Button(120, 120, 80, 25, "OK");
|
||||||
w->hotspot(o);
|
w->hotspot(o);
|
||||||
}
|
}
|
||||||
{ Fl_Button* o = declblock_panel_cancel = new Fl_Button(205, 95, 80, 25, "Cancel");
|
{ Fl_Button* o = declblock_panel_cancel = new Fl_Button(205, 120, 80, 25, "Cancel");
|
||||||
o->shortcut(0xff1b);
|
o->shortcut(0xff1b);
|
||||||
}
|
}
|
||||||
|
{ Fl_Light_Button* o = declblock_public_button = new Fl_Light_Button(9, 6, 65, 25, "public");
|
||||||
|
o->tooltip("Make the declaration publicly accessible.");
|
||||||
|
o->labelsize(10);
|
||||||
|
o->when(FL_WHEN_NEVER);
|
||||||
|
}
|
||||||
o->set_modal();
|
o->set_modal();
|
||||||
o->end();
|
o->end();
|
||||||
}
|
}
|
||||||
@@ -280,11 +287,11 @@ void type_make_cb(Fl_Widget*w,void*d) {
|
|||||||
if (t) {select_only(t); modflag = 1; t->open();}
|
if (t) {select_only(t); modflag = 1; t->open();}
|
||||||
}
|
}
|
||||||
|
|
||||||
Fl_Double_Window *widgetbin_panel=(Fl_Double_Window *)0;
|
Fl_Window *widgetbin_panel=(Fl_Window *)0;
|
||||||
|
|
||||||
Fl_Double_Window* make_widgetbin() {
|
Fl_Window* make_widgetbin() {
|
||||||
Fl_Double_Window* w;
|
Fl_Window* w;
|
||||||
{ Fl_Double_Window* o = widgetbin_panel = new Fl_Double_Window(443, 100, "Bin");
|
{ Fl_Window* o = widgetbin_panel = new Fl_Window(440, 100, "Bin");
|
||||||
w = o;
|
w = o;
|
||||||
{ Fl_Group* o = new Fl_Group(3, 3, 50, 74);
|
{ Fl_Group* o = new Fl_Group(3, 3, 50, 74);
|
||||||
o->box(FL_THIN_DOWN_BOX);
|
o->box(FL_THIN_DOWN_BOX);
|
||||||
|
|||||||
+28
-24
@@ -1,5 +1,5 @@
|
|||||||
# data file for the Fltk User Interface Designer (fluid)
|
# data file for the Fltk User Interface Designer (fluid)
|
||||||
version 1.0104
|
version 1.0105
|
||||||
header_name {.h}
|
header_name {.h}
|
||||||
code_name {.cxx}
|
code_name {.cxx}
|
||||||
decl {\#include <FL/Fl_Pixmap.H>} {}
|
decl {\#include <FL/Fl_Pixmap.H>} {}
|
||||||
@@ -16,7 +16,7 @@ Function {make_function_panel()} {open
|
|||||||
} {
|
} {
|
||||||
Fl_Window function_panel {
|
Fl_Window function_panel {
|
||||||
label {function/method} open
|
label {function/method} open
|
||||||
xywh {774 432 285 170} resizable modal visible
|
xywh {909 450 285 170} type Single hide resizable modal
|
||||||
} {
|
} {
|
||||||
Fl_Light_Button f_public_button {
|
Fl_Light_Button f_public_button {
|
||||||
label public
|
label public
|
||||||
@@ -49,7 +49,7 @@ Function {make_code_panel()} {open
|
|||||||
} {
|
} {
|
||||||
Fl_Window code_panel {
|
Fl_Window code_panel {
|
||||||
label code open
|
label code open
|
||||||
xywh {327 261 548 175} resizable modal visible
|
xywh {327 261 545 175} type Single hide resizable modal
|
||||||
} {
|
} {
|
||||||
Fl_Group {} {open
|
Fl_Group {} {open
|
||||||
xywh {10 10 525 120} box DOWN_FRAME resizable
|
xywh {10 10 525 120} box DOWN_FRAME resizable
|
||||||
@@ -75,8 +75,8 @@ Function {make_code_panel()} {open
|
|||||||
Function {make_codeblock_panel()} {open
|
Function {make_codeblock_panel()} {open
|
||||||
} {
|
} {
|
||||||
Fl_Window codeblock_panel {
|
Fl_Window codeblock_panel {
|
||||||
label codeblock open
|
label codeblock open selected
|
||||||
xywh {289 462 295 130} resizable modal visible
|
xywh {289 462 295 130} type Single hide resizable modal
|
||||||
} {
|
} {
|
||||||
Fl_Input code_before_input {
|
Fl_Input code_before_input {
|
||||||
tooltip {\#ifdef or similar conditional code block.} xywh {10 10 275 25} labelsize 12 align 5 when 0 textfont 4 resizable
|
tooltip {\#ifdef or similar conditional code block.} xywh {10 10 275 25} labelsize 12 align 5 when 0 textfont 4 resizable
|
||||||
@@ -103,25 +103,29 @@ Function {make_declblock_panel()} {open
|
|||||||
} {
|
} {
|
||||||
Fl_Window declblock_panel {
|
Fl_Window declblock_panel {
|
||||||
label {declaration block} open
|
label {declaration block} open
|
||||||
xywh {184 572 295 130} resizable modal visible
|
xywh {184 572 295 155} type Single hide resizable modal
|
||||||
} {
|
} {
|
||||||
Fl_Input decl_before_input {
|
Fl_Input decl_before_input {
|
||||||
tooltip {\#ifdef or similar conditional declaration block.} xywh {10 10 275 25} labelsize 12 align 5 when 0 textfont 4 resizable
|
tooltip {\#ifdef or similar conditional declaration block.} xywh {10 35 275 25} labelsize 12 align 5 when 0 textfont 4 resizable
|
||||||
}
|
}
|
||||||
Fl_Box {} {
|
Fl_Box {} {
|
||||||
label {"\\n...child code...\\n" is inserted here}
|
label {"\\n...child code...\\n" is inserted here}
|
||||||
xywh {10 35 275 25} align 20
|
xywh {10 60 275 25} align 20
|
||||||
}
|
}
|
||||||
Fl_Input decl_after_input {
|
Fl_Input decl_after_input {
|
||||||
tooltip {\#endif or similar declaration code block.} xywh {10 60 275 25} labelsize 12 align 5 when 0 textfont 4
|
tooltip {\#endif or similar declaration code block.} xywh {10 85 275 25} labelsize 12 align 5 when 0 textfont 4
|
||||||
}
|
}
|
||||||
Fl_Return_Button declblock_panel_ok {
|
Fl_Return_Button declblock_panel_ok {
|
||||||
label OK
|
label OK
|
||||||
xywh {120 95 80 25} hotspot
|
xywh {120 120 80 25} hotspot
|
||||||
}
|
}
|
||||||
Fl_Button declblock_panel_cancel {
|
Fl_Button declblock_panel_cancel {
|
||||||
label Cancel
|
label Cancel
|
||||||
xywh {205 95 80 25} shortcut 0xff1b
|
xywh {205 120 80 25} shortcut 0xff1b
|
||||||
|
}
|
||||||
|
Fl_Light_Button declblock_public_button {
|
||||||
|
label public
|
||||||
|
tooltip {Make the declaration publicly accessible.} xywh {9 6 65 25} labelsize 10 when 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -130,7 +134,7 @@ Function {make_decl_panel()} {open
|
|||||||
} {
|
} {
|
||||||
Fl_Window decl_panel {
|
Fl_Window decl_panel {
|
||||||
label declaration open
|
label declaration open
|
||||||
xywh {393 601 290 180} resizable visible
|
xywh {393 601 290 180} type Single hide resizable
|
||||||
} {
|
} {
|
||||||
Fl_Light_Button decl_public_button {
|
Fl_Light_Button decl_public_button {
|
||||||
label public
|
label public
|
||||||
@@ -155,7 +159,7 @@ Function {make_class_panel()} {open
|
|||||||
} {
|
} {
|
||||||
Fl_Window class_panel {
|
Fl_Window class_panel {
|
||||||
label class open
|
label class open
|
||||||
xywh {517 797 285 170} resizable modal visible
|
xywh {517 797 285 170} type Single hide resizable modal
|
||||||
} {
|
} {
|
||||||
Fl_Light_Button c_public_button {
|
Fl_Light_Button c_public_button {
|
||||||
label public
|
label public
|
||||||
@@ -190,10 +194,10 @@ Function {make_widgetbin()} {open
|
|||||||
} {
|
} {
|
||||||
Fl_Window widgetbin_panel {
|
Fl_Window widgetbin_panel {
|
||||||
label Bin open
|
label Bin open
|
||||||
xywh {325 137 443 100} type Double
|
xywh {325 137 440 100} type Single hide
|
||||||
code0 {o->size(o->w(),80);} non_modal visible
|
code0 {o->size(o->w(),80);} non_modal
|
||||||
} {
|
} {
|
||||||
Fl_Group {} {open
|
Fl_Group {} {
|
||||||
xywh {3 3 50 74} box THIN_DOWN_BOX
|
xywh {3 3 50 74} box THIN_DOWN_BOX
|
||||||
} {
|
} {
|
||||||
Fl_Button {} {
|
Fl_Button {} {
|
||||||
@@ -233,7 +237,7 @@ Function {make_widgetbin()} {open
|
|||||||
code0 {o->image(pixmap[11]);}
|
code0 {o->image(pixmap[11]);}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Fl_Group {} {open
|
Fl_Group {} {
|
||||||
xywh {55 3 74 74} box THIN_DOWN_BOX
|
xywh {55 3 74 74} box THIN_DOWN_BOX
|
||||||
} {
|
} {
|
||||||
Fl_Button {} {
|
Fl_Button {} {
|
||||||
@@ -279,7 +283,7 @@ Function {make_widgetbin()} {open
|
|||||||
code0 {o->image(pixmap[21]);}
|
code0 {o->image(pixmap[21]);}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Fl_Group {} {open
|
Fl_Group {} {
|
||||||
xywh {131 3 50 74} box THIN_DOWN_BOX
|
xywh {131 3 50 74} box THIN_DOWN_BOX
|
||||||
} {
|
} {
|
||||||
Fl_Button {} {
|
Fl_Button {} {
|
||||||
@@ -319,7 +323,7 @@ Function {make_widgetbin()} {open
|
|||||||
code0 {o->image(pixmap[4]);}
|
code0 {o->image(pixmap[4]);}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Fl_Group {} {open
|
Fl_Group {} {
|
||||||
xywh {183 3 74 74} box THIN_DOWN_BOX
|
xywh {183 3 74 74} box THIN_DOWN_BOX
|
||||||
} {
|
} {
|
||||||
Fl_Button {} {
|
Fl_Button {} {
|
||||||
@@ -377,7 +381,7 @@ Function {make_widgetbin()} {open
|
|||||||
code0 {o->image(pixmap[45]);}
|
code0 {o->image(pixmap[45]);}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Fl_Group {} {open
|
Fl_Group {} {
|
||||||
xywh {259 3 50 74} box THIN_DOWN_BOX
|
xywh {259 3 50 74} box THIN_DOWN_BOX
|
||||||
} {
|
} {
|
||||||
Fl_Button {} {
|
Fl_Button {} {
|
||||||
@@ -411,7 +415,7 @@ Function {make_widgetbin()} {open
|
|||||||
code0 {o->image(pixmap[30]);}
|
code0 {o->image(pixmap[30]);}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Fl_Group {} {open
|
Fl_Group {} {
|
||||||
xywh {311 3 50 74} box THIN_DOWN_BOX
|
xywh {311 3 50 74} box THIN_DOWN_BOX
|
||||||
} {
|
} {
|
||||||
Fl_Button {} {
|
Fl_Button {} {
|
||||||
@@ -445,7 +449,7 @@ Function {make_widgetbin()} {open
|
|||||||
code0 {o->image(pixmap[15]);}
|
code0 {o->image(pixmap[15]);}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Fl_Group {} {open
|
Fl_Group {} {
|
||||||
xywh {363 3 26 74} box THIN_DOWN_BOX
|
xywh {363 3 26 74} box THIN_DOWN_BOX
|
||||||
} {
|
} {
|
||||||
Fl_Button {} {
|
Fl_Button {} {
|
||||||
@@ -467,7 +471,7 @@ Function {make_widgetbin()} {open
|
|||||||
code0 {o->image(pixmap[33]);}
|
code0 {o->image(pixmap[33]);}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Fl_Group {} {open
|
Fl_Group {} {
|
||||||
xywh {391 3 50 74} box THIN_DOWN_BOX
|
xywh {391 3 50 74} box THIN_DOWN_BOX
|
||||||
} {
|
} {
|
||||||
Fl_Button {} {
|
Fl_Button {} {
|
||||||
@@ -490,7 +494,7 @@ Function {make_widgetbin()} {open
|
|||||||
}
|
}
|
||||||
Fl_Button {} {
|
Fl_Button {} {
|
||||||
user_data {"Fl_Progress"}
|
user_data {"Fl_Progress"}
|
||||||
callback type_make_cb selected
|
callback type_make_cb
|
||||||
tooltip Progress xywh {392 52 24 24} box THIN_UP_BOX
|
tooltip Progress xywh {392 52 24 24} box THIN_UP_BOX
|
||||||
code0 {o->image(pixmap[36]);}
|
code0 {o->image(pixmap[36]);}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// generated by Fast Light User Interface Designer (fluid) version 1.0104
|
// generated by Fast Light User Interface Designer (fluid) version 1.0105
|
||||||
|
|
||||||
#ifndef function_panel_h
|
#ifndef function_panel_h
|
||||||
#define function_panel_h
|
#define function_panel_h
|
||||||
@@ -35,6 +35,7 @@ extern Fl_Input *decl_before_input;
|
|||||||
extern Fl_Input *decl_after_input;
|
extern Fl_Input *decl_after_input;
|
||||||
extern Fl_Return_Button *declblock_panel_ok;
|
extern Fl_Return_Button *declblock_panel_ok;
|
||||||
extern Fl_Button *declblock_panel_cancel;
|
extern Fl_Button *declblock_panel_cancel;
|
||||||
|
extern Fl_Light_Button *declblock_public_button;
|
||||||
Fl_Window* make_declblock_panel();
|
Fl_Window* make_declblock_panel();
|
||||||
extern Fl_Window *decl_panel;
|
extern Fl_Window *decl_panel;
|
||||||
extern Fl_Light_Button *decl_public_button;
|
extern Fl_Light_Button *decl_public_button;
|
||||||
@@ -50,8 +51,7 @@ extern Fl_Return_Button *c_panel_ok;
|
|||||||
extern Fl_Button *c_panel_cancel;
|
extern Fl_Button *c_panel_cancel;
|
||||||
Fl_Window* make_class_panel();
|
Fl_Window* make_class_panel();
|
||||||
void type_make_cb(Fl_Widget*w,void*d);
|
void type_make_cb(Fl_Widget*w,void*d);
|
||||||
#include <FL/Fl_Double_Window.H>
|
extern Fl_Window *widgetbin_panel;
|
||||||
extern Fl_Double_Window *widgetbin_panel;
|
|
||||||
extern void type_make_cb(Fl_Button*, void*);
|
extern void type_make_cb(Fl_Button*, void*);
|
||||||
Fl_Double_Window* make_widgetbin();
|
Fl_Window* make_widgetbin();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+12
-8
@@ -1,4 +1,4 @@
|
|||||||
// generated by Fast Light User Interface Designer (fluid) version 1.0104
|
// generated by Fast Light User Interface Designer (fluid) version 1.0105
|
||||||
|
|
||||||
#include "../FL/Fl_Help_Dialog.H"
|
#include "../FL/Fl_Help_Dialog.H"
|
||||||
#include "flstring.h"
|
#include "flstring.h"
|
||||||
@@ -55,10 +55,12 @@ if (index_ == 0)
|
|||||||
|
|
||||||
forward_->activate();
|
forward_->activate();
|
||||||
|
|
||||||
|
int l = line_[index_];
|
||||||
|
|
||||||
if (strcmp(view_->filename(), file_[index_]) != 0)
|
if (strcmp(view_->filename(), file_[index_]) != 0)
|
||||||
view_->load(file_[index_]);
|
view_->load(file_[index_]);
|
||||||
|
|
||||||
view_->topline(line_[index_]);
|
view_->topline(l);
|
||||||
}
|
}
|
||||||
void Fl_Help_Dialog::cb_back_(Fl_Button* o, void* v) {
|
void Fl_Help_Dialog::cb_back_(Fl_Button* o, void* v) {
|
||||||
((Fl_Help_Dialog*)(o->parent()->user_data()))->cb_back__i(o,v);
|
((Fl_Help_Dialog*)(o->parent()->user_data()))->cb_back__i(o,v);
|
||||||
@@ -73,10 +75,12 @@ if (index_ >= max_)
|
|||||||
|
|
||||||
back_->activate();
|
back_->activate();
|
||||||
|
|
||||||
|
int l = view_->topline();
|
||||||
|
|
||||||
if (strcmp(view_->filename(), file_[index_]) != 0)
|
if (strcmp(view_->filename(), file_[index_]) != 0)
|
||||||
view_->load(file_[index_]);
|
view_->load(file_[index_]);
|
||||||
|
|
||||||
view_->topline(line_[index_]);
|
view_->topline(l);
|
||||||
}
|
}
|
||||||
void Fl_Help_Dialog::cb_forward_(Fl_Button* o, void* v) {
|
void Fl_Help_Dialog::cb_forward_(Fl_Button* o, void* v) {
|
||||||
((Fl_Help_Dialog*)(o->parent()->user_data()))->cb_forward__i(o,v);
|
((Fl_Help_Dialog*)(o->parent()->user_data()))->cb_forward__i(o,v);
|
||||||
@@ -120,12 +124,12 @@ Fl_Help_Dialog::Fl_Help_Dialog() {
|
|||||||
o->user_data((void*)(this));
|
o->user_data((void*)(this));
|
||||||
{ Fl_Help_View* o = view_ = new Fl_Help_View(10, 10, 510, 330);
|
{ Fl_Help_View* o = view_ = new Fl_Help_View(10, 10, 510, 330);
|
||||||
o->box(FL_DOWN_BOX);
|
o->box(FL_DOWN_BOX);
|
||||||
o->color(49);
|
o->color(FL_BACKGROUND_COLOR);
|
||||||
o->selection_color(15);
|
o->selection_color(FL_SELECTION_COLOR);
|
||||||
o->labeltype(FL_NORMAL_LABEL);
|
o->labeltype(FL_NORMAL_LABEL);
|
||||||
o->labelfont(0);
|
o->labelfont(0);
|
||||||
o->labelsize(14);
|
o->labelsize(14);
|
||||||
o->labelcolor(56);
|
o->labelcolor(FL_BLACK);
|
||||||
o->callback((Fl_Callback*)cb_view_);
|
o->callback((Fl_Callback*)cb_view_);
|
||||||
o->align(FL_ALIGN_TOP);
|
o->align(FL_ALIGN_TOP);
|
||||||
o->when(FL_WHEN_RELEASE);
|
o->when(FL_WHEN_RELEASE);
|
||||||
@@ -139,13 +143,13 @@ Fl_Help_Dialog::Fl_Help_Dialog() {
|
|||||||
{ Fl_Button* o = back_ = new Fl_Button(355, 350, 25, 25, "@<-");
|
{ Fl_Button* o = back_ = new Fl_Button(355, 350, 25, 25, "@<-");
|
||||||
o->tooltip("Show the previous help page.");
|
o->tooltip("Show the previous help page.");
|
||||||
o->shortcut(0xff51);
|
o->shortcut(0xff51);
|
||||||
o->labelcolor(2);
|
o->labelcolor((Fl_Color)2);
|
||||||
o->callback((Fl_Callback*)cb_back_);
|
o->callback((Fl_Callback*)cb_back_);
|
||||||
}
|
}
|
||||||
{ Fl_Button* o = forward_ = new Fl_Button(390, 350, 25, 25, "@->");
|
{ Fl_Button* o = forward_ = new Fl_Button(390, 350, 25, 25, "@->");
|
||||||
o->tooltip("Show the next help page.");
|
o->tooltip("Show the next help page.");
|
||||||
o->shortcut(0xff53);
|
o->shortcut(0xff53);
|
||||||
o->labelcolor(2);
|
o->labelcolor((Fl_Color)2);
|
||||||
o->callback((Fl_Callback*)cb_forward_);
|
o->callback((Fl_Callback*)cb_forward_);
|
||||||
}
|
}
|
||||||
{ Fl_Button* o = smaller_ = new Fl_Button(285, 350, 25, 25, "F");
|
{ Fl_Button* o = smaller_ = new Fl_Button(285, 350, 25, 25, "F");
|
||||||
|
|||||||
+10
-6
@@ -1,5 +1,5 @@
|
|||||||
# data file for the Fltk User Interface Designer (fluid)
|
# data file for the Fltk User Interface Designer (fluid)
|
||||||
version 1.0104
|
version 1.0105
|
||||||
header_name {../FL/Fl_Help_Dialog.H}
|
header_name {../FL/Fl_Help_Dialog.H}
|
||||||
code_name {.cxx}
|
code_name {.cxx}
|
||||||
decl {\#include "flstring.h"} {}
|
decl {\#include "flstring.h"} {}
|
||||||
@@ -17,7 +17,7 @@ class FL_EXPORT Fl_Help_Dialog {open
|
|||||||
} {
|
} {
|
||||||
Fl_Window window_ {
|
Fl_Window window_ {
|
||||||
label {Help Dialog} open
|
label {Help Dialog} open
|
||||||
private xywh {398 65 530 385} type Double resizable visible
|
private xywh {398 65 530 385} type Double hide resizable
|
||||||
} {
|
} {
|
||||||
Fl_Group view_ {
|
Fl_Group view_ {
|
||||||
callback {if (view_->changed())
|
callback {if (view_->changed())
|
||||||
@@ -48,7 +48,7 @@ else if (view_->filename())
|
|||||||
{
|
{
|
||||||
strlcpy(file_[index_], view_->filename(), sizeof(file_[0]));
|
strlcpy(file_[index_], view_->filename(), sizeof(file_[0]));
|
||||||
line_[index_] = view_->topline();
|
line_[index_] = view_->topline();
|
||||||
}} open
|
}} open selected
|
||||||
private xywh {10 10 510 330} box DOWN_BOX selection_color 15 resizable
|
private xywh {10 10 510 330} box DOWN_BOX selection_color 15 resizable
|
||||||
code0 {\#include <FL/Fl_Help_View.H>}
|
code0 {\#include <FL/Fl_Help_View.H>}
|
||||||
class Fl_Help_View
|
class Fl_Help_View
|
||||||
@@ -69,10 +69,12 @@ if (index_ == 0)
|
|||||||
|
|
||||||
forward_->activate();
|
forward_->activate();
|
||||||
|
|
||||||
|
int l = line_[index_];
|
||||||
|
|
||||||
if (strcmp(view_->filename(), file_[index_]) != 0)
|
if (strcmp(view_->filename(), file_[index_]) != 0)
|
||||||
view_->load(file_[index_]);
|
view_->load(file_[index_]);
|
||||||
|
|
||||||
view_->topline(line_[index_]);}
|
view_->topline(l);}
|
||||||
private tooltip {Show the previous help page.} xywh {355 350 25 25} shortcut 0xff51 labelcolor 2
|
private tooltip {Show the previous help page.} xywh {355 350 25 25} shortcut 0xff51 labelcolor 2
|
||||||
}
|
}
|
||||||
Fl_Button forward_ {
|
Fl_Button forward_ {
|
||||||
@@ -85,10 +87,12 @@ if (index_ >= max_)
|
|||||||
|
|
||||||
back_->activate();
|
back_->activate();
|
||||||
|
|
||||||
|
int l = view_->topline();
|
||||||
|
|
||||||
if (strcmp(view_->filename(), file_[index_]) != 0)
|
if (strcmp(view_->filename(), file_[index_]) != 0)
|
||||||
view_->load(file_[index_]);
|
view_->load(file_[index_]);
|
||||||
|
|
||||||
view_->topline(line_[index_]);}
|
view_->topline(l);}
|
||||||
private tooltip {Show the next help page.} xywh {390 350 25 25} shortcut 0xff53 labelcolor 2
|
private tooltip {Show the next help page.} xywh {390 350 25 25} shortcut 0xff53 labelcolor 2
|
||||||
}
|
}
|
||||||
Fl_Button smaller_ {
|
Fl_Button smaller_ {
|
||||||
@@ -112,7 +116,7 @@ smaller_->activate();}
|
|||||||
private tooltip {Make the help text larger.} xywh {320 350 25 25} labelfont 1 labelsize 16
|
private tooltip {Make the help text larger.} xywh {320 350 25 25} labelfont 1 labelsize 16
|
||||||
}
|
}
|
||||||
Fl_Input find_ {
|
Fl_Input find_ {
|
||||||
callback {find_pos_ = view_->find(find_->value(), find_pos_);} selected
|
callback {find_pos_ = view_->find(find_->value(), find_pos_);}
|
||||||
private xywh {10 350 265 25} when 10
|
private xywh {10 350 265 25} when 10
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+39
-2
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Menu_.cxx,v 1.7.2.8.2.6 2003/01/30 21:42:11 easysw Exp $"
|
// "$Id: Fl_Menu_.cxx,v 1.7.2.8.2.7 2004/03/11 05:17:12 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Common menu code for the Fast Light Tool Kit (FLTK).
|
// Common menu code for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -36,6 +36,43 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
// Set 'pathname' of specified menuitem
|
||||||
|
// If finditem==NULL, mvalue() is used (the most recently picked menuitem)
|
||||||
|
// Returns:
|
||||||
|
// 0 : OK
|
||||||
|
// -1 : item not found (name="")
|
||||||
|
// -2 : 'name' not large enough (name="")
|
||||||
|
//
|
||||||
|
#define SAFE_STRCAT(s) \
|
||||||
|
{ len += strlen(s); if ( len >= namelen ) { *name='\0'; return(-2); } else strcat(name,(s)); }
|
||||||
|
int Fl_Menu_::item_pathname(char *name, int namelen, const Fl_Menu_Item *finditem) const {
|
||||||
|
int len = 0;
|
||||||
|
finditem = finditem ? finditem : mvalue();
|
||||||
|
name[0] = '\0';
|
||||||
|
for ( int t=0; t<size(); t++ ) {
|
||||||
|
const Fl_Menu_Item *m = &(menu()[t]);
|
||||||
|
if ( m->submenu() ) { // submenu? descend
|
||||||
|
if ( *name ) SAFE_STRCAT("/");
|
||||||
|
SAFE_STRCAT(m->label());
|
||||||
|
} else {
|
||||||
|
if ( m->label() ) { // menu item?
|
||||||
|
if ( m == finditem ) { // found? tack on itemname, done.
|
||||||
|
SAFE_STRCAT("/");
|
||||||
|
SAFE_STRCAT(m->label());
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
|
} else { // end of submenu? pop
|
||||||
|
char *ss = strrchr(name, '/');
|
||||||
|
if ( ss ) { *ss = 0; len = strlen(name); } // "File/Edit" -> "File"
|
||||||
|
else { name[0] = '\0'; len = 0; } // "File" -> ""
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
*name = '\0';
|
||||||
|
return(-1); // item not found
|
||||||
|
}
|
||||||
|
|
||||||
int Fl_Menu_::value(const Fl_Menu_Item* m) {
|
int Fl_Menu_::value(const Fl_Menu_Item* m) {
|
||||||
clear_changed();
|
clear_changed();
|
||||||
if (value_ != m) {value_ = m; return 1;}
|
if (value_ != m) {value_ = m; return 1;}
|
||||||
@@ -150,5 +187,5 @@ void Fl_Menu_::clear() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Menu_.cxx,v 1.7.2.8.2.6 2003/01/30 21:42:11 easysw Exp $".
|
// End of "$Id: Fl_Menu_.cxx,v 1.7.2.8.2.7 2004/03/11 05:17:12 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+4
-2
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Scroll.cxx,v 1.7.2.6.2.5 2003/06/15 04:41:16 easysw Exp $"
|
// "$Id: Fl_Scroll.cxx,v 1.7.2.6.2.6 2004/03/11 05:17:12 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Scroll widget for the Fast Light Tool Kit (FLTK).
|
// Scroll widget for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -74,6 +74,7 @@ void Fl_Scroll::draw_clip(void* v,int X, int Y, int W, int H) {
|
|||||||
if (NB > B) B = NB;
|
if (NB > B) B = NB;
|
||||||
}
|
}
|
||||||
// fill any area to right & bottom of widgets:
|
// fill any area to right & bottom of widgets:
|
||||||
|
if (s->box()) {
|
||||||
if (R < X+W && B > Y) {
|
if (R < X+W && B > Y) {
|
||||||
fl_color(s->color());
|
fl_color(s->color());
|
||||||
fl_rectf(R,Y,X+W-R,B-Y);
|
fl_rectf(R,Y,X+W-R,B-Y);
|
||||||
@@ -82,6 +83,7 @@ void Fl_Scroll::draw_clip(void* v,int X, int Y, int W, int H) {
|
|||||||
fl_color(s->color());
|
fl_color(s->color());
|
||||||
fl_rectf(X,B,W,Y+H-B);
|
fl_rectf(X,B,W,Y+H-B);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
fl_pop_clip();
|
fl_pop_clip();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -266,5 +268,5 @@ int Fl_Scroll::handle(int event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Scroll.cxx,v 1.7.2.6.2.5 2003/06/15 04:41:16 easysw Exp $".
|
// End of "$Id: Fl_Scroll.cxx,v 1.7.2.6.2.6 2004/03/11 05:17:12 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+2
-6
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Slider.cxx,v 1.8.2.10.2.13 2003/01/30 21:42:44 easysw Exp $"
|
// "$Id: Fl_Slider.cxx,v 1.8.2.10.2.14 2004/03/11 05:17:12 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Slider widget for the Fast Light Tool Kit (FLTK).
|
// Slider widget for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -83,13 +83,9 @@ int Fl_Slider::scrollvalue(int p, int W, int t, int l) {
|
|||||||
// actually it ranges from 0 to 1/(1-size).
|
// actually it ranges from 0 to 1/(1-size).
|
||||||
|
|
||||||
void Fl_Slider::draw_bg(int X, int Y, int W, int H) {
|
void Fl_Slider::draw_bg(int X, int Y, int W, int H) {
|
||||||
if (!(damage()&FL_DAMAGE_ALL)) { // not a complete redraw
|
|
||||||
fl_push_clip(X, Y, W, H);
|
fl_push_clip(X, Y, W, H);
|
||||||
draw_box();
|
draw_box();
|
||||||
fl_pop_clip();
|
fl_pop_clip();
|
||||||
} else {
|
|
||||||
draw_box();
|
|
||||||
}
|
|
||||||
|
|
||||||
Fl_Color black = active_r() ? FL_FOREGROUND_COLOR : FL_INACTIVE_COLOR;
|
Fl_Color black = active_r() ? FL_FOREGROUND_COLOR : FL_INACTIVE_COLOR;
|
||||||
if (type() == FL_VERT_NICE_SLIDER) {
|
if (type() == FL_VERT_NICE_SLIDER) {
|
||||||
@@ -290,5 +286,5 @@ int Fl_Slider::handle(int event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Slider.cxx,v 1.8.2.10.2.13 2003/01/30 21:42:44 easysw Exp $".
|
// End of "$Id: Fl_Slider.cxx,v 1.8.2.10.2.14 2004/03/11 05:17:12 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Sys_Menu_Bar.cxx,v 1.1.2.7 2003/06/12 01:36:18 easysw Exp $"
|
// "$Id: Fl_Sys_Menu_Bar.cxx,v 1.1.2.8 2004/03/11 05:17:12 easysw Exp $"
|
||||||
//
|
//
|
||||||
// MacOS system menu bar widget for the Fast Light Tool Kit (FLTK).
|
// MacOS system menu bar widget for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -48,6 +48,8 @@
|
|||||||
* Changing the menu items has no effect on the menu bar.
|
* Changing the menu items has no effect on the menu bar.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(__APPLE__)
|
||||||
|
|
||||||
#include <FL/X.H>
|
#include <FL/X.H>
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Sys_Menu_Bar.H>
|
#include <FL/Fl_Sys_Menu_Bar.H>
|
||||||
@@ -315,6 +317,8 @@ int Fl_Menu_Bar::handle(int event) {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#endif /* __APPLE__ */
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Sys_Menu_Bar.cxx,v 1.1.2.7 2003/06/12 01:36:18 easysw Exp $".
|
// End of "$Id: Fl_Sys_Menu_Bar.cxx,v 1.1.2.8 2004/03/11 05:17:12 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
+5
-3
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_mac.cxx,v 1.1.2.51 2003/08/02 05:54:43 matthiaswm Exp $"
|
// "$Id: Fl_mac.cxx,v 1.1.2.52 2004/03/11 05:17:12 easysw Exp $"
|
||||||
//
|
//
|
||||||
// MacOS specific code for the Fast Light Tool Kit (FLTK).
|
// MacOS specific code for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -377,8 +377,10 @@ static pascal OSStatus carbonDispatchHandler( EventHandlerCallRef nextHandler, E
|
|||||||
case kEventMouseDragged:
|
case kEventMouseDragged:
|
||||||
if ( fl_capture )
|
if ( fl_capture )
|
||||||
ret = SendEventToEventTarget( event, GetWindowEventTarget( fl_capture ) );
|
ret = SendEventToEventTarget( event, GetWindowEventTarget( fl_capture ) );
|
||||||
else if ( fl_os_capture )
|
else if ( fl_os_capture ){
|
||||||
ret = SendEventToEventTarget( event, GetWindowEventTarget( fl_os_capture ) );
|
ret = SendEventToEventTarget( event, GetWindowEventTarget( fl_os_capture ) );
|
||||||
|
fl_os_capture = 0;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -1877,6 +1879,6 @@ void Fl::paste(Fl_Widget &receiver, int clipboard) {
|
|||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_mac.cxx,v 1.1.2.51 2003/08/02 05:54:43 matthiaswm Exp $".
|
// End of "$Id: Fl_mac.cxx,v 1.1.2.52 2004/03/11 05:17:12 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|||||||
+3
-2
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# "$Id: Makefile,v 1.18.2.14.2.54 2003/08/24 13:09:06 easysw Exp $"
|
# "$Id: Makefile,v 1.18.2.14.2.55 2004/03/11 05:17:12 easysw Exp $"
|
||||||
#
|
#
|
||||||
# Library makefile for the Fast Light Tool Kit (FLTK).
|
# Library makefile for the Fast Light Tool Kit (FLTK).
|
||||||
#
|
#
|
||||||
@@ -55,6 +55,7 @@ CPPFILES = \
|
|||||||
Fl_Menu.cxx \
|
Fl_Menu.cxx \
|
||||||
Fl_Menu_.cxx \
|
Fl_Menu_.cxx \
|
||||||
Fl_Menu_Bar.cxx \
|
Fl_Menu_Bar.cxx \
|
||||||
|
Fl_Sys_Menu_Bar.cxx \
|
||||||
Fl_Menu_Button.cxx \
|
Fl_Menu_Button.cxx \
|
||||||
Fl_Menu_Window.cxx \
|
Fl_Menu_Window.cxx \
|
||||||
Fl_Menu_add.cxx \
|
Fl_Menu_add.cxx \
|
||||||
@@ -582,5 +583,5 @@ uninstall:
|
|||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# End of "$Id: Makefile,v 1.18.2.14.2.54 2003/08/24 13:09:06 easysw Exp $".
|
# End of "$Id: Makefile,v 1.18.2.14.2.55 2004/03/11 05:17:12 easysw Exp $".
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: filename_absolute.cxx,v 1.5.2.4.2.10 2003/01/30 21:43:20 easysw Exp $"
|
// "$Id: filename_absolute.cxx,v 1.5.2.4.2.11 2004/03/11 05:17:12 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Filename expansion routines for the Fast Light Tool Kit (FLTK).
|
// Filename expansion routines for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -132,6 +132,11 @@ fl_filename_relative(char *to, // O - Relative filename
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(WIN32) || defined(__EMX__)
|
#if defined(WIN32) || defined(__EMX__)
|
||||||
|
if (!strcasecmp(from, cwd)) {
|
||||||
|
strlcpy(to, ".", tolen);
|
||||||
|
return (1);
|
||||||
|
}
|
||||||
|
|
||||||
if (*from != *cwd) {
|
if (*from != *cwd) {
|
||||||
// Not the same drive...
|
// Not the same drive...
|
||||||
strlcpy(to, from, tolen);
|
strlcpy(to, from, tolen);
|
||||||
@@ -139,6 +144,11 @@ fl_filename_relative(char *to, // O - Relative filename
|
|||||||
}
|
}
|
||||||
for (slash = from + 2, newslash = cwd + 2;
|
for (slash = from + 2, newslash = cwd + 2;
|
||||||
#else
|
#else
|
||||||
|
if (!strcmp(from, cwd)) {
|
||||||
|
strlcpy(to, ".", tolen);
|
||||||
|
return (1);
|
||||||
|
}
|
||||||
|
|
||||||
for (slash = from, newslash = cwd;
|
for (slash = from, newslash = cwd;
|
||||||
#endif // WIN32 || __EMX__
|
#endif // WIN32 || __EMX__
|
||||||
*slash != '\0' && *newslash != '\0';
|
*slash != '\0' && *newslash != '\0';
|
||||||
@@ -176,5 +186,5 @@ fl_filename_relative(char *to, // O - Relative filename
|
|||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: filename_absolute.cxx,v 1.5.2.4.2.10 2003/01/30 21:43:20 easysw Exp $".
|
// End of "$Id: filename_absolute.cxx,v 1.5.2.4.2.11 2004/03/11 05:17:12 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user