Commit graph

1193 commits

Author SHA1 Message Date
Laurent Carlier
0bee2e02dd [GB.SDL]
* BUG: Properly free allocations.


git-svn-id: svn://localhost/gambas/trunk@2962 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-24 09:56:14 +00:00
Laurent Carlier
e4836e99d6 [GB.SDL]
* BUG: Do not forget to ref/unref the font.



git-svn-id: svn://localhost/gambas/trunk@2961 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-24 09:01:25 +00:00
Benoît Minisini
48f6a6a309 [INTERPRETER]
* BUG: L'API GB.ReturnNewString() doit pouvoir retourner une chaîne vide. 
  Dans ce cas elle le transforme en un GB.ReturnNull().


git-svn-id: svn://localhost/gambas/trunk@2960 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-23 18:59:11 +00:00
Benoît Minisini
2215ca1b08 [DEVELOPMENT ENVIRONMENT]
* BUG: Correctly reset the breakpoint list when opening a project.


git-svn-id: svn://localhost/gambas/trunk@2959 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-23 18:57:25 +00:00
Laurent Carlier
9510ec8d21 [GB.SDL]
* NEW: Loading font through Font.Load() method and displaying it
       with Draw.Text() method
* NEW: Draw.Rotate() and Draw.Scale() to respectivly rotate and scale
       images and fonts when displaying them.
* NEW: Draw.ForeColor() affect image displayed too.
* OPT: Some optimizations. 


git-svn-id: svn://localhost/gambas/trunk@2958 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-23 15:27:56 +00:00
Benoît Minisini
4a544c567a [INTERPRETER]
* BUG: Use GB.ReturnNewZeroString() instead of GB.ReturnNewString() now. 
  All components using the old syntax should be fixed now.
* NEW: Start to manage structures.


git-svn-id: svn://localhost/gambas/trunk@2957 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-23 11:07:14 +00:00
Benoît Minisini
41a002012a [COMPILER]
* BUG: Reserved functions following the READ keyword are correctly detected 
  again.


git-svn-id: svn://localhost/gambas/trunk@2956 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-22 21:56:42 +00:00
Benoît Minisini
dffc0cbaa8 [GB.EVAL]
* NEW: Fix the error management the same way as in the interpreter.


git-svn-id: svn://localhost/gambas/trunk@2955 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-22 20:41:11 +00:00
Benoît Minisini
ed041dc7d0 [COMPILER]
* BUG: Forgot to add the source file that generates the reserved keywords 
  analyzer.


git-svn-id: svn://localhost/gambas/trunk@2954 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-22 19:35:18 +00:00
Benoît Minisini
117f2ac635 [INTERPRETER]
* NEW: New GB.NewZeroString() API to create a Gambas string from a 
  null-terminated string. Components were modified to use it.
* OPT: Many optimizations everywhere.

[COMPILER]
* OPT: Many optimizations. The compiler should be noticeably faster.


git-svn-id: svn://localhost/gambas/trunk@2953 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-22 18:02:34 +00:00
Benoît Minisini
8e1604e59d [CONFIGURATION]
* NEW: The bytecode version has been incremented, as the object file format 
  has changed.

[DEVELOPMENT ENVIRONMENT]
* BUG: Handle static arrays in automatic completion.

[INTERPRETER]
* BUG: Handle public static arrays correctly.

[COMPILER]
* NEW: Handle structures, and write them inside object files.
* NEW: Class options (EXPORT, CREATE...) can only be written at the 
  beginning of the source file now.
* BUG: Fix some use of uninitialized values.
* BUG: Correctly write public static arrays in *.info files.
* NEW: Do not support old OPEN syntax anymore.


git-svn-id: svn://localhost/gambas/trunk@2952 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-20 23:23:39 +00:00
Benoît Minisini
74e8fc7fed [INTERPRETER]
* OPT: Many branch prediction optimizations.


git-svn-id: svn://localhost/gambas/trunk@2951 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-19 20:18:23 +00:00
Benoît Minisini
25ad3928cc [CONFIGURATION]
* NEW: Detect PowerPC architecture.

[INTERPRETER]
* OPT: As old static arrays have been removed, a new little optimization 
  is possible in array reading and writing functions.


git-svn-id: svn://localhost/gambas/trunk@2950 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-19 15:05:45 +00:00
Benoît Minisini
a2850ebc91 [CONFIGURATION]
* BUG: Do not compile database manager anymore, it has been deprecated.
* BUG: Compile the gb.dbus component.

