From 49df7f85d875b3d8404d4f3206d1fced6393c1af Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 1 Mar 2010 20:53:21 +0000 Subject: Additions to the Database Editor. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7187 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/ide_support_ui.fl | 48 ++++++++++++++++++++++++++---------------------- 1 file changed, 26 insertions(+), 22 deletions(-) (limited to 'fluid/ide_support_ui.fl') diff --git a/fluid/ide_support_ui.fl b/fluid/ide_support_ui.fl index 75f38ad2b..539526ae8 100644 --- a/fluid/ide_support_ui.fl +++ b/fluid/ide_support_ui.fl @@ -37,48 +37,52 @@ decl {\#include } {public local decl {\#include "ide_support.h"} {private global } -decl {\#include } {selected private global +decl {\#include } {private global } Function {make_dbmanager_window()} {open } { Fl_Window dbmanager_window {open - xywh {459 167 409 510} type Double resizable visible + xywh {459 167 427 500} type Double resizable visible } { - Fl_File_Input {} { - label {Database:} - xywh {80 4 280 36} - } - Fl_Button {} { - label {@fileopen} - callback {const char *filename = fl_file_chooser("Load Database", "*.db", 0, 0); -if (filename) { - ui_load_database(filename); -}} - xywh {360 14 36 26} labelcolor 94 - } Fl_Box dbmanager_tree { - xywh {12 52 208 444} box DOWN_BOX color 55 resizable + xywh {8 8 200 480} box DOWN_BOX color 55 resizable code0 {dbmanager_tree->showroot(0);} code1 {dbmanager_tree->labelsize(12);} class Fl_Tree } Fl_Group {} {open - xywh {232 52 164 444} + xywh {216 8 200 444} box ENGRAVED_BOX } { - Fl_Button {} { - label Close - xywh {304 468 92 28} - } Fl_Group {} {open - xywh {232 128 164 340} resizable + xywh {224 271 184 172} resizable } {} Fl_Box {} { label {Show editor for selected Item here} - xywh {232 52 164 76} box THIN_DOWN_BOX + xywh {224 108 184 160} box THIN_DOWN_BOX } + Fl_Button {} { + label {Open Database...} + callback {const char *filename = fl_file_chooser("Load Database", "*.db", 0, 0); +if (filename) { + ui_load_database(filename); +}} + xywh {242 60 148 28} + } + Fl_Button {} { + label { (New Database... )} + callback {const char *filename = fl_file_chooser("Load Database", "*.db", 0, 0); +if (filename) { + ui_load_database(filename); +}} selected + xywh {242 24 148 28} deactivate + } + } + Fl_Button {} { + label {( Close )} + xywh {324 460 92 28} deactivate } } } -- cgit v1.2.3