Typos and alignments

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6830 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher
2009-07-18 11:03:44 +00:00
parent 5045d2e834
commit 49dc93677e
3 changed files with 142 additions and 144 deletions
+8 -8
View File
@@ -82,7 +82,7 @@
simply incrementing such an index will not reliably advance to the next character simply incrementing such an index will not reliably advance to the next character
in the text buffer. in the text buffer.
Indices and pointers into the text buffer shoudl always point at an 7 bit ASCII Indices and pointers into the text buffer should always point at a 7 bit ASCII
character or the beginning of a utf8 character sequence. Behavior for false character or the beginning of a utf8 character sequence. Behavior for false
utf8 sequences and pointers into the middle of a seqeunce are undefined. utf8 sequences and pointers into the middle of a seqeunce are undefined.
@@ -116,7 +116,7 @@ class FL_EXPORT Fl_Input_ : public Fl_Widget {
/** \internal Positin of the cursor in the document */ /** \internal Positin of the cursor in the document */
int position_; int position_;
/** \internal Position of the other and of the selected text. If \p position_ equals /** \internal Position of the other end of the selected text. If \p position_ equals
\p mark_, no text is selected */ \p mark_, no text is selected */
int mark_; int mark_;
@@ -130,7 +130,7 @@ class FL_EXPORT Fl_Input_ : public Fl_Widget {
/** \internal Maximum size of buffer. \todo Is this really needed? */ /** \internal Maximum size of buffer. \todo Is this really needed? */
int maximum_size_; int maximum_size_;
/** \internal Shorcut key that will get this widget the focus. */ /** \internal Shortcut key that will fetch focus for this widget. */
int shortcut_; int shortcut_;
/** \internal This is set if no text but only the cursor needs updating. */ /** \internal This is set if no text but only the cursor needs updating. */
@@ -174,16 +174,16 @@ class FL_EXPORT Fl_Input_ : public Fl_Widget {
protected: protected:
/* Finds the start of a word. */ /* Find the start of a word. */
int word_start(int i) const; int word_start(int i) const;
/* Finds the end of a word. */ /* Find the end of a word. */
int word_end(int i) const; int word_end(int i) const;
/* Finds the start of a line. */ /* Find the start of a line. */
int line_start(int i) const; int line_start(int i) const;
/* Finds the end of a line. */ /* Find the end of a line. */
int line_end(int i) const; int line_end(int i) const;
/* Draw the text in the passed bounding box. */ /* Draw the text in the passed bounding box. */
@@ -215,7 +215,7 @@ public:
/* Change the size of the widget. */ /* Change the size of the widget. */
void resize(int, int, int, int); void resize(int, int, int, int);
/* Creator */ /* Constructor */
Fl_Input_(int, int, int, int, const char* = 0); Fl_Input_(int, int, int, int, const char* = 0);
/* Destructor */ /* Destructor */
+131 -134
View File
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -39,6 +39,7 @@ class ScrollBarSizeTest : public Fl_Group {
Fl_Browser *b = new Fl_Browser(X,Y,W,H,L); Fl_Browser *b = new Fl_Browser(X,Y,W,H,L);
b->type(FL_MULTI_BROWSER); b->type(FL_MULTI_BROWSER);
b->add("Papa"); b->add("Delta"); b->add("Hotel"); b->add("Papa"); b->add("Delta"); b->add("Hotel");
b->add("Long entry will show h-bar");
b->add("Charlie"); b->add("Echo"); b->add("Foxtrot"); b->add("Charlie"); b->add("Echo"); b->add("Foxtrot");
b->add("Golf"); b->add("Lima"); b->add("Victor"); b->add("Golf"); b->add("Lima"); b->add("Victor");
b->add("Alpha"); b->add("Xray"); b->add("Yankee"); b->add("Alpha"); b->add("Xray"); b->add("Yankee");
@@ -105,7 +106,7 @@ public:
"Scrollbar's size should change interactively as size sliders are changed.\n" "Scrollbar's size should change interactively as size sliders are changed.\n"
"Changing 'Global Scroll Size' should affect all three browser's scrollbars UNLESS\n" "Changing 'Global Scroll Size' should affect all three browser's scrollbars UNLESS\n"
"the 'A: Scroll Size' slider is changed, in which case its value will take precedence\n" "the 'A: Scroll Size' slider is changed, in which case its value will take precedence\n"
"for 'Browser A', and the global size will only affect Browser A + B."); "for 'Browser A', and the global size will only affect Browser B and C.");
labelsize(12); labelsize(12);
align(FL_ALIGN_INSIDE|FL_ALIGN_BOTTOM|FL_ALIGN_LEFT|FL_ALIGN_WRAP); align(FL_ALIGN_INSIDE|FL_ALIGN_BOTTOM|FL_ALIGN_LEFT|FL_ALIGN_WRAP);
} }