2001-08-02 23:43:49 +04:00
|
|
|
# data file for the Fltk User Interface Designer (fluid)
|
|
|
|
version 1.0100
|
2001-09-29 18:38:59 +04:00
|
|
|
header_name {../FL/Fl_Help_Dialog.H}
|
2002-05-16 16:47:44 +04:00
|
|
|
code_name {.cxx}
|
|
|
|
decl {\#include "flstring.h"} {selected
|
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
class Fl_Help_Dialog {open
|
2001-08-02 23:43:49 +04:00
|
|
|
} {
|
|
|
|
decl {int index_;} {}
|
|
|
|
decl {int max_;} {}
|
|
|
|
decl {int line_[100];} {}
|
|
|
|
decl {char file_[100][256];} {}
|
2001-09-29 18:38:59 +04:00
|
|
|
Function {Fl_Help_Dialog()} {open
|
2001-08-02 23:43:49 +04:00
|
|
|
} {
|
|
|
|
Fl_Window window_ {
|
2001-12-23 06:40:51 +03:00
|
|
|
label {Help Dialog} open
|
2001-09-10 07:09:43 +04:00
|
|
|
private xywh {470 380 530 385} type Double resizable
|
2002-05-16 16:47:44 +04:00
|
|
|
visible
|
2001-08-02 23:43:49 +04:00
|
|
|
} {
|
|
|
|
Fl_Group view_ {
|
|
|
|
callback {if (view_->changed())
|
|
|
|
{
|
|
|
|
index_ ++;
|
|
|
|
|
|
|
|
if (index_ >= 100)
|
|
|
|
{
|
|
|
|
memcpy(line_, line_ + 10, sizeof(line_[0]) * 90);
|
|
|
|
memcpy(file_, file_ + 10, sizeof(file_[0]) * 90);
|
|
|
|
index_ -= 10;
|
|
|
|
}
|
|
|
|
|
|
|
|
max_ = index_;
|
|
|
|
|
2002-05-16 16:47:44 +04:00
|
|
|
strlcpy(file_[index_], view_->filename(),sizeof(file_[0]));
|
2001-08-02 23:43:49 +04:00
|
|
|
line_[index_] = view_->topline();
|
|
|
|
|
|
|
|
if (index_ > 0)
|
|
|
|
back_->activate();
|
|
|
|
else
|
|
|
|
back_->deactivate();
|
|
|
|
|
|
|
|
forward_->deactivate();
|
|
|
|
window_->label(view_->title());
|
|
|
|
}
|
|
|
|
else if (view_->filename())
|
|
|
|
{
|
2002-05-16 16:47:44 +04:00
|
|
|
strlcpy(file_[index_], view_->filename(), sizeof(file_[0]));
|
2001-08-02 23:43:49 +04:00
|
|
|
line_[index_] = view_->topline();
|
|
|
|
}} open
|
|
|
|
private xywh {10 10 510 330} box DOWN_BOX resizable
|
2001-09-29 18:38:59 +04:00
|
|
|
code0 {\#include <FL/Fl_Help_View.H>}
|
|
|
|
class Fl_Help_View
|
2001-08-02 23:43:49 +04:00
|
|
|
} {}
|
|
|
|
Fl_Button {} {
|
|
|
|
label Close
|
|
|
|
callback {window_->hide();}
|
|
|
|
xywh {425 350 95 25}
|
|
|
|
}
|
|
|
|
Fl_Button back_ {
|
|
|
|
label {@<-}
|
|
|
|
callback {if (index_ > 0)
|
|
|
|
index_ --;
|
|
|
|
|
|
|
|
if (index_ == 0)
|
|
|
|
back_->deactivate();
|
|
|
|
|
|
|
|
forward_->activate();
|
|
|
|
|
|
|
|
if (strcmp(view_->filename(), file_[index_]) != 0)
|
|
|
|
view_->load(file_[index_]);
|
|
|
|
|
|
|
|
view_->topline(line_[index_]);}
|
2001-12-23 06:40:51 +03:00
|
|
|
private tooltip {Show the previous help page.} xywh {365 350 25 25} shortcut 0xff51 labelcolor 2
|
2001-08-02 23:43:49 +04:00
|
|
|
}
|
|
|
|
Fl_Button forward_ {
|
|
|
|
label {@->}
|
|
|
|
callback {if (index_ < max_)
|
|
|
|
index_ ++;
|
|
|
|
|
|
|
|
if (index_ >= max_)
|
|
|
|
forward_->deactivate();
|
|
|
|
|
|
|
|
back_->activate();
|
|
|
|
|
|
|
|
if (strcmp(view_->filename(), file_[index_]) != 0)
|
|
|
|
view_->load(file_[index_]);
|
|
|
|
|
|
|
|
view_->topline(line_[index_]);}
|
2001-12-23 06:40:51 +03:00
|
|
|
private tooltip {Show the next help page.} xywh {395 350 25 25} shortcut 0xff53 labelcolor 2
|
2001-08-02 23:43:49 +04:00
|
|
|
}
|
|
|
|
Fl_Button smaller_ {
|
|
|
|
label F
|
|
|
|
callback {if (view_->textsize() > 8)
|
|
|
|
view_->textsize(view_->textsize() - 2);
|
|
|
|
|
|
|
|
if (view_->textsize() <= 8)
|
|
|
|
smaller_->deactivate();
|
|
|
|
larger_->activate();}
|
2001-12-23 06:40:51 +03:00
|
|
|
private tooltip {Make the help text smaller.} xywh {305 350 25 25} labelfont 1 labelsize 10
|
2001-08-02 23:43:49 +04:00
|
|
|
}
|
|
|
|
Fl_Button larger_ {
|
|
|
|
label F
|
|
|
|
callback {if (view_->textsize() < 18)
|
|
|
|
view_->textsize(view_->textsize() + 2);
|
|
|
|
|
|
|
|
if (view_->textsize() >= 18)
|
|
|
|
larger_->deactivate();
|
|
|
|
smaller_->activate();}
|
2001-12-23 06:40:51 +03:00
|
|
|
private tooltip {Make the help text larger.} xywh {335 350 25 25} labelfont 1 labelsize 16
|
2001-08-02 23:43:49 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
code {back_->deactivate();
|
|
|
|
forward_->deactivate();
|
|
|
|
|
|
|
|
index_ = -1;
|
|
|
|
max_ = 0;} {}
|
|
|
|
}
|
2001-09-29 18:38:59 +04:00
|
|
|
Function {~Fl_Help_Dialog()} {} {
|
2001-08-02 23:43:49 +04:00
|
|
|
code {delete window_;} {}
|
|
|
|
}
|
|
|
|
Function {h()} {return_type int
|
|
|
|
} {
|
|
|
|
code {return (window_->h());} {}
|
|
|
|
}
|
|
|
|
Function {hide()} {return_type void
|
|
|
|
} {
|
|
|
|
code {window_->hide();} {}
|
|
|
|
}
|
|
|
|
Function {load(const char *f)} {return_type void
|
|
|
|
} {
|
|
|
|
code {view_->set_changed();
|
|
|
|
view_->load(f);
|
|
|
|
window_->label(view_->title());} {}
|
|
|
|
}
|
|
|
|
Function {position(int xx, int yy)} {return_type void
|
|
|
|
} {
|
|
|
|
code {window_->position(xx, yy);} {}
|
|
|
|
}
|
|
|
|
Function {resize(int xx, int yy, int ww, int hh)} {return_type void
|
|
|
|
} {
|
|
|
|
code {window_->resize(xx, yy, ww, hh);} {}
|
|
|
|
}
|
|
|
|
Function {show()} {return_type void
|
|
|
|
} {
|
|
|
|
code {window_->show();} {}
|
|
|
|
}
|
2002-05-16 16:47:44 +04:00
|
|
|
Function {show(int argc, char **argv)} {return_type void
|
2001-12-23 06:40:51 +03:00
|
|
|
} {
|
2002-05-16 16:47:44 +04:00
|
|
|
code {window_->show(argc, argv);} {}
|
2001-12-23 06:40:51 +03:00
|
|
|
}
|
2001-08-02 23:43:49 +04:00
|
|
|
Function {textsize(uchar s)} {return_type void
|
|
|
|
} {
|
|
|
|
code {view_->textsize(s);
|
|
|
|
|
|
|
|
if (s <= 8)
|
|
|
|
smaller_->deactivate();
|
|
|
|
else
|
|
|
|
smaller_->activate();
|
|
|
|
|
|
|
|
if (s >= 18)
|
|
|
|
larger_->deactivate();
|
|
|
|
else
|
|
|
|
larger_->activate();} {}
|
|
|
|
}
|
|
|
|
Function {textsize()} {return_type uchar
|
|
|
|
} {
|
|
|
|
code {return (view_->textsize());} {}
|
|
|
|
}
|
|
|
|
Function {topline(const char *n)} {return_type void
|
|
|
|
} {
|
|
|
|
code {view_->topline(n);} {}
|
|
|
|
}
|
|
|
|
Function {topline(int n)} {return_type void
|
|
|
|
} {
|
|
|
|
code {view_->topline(n);} {}
|
|
|
|
}
|
|
|
|
Function {visible()} {return_type int
|
|
|
|
} {
|
|
|
|
code {return (window_->visible());} {}
|
|
|
|
}
|
|
|
|
Function {w()} {return_type int
|
|
|
|
} {
|
|
|
|
code {return (window_->w());} {}
|
|
|
|
}
|
|
|
|
Function {x()} {return_type int
|
|
|
|
} {
|
|
|
|
code {return (window_->x());} {}
|
|
|
|
}
|
|
|
|
Function {y()} {return_type int
|
|
|
|
} {
|
|
|
|
code {return (window_->y());} {}
|
|
|
|
}
|
|
|
|
}
|