summaryrefslogtreecommitdiff
path: root/fluid/ide_support_ui.cxx
blob: b6507a6ce9febe05e85ccab0a4a57eb49e1e5d34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
//
// "$Id: ide_support_ui.fl 6614 2009-01-01 16:11:32Z matt $"
//
// Setting and shell dialogs for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 by Bill Spitzak and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Library General Public License for more details.
//
// You should have received a copy of the GNU Library General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
// USA.
//
// Please report all bugs and problems on the following page:
//
//     http://www.fltk.org/str.php
//

// generated by Fast Light User Interface Designer (fluid) version 1.0300

#include "ide_support_ui.h"
#include "ide_support.h"
#include <FL/Fl_File_Chooser.H>

Fl_Double_Window *dbmanager_window=(Fl_Double_Window *)0;

Fl_Tree *dbmanager_tree=(Fl_Tree *)0;

static void cb_Open(Fl_Button*, void*) {
  const char *filename = fl_file_chooser("Load Database", "*.db", 0, 0);
if (filename) {
  ui_load_database(filename);
};
}

static void cb_New(Fl_Button*, void*) {
  const char *filename = fl_file_chooser("Load Database", "*.db", 0, 0);
if (filename) {
  ui_load_database(filename);
};
}

Fl_Double_Window* make_dbmanager_window() {
  { dbmanager_window = new Fl_Double_Window(427, 500);
    { dbmanager_tree = new Fl_Tree(8, 8, 200, 480);
      dbmanager_tree->box(FL_DOWN_BOX);
      dbmanager_tree->color((Fl_Color)55);
      dbmanager_tree->selection_color(FL_BACKGROUND_COLOR);
      dbmanager_tree->labeltype(FL_NORMAL_LABEL);
      dbmanager_tree->labelfont(0);
      dbmanager_tree->labelsize(14);
      dbmanager_tree->labelcolor(FL_FOREGROUND_COLOR);
      dbmanager_tree->align(Fl_Align(FL_ALIGN_CENTER));
      dbmanager_tree->when(FL_WHEN_RELEASE);
      Fl_Group::current()->resizable(dbmanager_tree);
      dbmanager_tree->showroot(0);
      dbmanager_tree->labelsize(12);
    } // Fl_Tree* dbmanager_tree
    { Fl_Group* o = new Fl_Group(216, 8, 200, 444);
      o->box(FL_ENGRAVED_BOX);
      { Fl_Group* o = new Fl_Group(224, 271, 184, 172);
        o->end();
        Fl_Group::current()->resizable(o);
      } // Fl_Group* o
      { Fl_Box* o = new Fl_Box(224, 108, 184, 160, "Show editor\nfor selected\nItem here");
        o->box(FL_THIN_DOWN_BOX);
      } // Fl_Box* o
      { Fl_Button* o = new Fl_Button(242, 60, 148, 28, "Open Database...");
        o->callback((Fl_Callback*)cb_Open);
      } // Fl_Button* o
      { Fl_Button* o = new Fl_Button(242, 24, 148, 28, " (New Database... )");
        o->callback((Fl_Callback*)cb_New);
        o->deactivate();
      } // Fl_Button* o
      o->end();
    } // Fl_Group* o
    { Fl_Button* o = new Fl_Button(324, 460, 92, 28, "( Close )");
      o->deactivate();
    } // Fl_Button* o
    dbmanager_window->end();
  } // Fl_Double_Window* dbmanager_window
  return dbmanager_window;
}

//
// End of "$Id: ide_support_ui.fl 6614 2009-01-01 16:11:32Z matt $".
//