diff options
| author | Greg Ercolano <erco@seriss.com> | 2009-12-08 08:06:44 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2009-12-08 08:06:44 +0000 |
| commit | a657069cc53cc05245762e9323efa040a9f70da2 (patch) | |
| tree | c007a095998f8a4d20ed4359eb7174803c4f8784 /src/Fl_Tree_Prefs.cxx | |
| parent | 5bc48808b6aed5469c3e62e1402e10c797a5d02a (diff) | |
Checked in SebHoll's API mods, fixed indents.
o Added user_data() to Fl_Tree_Item
o Added insert() and add() methods that allow specification of Fl_Tree_Prefs
o Changed Fl_Pixmap args to Fl_Image for more flexibility
o Fixes for positioning of items in the presence of user icons
o find_children() changed from protected -> public
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6956 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Tree_Prefs.cxx')
| -rw-r--r-- | src/Fl_Tree_Prefs.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/Fl_Tree_Prefs.cxx b/src/Fl_Tree_Prefs.cxx index 2c81c7ab9..4adee203d 100644 --- a/src/Fl_Tree_Prefs.cxx +++ b/src/Fl_Tree_Prefs.cxx @@ -73,19 +73,19 @@ static Fl_Pixmap L_closepixmap(L_close_xpm); /// when items are add()ed to the tree. /// This overrides the built in default '[+]' icon. /// -/// \param[in] val -- The new pixmap, or zero to use the default [+] icon. +/// \param[in] val -- The new image, or zero to use the default [+] icon. /// -void Fl_Tree_Prefs::openicon(Fl_Pixmap *val) { - _openpixmap = val ? val : &L_openpixmap; +void Fl_Tree_Prefs::openicon(Fl_Image *val) { + _openimage = val ? val : &L_openpixmap; } /// Sets the icon to be used as the 'close' icon. /// This overrides the built in default '[-]' icon. /// -/// \param[in] val -- The new pixmap, or zero to use the default [-] icon. +/// \param[in] val -- The new image, or zero to use the default [-] icon. /// -void Fl_Tree_Prefs::closeicon(Fl_Pixmap *val) { - _closepixmap = val ? val : &L_closepixmap; +void Fl_Tree_Prefs::closeicon(Fl_Image *val) { + _closeimage = val ? val : &L_closepixmap; } /// Fl_Tree_Prefs constructor @@ -106,9 +106,9 @@ Fl_Tree_Prefs::Fl_Tree_Prefs() { _inactivecolor = FL_GRAY; _connectorcolor = Fl_Color(43); _connectorstyle = FL_TREE_CONNECTOR_DOTTED; - _openpixmap = &L_openpixmap; - _closepixmap = &L_closepixmap; - _userpixmap = 0; + _openimage = &L_openpixmap; + _closeimage = &L_closepixmap; + _userimage = 0; _showcollapse = 1; _showroot = 1; _connectorwidth = 17; @@ -118,9 +118,9 @@ Fl_Tree_Prefs::Fl_Tree_Prefs() { // Let fltk's current 'scheme' affect defaults if ( Fl::scheme() ) { if ( strcmp(Fl::scheme(), "gtk+") == 0 ) { - _selectbox = _FL_GTK_THIN_UP_BOX; + _selectbox = _FL_GTK_THIN_UP_BOX; } else if ( strcmp(Fl::scheme(), "plastic") == 0 ) { - _selectbox = _FL_PLASTIC_THIN_UP_BOX; + _selectbox = _FL_PLASTIC_THIN_UP_BOX; } } } |
