diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2010-07-10 09:44:45 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2010-07-10 09:44:45 +0000 |
| commit | 32716d6b1e8a90cbe61b60994323029ec6abe85c (patch) | |
| tree | 9c047f9cbf6a6581ef408dfabdab0aebde240a1b /src/Fl_Preferences.cxx | |
| parent | 8306c3d0b31d4e60a9ba9c4d0ca4ed6a32226de1 (diff) | |
Updated the Fluid IDE support for the current source file structure. Changed the Fl_Tree rendering code around a bit to make the tree more like MSWindows on Windows and more like Apple on Apple machines. I hope you guys like it. I also moved the function to load Fl_Preferences into an Fl_Tree into the Fl_Tree class where it belongs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7672 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Preferences.cxx')
| -rw-r--r-- | src/Fl_Preferences.cxx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/Fl_Preferences.cxx b/src/Fl_Preferences.cxx index 466a4f5d6..7a5a72b36 100644 --- a/src/Fl_Preferences.cxx +++ b/src/Fl_Preferences.cxx @@ -380,17 +380,6 @@ Fl_Preferences::~Fl_Preferences() /** - Copy the database hierarchy to an Fl_Tree browser from this node down. - */ -char Fl_Preferences::copyTo(Fl_Tree *tree) -{ - if (!tree->root()) - tree->add(name()); - return node->copyTo(tree, tree->root()); -} - - -/** Returns the number of groups that are contained within a group. \return 0 for no groups at all @@ -1762,28 +1751,6 @@ void Fl_Preferences::Node::deleteIndex() { indexed_ = 0; } -char Fl_Preferences::Node::copyTo(Fl_Tree *tree, Fl_Tree_Item *ti) -{ - ti->label(name()); - ti->user_data(this); - Node *nd = child_; - for ( ; nd; nd = nd->next_) { - Fl_Tree_Item *tic = tree->insert(ti, 0, 0); - nd->copyTo(tree, tic); - tic->close(); - } - int i, n = nEntry_; - for (i=0; i<n; i++) { - char buf[80]; - const char *name = entry_[i].name; - const char *value = entry_[i].value; - fl_snprintf(buf, 80, "%s: %s", name, value); - tree->add(ti, buf); - } - return 0; -} - - /** * \brief Create a plugin. * |
