1 | // generated by Fast Light User Interface Designer (fluid) version 2.0100
|
---|
2 |
|
---|
3 | #include "GTAboutDialog.h"
|
---|
4 | #include <fltk/ask.h>
|
---|
5 |
|
---|
6 |
|
---|
7 | /*OK Callback*/
|
---|
8 | inline void GTAboutDialog::cb_mOK_i(fltk::Button*, void*)
|
---|
9 | {
|
---|
10 | delete mMainWindow;
|
---|
11 | }
|
---|
12 |
|
---|
13 | void GTAboutDialog::cb_mOK(fltk::Button* o, void* v) {
|
---|
14 | ((GTAboutDialog*)(o->parent()->parent()->user_data()))->cb_mOK_i(o,v);
|
---|
15 | }
|
---|
16 |
|
---|
17 | GTAboutDialog::GTAboutDialog()
|
---|
18 | {
|
---|
19 | fltk::gifImage *logo;
|
---|
20 | fltk::Window *w;
|
---|
21 |
|
---|
22 | const char credits[1000] = "GameTools Project";
|
---|
23 |
|
---|
24 | {
|
---|
25 | fltk::Window* o = mMainWindow = new fltk::Window(289, 319, "About");
|
---|
26 | w = o;
|
---|
27 | o->user_data((void*)(this));
|
---|
28 | o->begin();
|
---|
29 | {fltk::Group* o = new fltk::Group(0, 0, 289, 318);
|
---|
30 | o->set_vertical();
|
---|
31 | o->begin();
|
---|
32 |
|
---|
33 | {
|
---|
34 | fltk::MultiLineOutput* o = mText = new fltk::MultiLineOutput(15, 135, 260, 140);
|
---|
35 | mText->value(credits,strlen(credits));
|
---|
36 | o->type(4);
|
---|
37 | o->box(fltk::NO_BOX);
|
---|
38 | o->color((fltk::Color)0xe0dfe300);
|
---|
39 | }
|
---|
40 |
|
---|
41 | /* {
|
---|
42 | fltk::SharedImage *gifLogo = logo->get("media\\logos\\GameTools.gif");
|
---|
43 |
|
---|
44 | fltk::InvisibleBox* o = mLogo = new fltk::InvisibleBox(100, 25, 95, 100);
|
---|
45 | mLogo->image(gifLogo);
|
---|
46 | o->set_vertical();
|
---|
47 | o->color((fltk::Color)0xe0dfe300);
|
---|
48 | }*/
|
---|
49 |
|
---|
50 | {
|
---|
51 | fltk::Button* o = mOK = new fltk::Button(105, 285, 89, 25, "OK");
|
---|
52 | o->callback((fltk::Callback*)cb_mOK);
|
---|
53 | }
|
---|
54 | o->end();
|
---|
55 | }
|
---|
56 | o->end();
|
---|
57 | }
|
---|
58 |
|
---|
59 | mMainWindow->show();
|
---|
60 | }
|
---|
61 |
|
---|