[INTERPRETER]
* NEW: Pointer is a real datatype now.
* NEW: Static arrays came back. They are now like real array classes, 
  except that they are not resizable.
* NEW: IsPointer() is a new function that tells if an expression is a 
  pointer.
* NEW: All XXXX?() function synonymous were removed. Use the IsXXXX() 
  version instead.
* NEW: Remove now useless source files.

[COMPILER]
* NEW: Static arrays came back, with actually the same syntax as before.

[EXAMPLES]
* BUG: Fix the examples according to the new array syntax.



git-svn-id: svn://localhost/gambas/trunk@2949 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-19 12:43:57 +00:00
David Villalobos Cambronero
9ccdbce7dd [GB.FROM]
* NEW: Spanish translation updated.

git-svn-id: svn://localhost/gambas/trunk@2948 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-17 21:55:56 +00:00
David Villalobos Cambronero
75758d32ca git-svn-id: svn://localhost/gambas/trunk@2947 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2010-05-17 21:54:24 +00:00
Benoît Minisini
ce64eaa189 [DEVELOPMENT ENVIRONMENT]
* BUG: The DrawingArea.Transparent property has been removed, do not use it 
  anymore!


git-svn-id: svn://localhost/gambas/trunk@2946 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-17 11:52:53 +00:00
Benoît Minisini
a8efb8045f [INTERPRETER]
* NEW: Support for "static" arrays is finally removed.

[COMPILER]
* NEW: Support for "static" arrays is finally removed.



git-svn-id: svn://localhost/gambas/trunk@2945 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-14 21:30:54 +00:00
Benoît Minisini
ca37913578 [DEVELOPMENT ENVIRONMENT]
* BUG: Search string is correctly highlighted in all cases now.

[WEB SITE MAKER]
* NEW: German translation made by Stefan Lang.

[COMPILER]
* NEW: The 'New' keyword is now mandatory when declaring array variables 
  with dimensions. The IDE and component source code were modified 
  according to that change.

[GB.QT4.EXT]
* BUG: Search strings are correctly highlighted in editors with no syntax 
  highlighting.


git-svn-id: svn://localhost/gambas/trunk@2944 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-14 21:17:04 +00:00
Benoît Minisini
ae06242603 [COMPILER]
* BUG: Translated strings can be splitted on several lines like normal 
  strings now.


git-svn-id: svn://localhost/gambas/trunk@2943 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-14 11:51:49 +00:00
Benoît Minisini
2fd1ea3b59 [INTERPRETER]
* BUG: Correctly detect when being run as 'gbr3'.


git-svn-id: svn://localhost/gambas/trunk@2942 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-10 11:20:47 +00:00
Benoît Minisini
a1c3fa1617 [INTERPRETER]
* NEW: Change the semantic of Eof(). Now, if the stream is in blocking 
  mode, then Eof() will wait for the data before testing if something can 
  be read on the stream.
* BUG: Correctly initialize the stream flag that tells that data is always 
  available.

[COMPILER]
* BUG: Correctly raise an error when the INPUT or OUTPUT keywords are used
  with the PIPE instruction.

[GB.FORM]
* NEW: ColorChoose.ShowColorMap is a new property that allows to hide or 
  show the colormap.

[GB.QT4]
* BUG: Correctly disable Qt automatic completion in the ComboBox control.


git-svn-id: svn://localhost/gambas/trunk@2940 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-08 20:17:29 +00:00
Benoît Minisini
a11213a59c [GB.GTK]
* BUG: It's better without the debugging messages.


git-svn-id: svn://localhost/gambas/trunk@2939 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-08 15:47:49 +00:00
Benoît Minisini
3002ca88cf [GB.GTK]
* BUG: Fix a memory leak when loading an image without transparency.


git-svn-id: svn://localhost/gambas/trunk@2938 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-08 15:36:10 +00:00
Benoît Minisini
c61aa8d978 [DEVELOPMENT ENVIRONMENT]
* NEW: Support for enumerations.
* BUG: Clearing project history works again.

[COMPILER]
* NEW: Support for enumerations.


git-svn-id: svn://localhost/gambas/trunk@2935 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-05 20:58:55 +00:00
Benoît Minisini
1727304958 [DEVELOPMENT ENVIRONMENT]
* NEW: Shift+Enter disables automatic insertion of control structure 
  instructions.

[GB.FORM]
* BUG: Use images instead of pictures to draw little arrows in SidePanel 
  and MenuButton controls, so that it works with gb.gtk.

[GB.GTK]
* BUG: Found a woarkaround for sometimes slow as hell GTK+ image scaling 
  algorithm.
