summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2011-05-24 20:00:56 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2011-05-24 20:00:56 +0000
commit9846e7879c9501658ba2bc15fb325da73cbfd793 (patch)
treea8ec87a322c54939e780b082fb9df7f3ddd6e26b /FL
parent203f4d8c7ee41b429bb4dbfabe1e2aef3dcbf85f (diff)
Fix constructors for VC++ DLL builds (STR #2645).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8736 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Hold_Browser.H8
-rw-r--r--FL/Fl_Multi_Browser.H4
-rw-r--r--FL/Fl_Select_Browser.H12
3 files changed, 18 insertions, 6 deletions
diff --git a/FL/Fl_Hold_Browser.H b/FL/Fl_Hold_Browser.H
index 3b69c3b56..e146711df 100644
--- a/FL/Fl_Hold_Browser.H
+++ b/FL/Fl_Hold_Browser.H
@@ -50,8 +50,12 @@ public:
The constructor specializes Fl_Browser() by setting the type to FL_HOLD_BROWSER.
The destructor destroys the widget and frees all memory that has been allocated.
*/
- Fl_Hold_Browser(int X,int Y,int W,int H,const char *l=0)
- : Fl_Browser(X,Y,W,H,l) {type(FL_HOLD_BROWSER);}
+#if defined(FL_DLL) // implementation in src/Fl_Browser.cxx
+ Fl_Hold_Browser(int X,int Y,int W,int H,const char *L=0);
+#else
+ Fl_Hold_Browser(int X,int Y,int W,int H,const char *L=0)
+ : Fl_Browser(X,Y,W,H,L) {type(FL_HOLD_BROWSER);}
+#endif
};
#endif
diff --git a/FL/Fl_Multi_Browser.H b/FL/Fl_Multi_Browser.H
index 3502c4e63..2f029629a 100644
--- a/FL/Fl_Multi_Browser.H
+++ b/FL/Fl_Multi_Browser.H
@@ -51,8 +51,12 @@ public:
The constructor specializes Fl_Browser() by setting the type to FL_MULTI_BROWSER.
The destructor destroys the widget and frees all memory that has been allocated.
*/
+#if defined(FL_DLL) // implementation in src/Fl_Browser.cxx
+ Fl_Multi_Browser(int X,int Y,int W,int H,const char *L=0);
+#else
Fl_Multi_Browser(int X,int Y,int W,int H,const char *L=0)
: Fl_Browser(X,Y,W,H,L) {type(FL_MULTI_BROWSER);}
+#endif
};
#endif
diff --git a/FL/Fl_Select_Browser.H b/FL/Fl_Select_Browser.H
index 9745f6a45..4548b05ae 100644
--- a/FL/Fl_Select_Browser.H
+++ b/FL/Fl_Select_Browser.H
@@ -36,21 +36,25 @@
/**
The class is a subclass of Fl_Browser
which lets the user select a single item, or no items by clicking on
- the empty space. As long as the mouse button is held down on an
+ the empty space. As long as the mouse button is held down on an
unselected item it is highlighted. Normally the callback is done when the
user presses the mouse, but you can change this with when().
<P>See Fl_Browser for methods to add and remove lines from the browser.
*/
class FL_EXPORT Fl_Select_Browser : public Fl_Browser {
public:
- /**
+ /**
Creates a new Fl_Select_Browser widget using the given
position, size, and label string. The default boxtype is FL_DOWN_BOX.
The constructor specializes Fl_Browser() by setting the type to FL_SELECT_BROWSER.
The destructor destroys the widget and frees all memory that has been allocated.
*/
- Fl_Select_Browser(int X,int Y,int W,int H,const char *l=0)
- : Fl_Browser(X,Y,W,H,l) {type(FL_SELECT_BROWSER);}
+#if defined(FL_DLL) // implementation in src/Fl_Browser.cxx
+ Fl_Select_Browser(int X,int Y,int W,int H,const char *L=0);
+#else
+ Fl_Select_Browser(int X,int Y,int W,int H,const char *L=0)
+ : Fl_Browser(X,Y,W,H,L) {type(FL_SELECT_BROWSER);}
+#endif
};
#endif