summaryrefslogtreecommitdiff
path: root/fluid/ide_support.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-02-27 22:38:25 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-02-27 22:38:25 +0000
commitc35463fdbee1563f7216757ba039cfb89b188897 (patch)
tree19f30bcf09879b180a8348d7750025713eadad15 /fluid/ide_support.cxx
parent5f1ca6a2b05da2905c7c92916acab165db3164b4 (diff)
Starting to add a GUI to manage the IDE database.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7169 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/ide_support.cxx')
-rw-r--r--fluid/ide_support.cxx19
1 files changed, 18 insertions, 1 deletions
diff --git a/fluid/ide_support.cxx b/fluid/ide_support.cxx
index 41ccd60d2..53362928b 100644
--- a/fluid/ide_support.cxx
+++ b/fluid/ide_support.cxx
@@ -103,6 +103,7 @@
*/
#include "ide_support.h"
+#include "ide_support_ui.h"
#include <FL/Fl.H>
#include <FL/fl_ask.H>
@@ -632,6 +633,7 @@ int create_new_database(const char *filename)
fluid_app.add_source(files_db, "fluid/fluid.cxx");
fluid_app.add_source(files_db, "fluid/function_panel.cxx");
fluid_app.add_source(files_db, "fluid/ide_support.cxx");
+ fluid_app.add_source(files_db, "fluid/ide_support_ui.cxx");
fluid_app.add_source(files_db, "fluid/ide_visualc.cxx");
fluid_app.add_source(files_db, "fluid/ide_xcode.cxx");
fluid_app.add_source(files_db, "fluid/template_panel.cxx");
@@ -1125,11 +1127,21 @@ int create_new_database(const char *filename)
demo_db.depends_on(db);
}
- db->flush();
+ db->flush();
+ delete db;
return 0;
}
+void ui_load_database(const char *filename)
+{
+ Fl_Preferences *db = new Fl_Preferences(filename, "fltk.org", 0);
+ db->copyTo(dbmanager_tree);
+ dbmanager_tree->redraw();
+ delete db;
+}
+
+
// Make this module into a plugin
extern int exit_early;
@@ -1160,6 +1172,11 @@ public:
create_new_database(a1);
return 0;
}
+ void show_panel() {
+ if (!dbmanager_window)
+ make_dbmanager_window();
+ dbmanager_window->show();
+ }
};
Fl_FltkDB_Plugin FltkDB_Plugin;