* BUG: Embedded windows correctly raise Open, Show and Hide events again.

[GB.QT4]
* BUG: Fix a bug in CheckBox creation that corrupted memory.


git-svn-id: svn://localhost/gambas/trunk@2934 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-05 14:26:07 +00:00
Benoît Minisini
148b6fa965 [DEVELOPMENT ENVIRONMENT]
* NEW: Default snippets are now immutable.


git-svn-id: svn://localhost/gambas/trunk@2933 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-03 22:56:52 +00:00
Benoît Minisini
ccf9bb3c50 [DEVELOPMENT ENVIRONMENT]
* NEW: Better code fragments.


git-svn-id: svn://localhost/gambas/trunk@2932 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-03 22:15:00 +00:00
Benoît Minisini
24f12621eb [DEVELOPMENT ENVIRONMENT]
* NEW: Code snippet configuration in the option dialog.
* NEW: Automatic insertion of control structures.

[GB.SETTINGS]
* NEW: The Settings class can now load settings files located inside the 
  project.

[GB.QT4.EXT]
* BUG: Selected text is now correctly deleted in block mode in the Editor 
  class.


git-svn-id: svn://localhost/gambas/trunk@2931 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-03 21:22:50 +00:00
Benoît Minisini
a010d693d3 [DEVELOPMENT ENVIRONMENT]
* NEW: Some fixes in code snippets.
* NEW: Raise the automatic completion of special methods only when three 
  characters were typed.


git-svn-id: svn://localhost/gambas/trunk@2930 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-03 12:30:10 +00:00
Benoît Minisini
98c0d81aad [CONFIGURATION]
* BUG: Fix the creation of the gbw3 symbolic link.

[DEVELOPMENT ENVIRONMENT]
* BUG: Fix an error in arrangement icon management.
* NEW: Merge all form editor toolbars.
* NEW: Support for code snippets. Type "fo" and TAB to see it. Not yet
  finished.

[INTERPRETER]
* NEW: Standard format for numbers now displays all the decimal digits.

[GB.QT4.EXT]
* BUG: Fix a possible crash in Editor selection management.


git-svn-id: svn://localhost/gambas/trunk@2929 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-03 11:46:02 +00:00
Benoît Minisini
1faa45e317 [COMPILER]
* BUG: Correctly detect self-referenced components.


git-svn-id: svn://localhost/gambas/trunk@2928 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-05-03 10:19:13 +00:00
Benoît Minisini
a4ec140d8a [GB.QT4.EXT]
* BUG: Fix some little problems in block selection/insertion mode.


git-svn-id: svn://localhost/gambas/trunk@2926 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-29 18:48:43 +00:00
Benoît Minisini
9bc6316917 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix display of arrangement icon again in the form editor.
* NEW: Two new toolbar buttons in the form editor to center selected 
  controls either horizontally or vertically.


git-svn-id: svn://localhost/gambas/trunk@2925 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-29 16:42:17 +00:00
Benoît Minisini
d1873301d0 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix the display of arrangement icons.
* OPT: Keep a reference on the root control is the form editor.
* BUG: Loading recent files should never crash anymore now.
* BUG: Start fixing project creation.

[INTERPRETER]
* BUG: Don't load a component if its name is the same as the main project.

[GB.QT4]
* BUG: Mouse buttons properties work again during a MouseRelease event.


git-svn-id: svn://localhost/gambas/trunk@2924 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-29 12:54:45 +00:00
Benoît Minisini
8d7b99daed [GB.FORM.STOCK]
* BUG: Forgot to add the .component file.


git-svn-id: svn://localhost/gambas/trunk@2923 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-28 21:39:06 +00:00
Benoît Minisini
32a0c4f54e [GB.QT4]
* BUG: Hidden menubar is not visible anymore.


git-svn-id: svn://localhost/gambas/trunk@2922 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-28 11:58:43 +00:00
Fabien Bodard
7c3cb5d029 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix a little bug


git-svn-id: svn://localhost/gambas/trunk@2921 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-28 06:51:30 +00:00
Benoît Minisini
cc6dfc0e33 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix and enhance Gambas 2 project conversion.

[GB.QT4]
* BUG: Allow control resizing whatever the arrangement of its container, 
  provided that its Ignore property is set.


git-svn-id: svn://localhost/gambas/trunk@2920 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-28 00:17:12 +00:00
Benoît Minisini
dab2e24446 [DEVELOPMENT ENVIRONMENT]
* BUG: CTRL+F and CTRL+R now correctly takes the current selected text as 
  search string in all cases.

