summaryrefslogtreecommitdiff
path: root/src/corelib/fpg_base.pas
AgeCommit message (Collapse)Author
2013-08-27Replaced the FPC dbugintf unit with the customised fpGUI one.Graeme Geldenhuys
2013-07-12New Rectangle and Point methods introduced in fpg_mainGraeme Geldenhuys
* Moved PtInRect() to fpg_main, from fpg_base * New Rect and Point utility functions introduced in fpg_main
2013-05-13fixes compiler hint about unused variableGraeme Geldenhuys
2013-05-01Adds much faster Canvas.CopyRect() implemenation for the GDI backend.Graeme Geldenhuys
2013-04-30Adds CP1251 to UTF8 encoding conversionGraeme Geldenhuys
2013-04-25Implemented a new ConvertTextToUTF8() which converts some encoding to UTF8Graeme Geldenhuys
2013-04-18Merge branch 'hotfix-2' into developGraeme Geldenhuys
I found a problem with the deadkey support - it broke keyboard input under Windows. The original deadkey input issue seems to have been X11 specific, so should be fixed at widget level, but rather in the fpg_x11.pas unit.
2013-04-17Revert "Add common procedures in fpg_base for deadkeys"Graeme Geldenhuys
This reverts commit ccfd4b2ae0a9dfae0d19ae7ba673118af70c75da.
2013-04-12New record structure to be used in future OnMove events.Graeme Geldenhuys
2013-04-09Merge latest fixes from 'release-1.0' branch into developGraeme Geldenhuys
2013-04-09New SearchMode property to FileListBase classDibo
This allows the developer to filter the file results by Files only, Directories only, or both (default).
2013-04-04launching help viewerGraeme Geldenhuys
Under *nix systems, if we can't find the direct location of docview, we try the 'which docview' command. If we get a positive response, we know docview is in the system path, and we can go ahead and launch it. At least this doesn't instantly throw an exception when docview can't be found on the first attempt.
2013-04-03debug supportGraeme Geldenhuys
2013-03-22Add common procedures in fpg_base for deadkeysJean-Marc Levecque
2012-11-30Fixes compiler warning about using a deprecated type... TFPColorGraeme Geldenhuys
2012-11-30Fixes compiler hint about unused unitGraeme Geldenhuys
2012-11-13File Search Result Name was never correctly converted from OS encoding to UTF-8Graeme Geldenhuys
2012-09-26fixes spelling mistake in code comment.Graeme Geldenhuys
2012-08-16Make sure TfpgString is based on AnsiString.Graeme Geldenhuys
With the FPC 2.7.1 having some form of Unicode support, and the String typing being redefined... defining TfpgString as AnsiString, we know fpGUI will continue running as normal.
2012-06-29More sanity checks before calling the help viewer.Graeme Geldenhuys
Instead of just going with the assumption that the docview executable exists, check for it first, before we go any further. Calling TProcess.Execute with a non-existing executable gives an unwanted error in our applications.
2012-06-29Added new Exception classes for use in fpGUI.Graeme Geldenhuys
The thinking behind this is so that we can trap fpGUI specific exceptions in our applications if we wanted to. Thus handling them slightly different to other exceptions.
2012-03-20CreateMaskFromSample() under Agg-enabled canvas uses Alpha channel to mask ↵Graeme Geldenhuys
image.
2012-03-19Bit shifting of Alpha channel was wrong in color conversion routinesGraeme Geldenhuys
Both RGBTripleTofpgColor() and FPColorTofpgColor() incorrectly bit shifted the Alpha channel value.
2012-03-19Removed deprecated TFPColor usage.Graeme Geldenhuys
2012-03-15Give FreeMem()a help hand regarding the allocated memory size.Graeme Geldenhuys
2012-03-15improved the signature of Canvas constructors.Graeme Geldenhuys
2012-03-15New overloaded fpgColor() that takes a Alpha parameter as well.Graeme Geldenhuys
2012-03-15Changed color channels from word to byte size.Graeme Geldenhuys
* 8 bit color channels are the norm in all gui toolkits. * Deprecated the usage of TFPColor. TFPColor comes from the FPC fpcanvas unit, which I do not plan to use any more.
2012-03-15Enable usage of Alpha channel when color type is created or converted.Graeme Geldenhuys
2012-03-15Canvas read-only LineWidth property changed to a function GetLineWidth()Graeme Geldenhuys
This is so AggPas's canvas doesn't conflict, which also has a LineWidth method. I want to prevent similar name confusion.
2012-03-09Adds a comment about internal data structure of TfpgImage data.Graeme Geldenhuys
2011-12-08New functions to return darker or lighter variations of a color.Graeme Geldenhuys
2011-11-29move declaration of TfpgEditBorderStyle so it is more accessible.Graeme Geldenhuys
This now makes it easier to reuse this border style declaration in other widgets. We need to refactor some other widgets too, that have there own border styles as well.
2011-11-21TfpgWindowBase now introduces a BringToFront() method.Graeme Geldenhuys
2011-10-26new handy function to covert individual R, G and B values into a TfpgColor ↵Graeme Geldenhuys
value.
2011-08-31updates KeycodeToText() to use the new resource string constants.Graeme Geldenhuys
2011-08-24Shift comes after Ctrl or AltGraeme Geldenhuys
In KeycodeToText(), 'Shift+' came before Ctrl or Alt. This is not normal practice, so I moved it.
2011-08-17Fixed KeycodeToText that overwrote the ShiftState of previous values.Graeme Geldenhuys
2011-08-17TfpgTimer refactoring.Graeme Geldenhuys
Refactored the TfpgTimer by introducing a TfpgBaseTimer and X11 & GDI Timer descendants. This now allows use to add platform specific extensions to the timer implementation.
2011-08-11changed string parameter to TfpgString typeGraeme Geldenhuys
2011-07-16added timestamp varibale to Mouse Parameter record structure.Graeme Geldenhuys
This is a placeholder for future use.
2011-06-17Introduced a new property TfpgWindowBase.WindowStateGraeme Geldenhuys
This is an initial implementation for Linux only. Currently this property is read-only, but that alone is already very useful. Next I'll implement the Windows support, and later the read-write support.
2011-02-07Default Font changes.Graeme Geldenhuys
* Linux now defaults to 'Liberation Sans' which comes standard with most Linux distros, and is metric compatible with Arial. The latter is freely available, but doesn't come standard with any Linux disto. * Windows default font size is now 8 (down from previous 10), which is now the same as the remainder of Windows apps. Strange that the same font as size (eg: Arial-10) is different sizes in pixels under Linux and Windows. Weird! :-/
2011-01-12Fix stupid typo bug in HandleMove.Graeme Geldenhuys
We used FHeight instead of FLeft!! Dope!
2011-01-11fixes Alignment and Anchor calculation even before we have a window handleGraeme Geldenhuys
Updated the following methods by rather checking the ComponentState, than the HasHandle result. Why? Because we want alignment and anchor calculations to work, even before we have a window handle. Something that happens often when using a Frame-type design for the UI. * HandleMove() * HandleResize() * UpdateWindowPosition() Due to removing the HasHandle check in UpdateWindowPosition, we had to do the HasHandle check in each backend code instead. We don't want to trigger API calls when we don't have a window handle yet.
2011-01-10DoWaitWindowMessage() defined as virtual abstract in fpg_baseGraeme Geldenhuys
* All fpGUI backends must override it as supply an implementation. * Moved DowaitWindowMessage() implementations to the protected section in the GDI and X11 backends.
2011-01-10DoMessagesPending() renamed to MessagesPending()Graeme Geldenhuys
Also made MessagesPending() a virtual abstract method in fpg_base.pas which every fpGUI backend must supply an implementation.
2010-11-12fpgApplication.CreateForm implementation has changed, but end result is the sameGraeme Geldenhuys
Apparently it is good to allocate a instance, without calling the constructor. I'm not exactly sure why, but it also makes supporting FPC 2.5.1 a lot less messy (no casting required).
2010-10-29Moved OnDragStartDetected from TfpgWidget to TfpgWindowBaseGraeme Geldenhuys
* also introduced virtual DoDragStartDetected which executes the OnDragStartDetected event * We also added a override of DoDragStartDetected in GDI for some extra tasks.
2010-10-29Renamed TfpgMimeDataStruct to TfpgMimeDataItemGraeme Geldenhuys
* Also changed FormatCount to Count (more like standard list interface) * Also introduced a Items property (more like standard list interface) * The above to changes also made other implementations more simplified, so I did a bit of refactoring.