Age | Commit message (Collapse) | Author |
|
This helps those odd borderline cases, so now the scrollbar always seems
appropriate when it is visible.
|
|
Now that we correctly the FLayout.Width value this change could now be
made.
|
|
- Ultimately this is so we can fix the Layout.Width problem when UTF-8
characters are used in INF documents. eg: the FPC ref.inf file.
- UTF-8 characters can be greater than one byte, so we had to make some
changes.
- Changed some usages of Char to TfpgChar
TODO:
- CopyPlainTextToBuffer() implementation has been commented, until we can
rewrite it for use with fpGUI.
This is a big changes, but I tested DocView with numerous INF documents and
all seems well.
|
|
instead we should be looking at the overall FScrollBarWidth field value
which defines the Width or Height of all Scrollbars in RichView.
|
|
|
|
When we reach the end of a line, we shouldn't always default alignment
back to Left - I think. Anyway, this changes makes the output in DocView
look the same as IBM's iview program.
|
|
|
|
|
|
Refactored the code, so we only use UpdateScrollBarCoords() method.
|
|
It's the rectangle between the two scrollbars.
|
|
- added a unit header comment
- removed old code comments not needed any more
- removed old debug lines
|
|
- fixes the spelling of 'useful'
- Many 64-bit support fixes. Mainly Integer vs PtrInt changes
- Correct implementation of TRegExpr.GetMatch()
- extra debugging measures
|
|
We now support comments correctly, compiler defines, strings, decimal
and hex numbers.
|
|
|
|
Getting font resources are very costly. So now we cache the font used
for reserved keyword highlighting and simple reuse it, instead of creating
and freeing it for each line (like we did up 'till now).
This caused a MASSIVE speed increase! :-D
|
|
- multiple matches in the same line are now supported
- regex reserved keyword matching is now case-insensitive
|
|
This was used before we implemented regex syntax highlighting.
|
|
- Also improved correct highlighting by using word boundaries in regex.
|
|
|
|
|
|
|
|
A recent commit forced this change so it is consistent with fpGUI and
RTL usage of array property.
|
|
|
|
|
|
|
|
|
|
This is consistent with other components in the RTL, FCL and even fpGUI
itself.
|
|
- A new toolbar button is added in the main form.
- The Bookmarks menu is correctly updated
- Closing a help file correctly clears the bookmarks menu too.
|
|
|
|
|
|
It incorrectly showed "1 match found" due to the message we added to the
search result listbox.
|
|
|
|
|
|
I have successfully tested fpGUI using OpenSolaris 2010.03 (x86) using
FPC 2.4.4.
|
|
It seems FPC only supports users.pp unit in Linux. Making this changes
allows use to compile fpGUI under OpenSolaris too!
|
|
|
|
We never used to check if we are allowed to set the FFocusCol, we just
assumed we are allowed. Now we try each column while calling CanSelectCell()
in each iteration so we select the first available column.
|
|
Old behaviour we simply forced Consumed = True and later Consumed = False.
This has a very good chance of overwriting the origin consume value. We now
only set consume to True, if it is really so.
|
|
I created a install.sh script that registers DocView in the Gnome
Applications menu, registers the INF file mime-type and associated
icon (so it looks nice in Nautilus).
|
|
|
|
The ClearNotes() function was correctly called, I just forgot to implement
it. :-(
|
|
I defined a incorrect default font value. The Fixed Font Substitutes are
supposed to reference the fonts as defined in the IPF file, which will then
get substituted with the user's selected fixed font.
|
|
|
|
Now we have the product name 'DocView' written in a consistent manner
throughout the document. It is now easy to change in the future too.
|
|
|
|
- corrected the indentation level of example code
- added two missing paragraph symbols that should have appeared after
example text.
|
|
We now gracefully handle invalid -n parameter values, and notify the enduser
of such a problem - instead of just crashing out.
|
|
We now try and detect if a valid filename was passed as the first parameter.
If not (eg: some other -XXX parameter) then we simply ignore it.
|
|
Old behaviour was that we simply assumed the first parameter will be
the X11 -display parameter. This is just WRONG!
We now query the parameter list for the value of -display, that's if it
exists in the first place.
|
|
This gives an overall improved margin size. In future we should make this
user selectable in Docview's Preferences dialog.
|