[GB.GTK]
* NEW: The DrawingArea.Transparent has been removed.

[GB.QT4]
* NEW: The DrawingArea.Transparent has been removed.
* NEW: Do not resize the width (or the height) of a control if the parent 
  container controls it during arrangement.
* BUG: Remove a debugging message.
* BUG: Try to make controls non-opaque as much as possible, so that styles 
  having gradients like Oxygen are correctly displayed.


git-svn-id: svn://localhost/gambas/trunk@2919 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-27 21:05:15 +00:00
Benoît Minisini
618df42b55 [GB.QT4]
* BUG: Remove the popupmenu hack, it triggers menu using the Escape key as 
  a shortcut, and it seems not to be useful anymore.


git-svn-id: svn://localhost/gambas/trunk@2918 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-26 22:43:53 +00:00
David Villalobos Cambronero
09a7da93e2 git-svn-id: svn://localhost/gambas/trunk@2917 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2010-04-26 14:02:40 +00:00
Benoît Minisini
1c0a7fb168 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix some icons.
* NEW: Do not define a name for components that should not be visible in 
  the project property dialog.

[GB.FORM]
* BUG: Fix loading of stock icons.
* BUG: Fix the mapping of some Gnome icons.


git-svn-id: svn://localhost/gambas/trunk@2916 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-26 13:59:05 +00:00
Benoît Minisini
c4bba37392 [GB.FORM]
* NEW: Remove useless icons.

[GB.FORM.STOCK]
* NEW: This new components just store a default set of stock icons. It is
  loaded by gb.form only if needed.


git-svn-id: svn://localhost/gambas/trunk@2915 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-26 12:29:49 +00:00
Benoît Minisini
b011fb064d [GB.FORM]
* NEW: Remove stock icon.
* NEW: The default stock icon will be stored in another component.

git-svn-id: svn://localhost/gambas/trunk@2914 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-26 11:29:45 +00:00
Benoît Minisini
5d70e7ad54 [GB.IMAGE.IO]
* BUG: Load non-square image without crashing!


git-svn-id: svn://localhost/gambas/trunk@2913 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-26 09:43:10 +00:00
Benoît Minisini
e02caaf252 [DEVELOPMENT ENVIRONMENT]
* NEW: Do not show a form in the treeview if no component implements its 
  family.

[INTERPRETER]
* NEW: Detect overridden classes, and automatically convert the return 
  datatype of Gambas and native functions using an overridden class.
* NEW: Convert overridden classes in the NEW instruction.


git-svn-id: svn://localhost/gambas/trunk@2912 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-26 09:36:47 +00:00
Benoît Minisini
52ac0bdfee [DEVELOPMENT ENVIRONMENT]
* BUG: Do not trim pasted text when using special paste.

[INTERPRETER]
* NEW: Format() can format Float number with up to 16 digits now.

[GB.QT4.EXT]
* NEW: Support for an insert & block mode. This mode is toggled with the
  "Insert" key.


git-svn-id: svn://localhost/gambas/trunk@2911 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-25 23:04:27 +00:00
Benoît Minisini
ba1788cd5b [DEVELOPMENT ENVIRONMENT]
* BUG: Correctly hide the reload button in the form editor when it should 
  be hidden.
* NEW: Take libraries into account in the auto-completion.

[GB.QT4.EXT]
* BUG: Center the cursor when requested, even if the cursor does not move.


git-svn-id: svn://localhost/gambas/trunk@2910 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-25 16:04:42 +00:00
Benoît Minisini
d49fe17d83 [DEVELOPMENT ENVIRONMENT]
* NEW: Remove any use of Component.UserPath and any reference to "user 
  component".
* NEW: "libraries" management. Libraries are defined in a new tab of the
  projet property dialog. At the moment, libraries exported classes are not
  taken into account by the automatic completion.
* NEW: The ESC key now closes the help browser.
* BUG: Correctly translate compilation error messages.

[INTERPRETER]
* NEW: "libraries" management.
* NEW: The Component.UserPath property has been removed.
* BUG: Evaluating "Application.Path" or "Application.Name" on the command 
  line does not crash anymore.

[COMPILER]
* BUG: Enhance translation of some error messages.
* NEW: Take libraries into account for exported class declarations.

[ARCHIVER]
* NEW: new "-x" option to extract a file from an archive.

[GB.QT4.EXT]
* NEW: Be more clever when deciding if a line has been modified after 
  having its last character deleted.


git-svn-id: svn://localhost/gambas/trunk@2909 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-04-25 10:46:57 +00:00