2001-08-02 23:43:49 +04:00
|
|
|
# data file for the Fltk User Interface Designer (fluid)
|
2005-03-25 18:20:26 +03:00
|
|
|
version 1.0107
|
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}
|
2005-03-25 18:20:26 +03:00
|
|
|
comment {//
|
|
|
|
// "$Id$"
|
|
|
|
//
|
|
|
|
// Fl_Help_Dialog dialog for the Fast Light Tool Kit (FLTK).
|
|
|
|
//
|
|
|
|
// Copyright 1998-2005 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
|
|
|
|
//
|
|
|
|
} {in_source in_header
|
|
|
|
}
|
|
|
|
|
2002-08-30 20:58:16 +04:00
|
|
|
decl {\#include "flstring.h"} {}
|
|
|
|
|
2002-09-16 05:35:34 +04:00
|
|
|
decl {\#include <FL/fl_ask.H>} {}
|
2002-05-16 16:47:44 +04:00
|
|
|
|
2003-02-25 21:58:58 +03:00
|
|
|
class FL_EXPORT 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];} {}
|
2003-05-21 20:12:14 +04:00
|
|
|
decl {int find_pos_;} {}
|
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
|
2004-07-04 10:49:34 +04:00
|
|
|
private xywh {398 65 530 385} type Double resizable visible
|
2001-08-02 23:43:49 +04:00
|
|
|
} {
|
|
|
|
Fl_Group view_ {
|
|
|
|
callback {if (view_->changed())
|
|
|
|
{
|
|
|
|
index_ ++;
|
|
|
|
|
|
|
|
if (index_ >= 100)
|
|
|
|
{
|
2002-10-11 18:17:24 +04:00
|
|
|
memmove(line_, line_ + 10, sizeof(line_[0]) * 90);
|
|
|
|
memmove(file_, file_ + 10, sizeof(file_[0]) * 90);
|
2001-08-02 23:43:49 +04:00
|
|
|
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();
|
2005-03-25 18:20:26 +03:00
|
|
|
}} open selected
|
2003-02-25 21:58:58 +03:00
|
|
|
private xywh {10 10 510 330} box DOWN_BOX selection_color 15 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
|
|
|
} {}
|
2005-03-25 18:20:26 +03:00
|
|
|
Fl_Group {} {open
|
|
|
|
xywh {10 348 510 27}
|
|
|
|
} {
|
|
|
|
Fl_Button {} {
|
|
|
|
label Close
|
|
|
|
callback {window_->hide();}
|
|
|
|
private xywh {456 350 64 25}
|
|
|
|
code0 {o->label(fl_close);}
|
|
|
|
}
|
|
|
|
Fl_Button back_ {
|
|
|
|
label {@<-}
|
|
|
|
callback {if (index_ > 0)
|
2001-08-02 23:43:49 +04:00
|
|
|
index_ --;
|
|
|
|
|
|
|
|
if (index_ == 0)
|
|
|
|
back_->deactivate();
|
|
|
|
|
|
|
|
forward_->activate();
|
|
|
|
|
2004-03-11 08:17:12 +03:00
|
|
|
int l = line_[index_];
|
|
|
|
|
2001-08-02 23:43:49 +04:00
|
|
|
if (strcmp(view_->filename(), file_[index_]) != 0)
|
|
|
|
view_->load(file_[index_]);
|
|
|
|
|
2004-03-11 08:17:12 +03:00
|
|
|
view_->topline(l);}
|
2005-03-25 18:20:26 +03:00
|
|
|
private tooltip {Show the previous help page.} xywh {386 350 25 25} shortcut 0xff51 labelcolor 2
|
|
|
|
}
|
|
|
|
Fl_Button forward_ {
|
|
|
|
label {@->}
|
|
|
|
callback {if (index_ < max_)
|
2001-08-02 23:43:49 +04:00
|
|
|
index_ ++;
|
|
|
|
|
|
|
|
if (index_ >= max_)
|
|
|
|
forward_->deactivate();
|
|
|
|
|
|
|
|
back_->activate();
|
|
|
|
|
2004-03-11 08:17:12 +03:00
|
|
|
int l = view_->topline();
|
|
|
|
|
2001-08-02 23:43:49 +04:00
|
|
|
if (strcmp(view_->filename(), file_[index_]) != 0)
|
|
|
|
view_->load(file_[index_]);
|
|
|
|
|
2004-03-11 08:17:12 +03:00
|
|
|
view_->topline(l);}
|
2005-03-25 18:20:26 +03:00
|
|
|
private tooltip {Show the next help page.} xywh {421 350 25 25} shortcut 0xff53 labelcolor 2
|
|
|
|
}
|
|
|
|
Fl_Button smaller_ {
|
|
|
|
label F
|
|
|
|
callback {if (view_->textsize() > 8)
|
2001-08-02 23:43:49 +04:00
|
|
|
view_->textsize(view_->textsize() - 2);
|
|
|
|
|
|
|
|
if (view_->textsize() <= 8)
|
|
|
|
smaller_->deactivate();
|
|
|
|
larger_->activate();}
|
2005-03-25 18:20:26 +03:00
|
|
|
private tooltip {Make the help text smaller.} xywh {316 350 25 25} labelfont 1 labelsize 10
|
|
|
|
}
|
|
|
|
Fl_Button larger_ {
|
|
|
|
label F
|
|
|
|
callback {if (view_->textsize() < 18)
|
2001-08-02 23:43:49 +04:00
|
|
|
view_->textsize(view_->textsize() + 2);
|
|
|
|
|
|
|
|
if (view_->textsize() >= 18)
|
|
|
|
larger_->deactivate();
|
|
|
|
smaller_->activate();}
|
2005-03-25 18:20:26 +03:00
|
|
|
private tooltip {Make the help text larger.} xywh {351 350 25 25} labelfont 1 labelsize 16
|
|
|
|
}
|
|
|
|
Fl_Group {} {open
|
|
|
|
xywh {10 350 296 25} box DOWN_BOX color 7 resizable
|
|
|
|
} {
|
|
|
|
Fl_Input find_ {
|
|
|
|
label {@search}
|
|
|
|
callback {find_pos_ = view_->find(find_->value(), find_pos_);}
|
|
|
|
private tooltip {find text in document} xywh {35 352 268 21} box NO_BOX labelsize 13 when 10 resizable
|
|
|
|
}
|
2004-07-04 10:49:34 +04:00
|
|
|
}
|
2001-08-02 23:43:49 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
code {back_->deactivate();
|
|
|
|
forward_->deactivate();
|
|
|
|
|
2003-05-21 20:12:14 +04:00
|
|
|
index_ = -1;
|
|
|
|
max_ = 0;
|
|
|
|
find_pos_ = 0;
|
2002-09-16 05:35:34 +04:00
|
|
|
|
|
|
|
fl_register_images();} {}
|
2001-08-02 23:43:49 +04:00
|
|
|
}
|
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());} {}
|
|
|
|
}
|
|
|
|
}
|
2005-03-25 18:20:26 +03:00
|
|
|
|
|
|
|
comment {
|
|
|
|
//
|
|
|
|
// End of "$Id$".
|
|
|
|
//} {in_source in_header
|
|
|
|
}
|