This commit is contained in:
kryton9 2013-11-10 03:38:12 -05:00
commit f09ac172c0
4 changed files with 21 additions and 9 deletions

View File

@ -34,7 +34,6 @@ SUB TT::BuildTable(QAbstractButton *button) DO
DIM AS INT I;
DIM AS QString buf;
ui.listWidget->clear();
FOR (I = 1 TO I<11 STEP I++) DO
buf = QString("%1 %2 %3 %4 %5").arg(button->text()).arg(" X ").arg(QString::number(I)).arg(" = ").arg(QString::number(I*button->text().toInt()));
@ -46,7 +45,7 @@ ENDSUB
MAIN
DIM AS QApplication app(argc, argv);
DIM AS TT *TinyTimes = new TT;
DIM AS TT PTR TinyTimes = new TT;
TinyTimes->Center();
TinyTimes->show();
RETURN app.exec();

13
fltk/Makefile Normal file
View File

@ -0,0 +1,13 @@
all: clean fltkdemo
CMD = fltk-config
FLAGS = --libs --cxxflags --use-images --use-gl --ldstaticflags --compile
fltkdemo:
$(CMD) $(FLAGS) $@.cpp
clean:
@rm fltkdemo
@rm -rf fltkdemo.app

View File

@ -5,9 +5,9 @@
MAIN
DIM AS INT top = 40;
DIM AS WINDOW *win;
DIM AS INPUT *txtSource, *txtDest;
DIM AS BUTTON *btnSource, *btnDest;
DIM AS WINDOW PTR win;
DIM AS INPUT PTR txtSource, PTR txtDest;
DIM AS BUTTON PTR btnSource, PTR btnDest;
win = new WINDOW(690,486,"FLTK Demo");
win->position((Fl::w() - win->w())/2, (Fl::h() - win->h())/2);

View File

@ -44,8 +44,8 @@
#define ADDR &
#define INCR ++
#define DECR --
#define PRIOR --
#define BYREF *
#define PTR *
#define NOT not
#define IF if
#define THEN {