Commit graph

2979 commits

Author SHA1 Message Date
Benoît Minisini
1b28a5f062 [COMPILER]
* BUG: Like can be used in a Case expression just after the Case keyword
  only.



git-svn-id: svn://localhost/gambas/trunk@4900 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-06 21:50:15 +00:00
Benoît Minisini
bbfb58afa4 [GB.WEB]
* NEW: Request.Debug is a new property to activate the debugging mode of 
  the Request class.
* NEW: Request.Post.Contents returns the contents of the last POST request,
  provided that the debugging mode has been activated.


git-svn-id: svn://localhost/gambas/trunk@4899 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-05 16:28:16 +00:00
Benoît Minisini
bee8a886a3 [GB.QT4]
* BUG: ScrollView internal visible flag is correctly set, and so the 
  Hovered property returns the right value.


git-svn-id: svn://localhost/gambas/trunk@4898 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-04 23:32:00 +00:00
Benoît Minisini
fa67280e7a [INTERPRETER]
* NEW: Static unknown properties can be used in a dynamic context now.


git-svn-id: svn://localhost/gambas/trunk@4897 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-04 22:06:19 +00:00
Benoît Minisini
6fd31cfe59 [INTERPRETER]
* BUG: Now the _property special method can be static even if _unknown is 
  dynamic. Anyway, if _unknown is static then all unknown properties and 
  methods must be static, and if _unknown is dynamic, they all must be 
  dynamic.


git-svn-id: svn://localhost/gambas/trunk@4896 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-04 21:59:16 +00:00
Benoît Minisini
069b5f8707 [GB.QT4]
* OPT: During a mouse event, Mouse.ScreenX and Mouse.ScreenY returns the 
  global position stored in the received event. It does not query the X11 
  server.

[GB.DESKTOP]
* NEW: Support for the Mate desktop in Desktop.Open, Desktop.OpenTerminal
  and Desktop.Passwords.


git-svn-id: svn://localhost/gambas/trunk@4895 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-04 19:11:57 +00:00
Benoît Minisini
6b6ca7654d [INTERPRETER]
* BUG: Allows the _unknown method to be static.


git-svn-id: svn://localhost/gambas/trunk@4894 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-03 23:45:09 +00:00
Benoît Minisini
9ef8385dc9 [DEVELOPMENT ENVIRONMENT]
* NEW: Display the signal description when the interpreter has crashed.
* BUG: Ghost frame and arrangement icons are now correctly updated when the 
  mouse leaves a form editor.


git-svn-id: svn://localhost/gambas/trunk@4893 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-03 18:23:27 +00:00
Benoît Minisini
307e7d396f [INTERPRETER]
* BUG: Raise the Kill event of a Process after having closed its I/O 
  streams.

[GB.DEBUG]
* NEW: Debug.GetSignal() is a new method that returns the description of a 
  signal from its numeric value.


git-svn-id: svn://localhost/gambas/trunk@4892 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-03 18:21:54 +00:00
Benoît Minisini
02eb02cd4f [INTERPRETER]
* BUG: Reading an unknown property does not crash anymore if _unknown is 
  defined but not _property.


git-svn-id: svn://localhost/gambas/trunk@4891 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-03 17:41:36 +00:00
Benoît Minisini
ddff42d95b [GB.OPTION]
* BUG: The component is now compatible with the new way of arguments 
  handling, and does not crash anymore.


git-svn-id: svn://localhost/gambas/trunk@4890 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-03 17:32:39 +00:00
Adrien Prokopowicz
bbe2044823 [GB.XML]
* BUG: Solved a few bugs with the indentation in XmlWriter.

git-svn-id: svn://localhost/gambas/trunk@4889 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-03 17:16:36 +00:00
Emil Lenngren
44f7bd086b [GB.JIT]
* OPT: Don't do any obvious unnecessary unref-checks.


git-svn-id: svn://localhost/gambas/trunk@4888 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-03 00:07:54 +00:00
Benoît Minisini
e76e7ee468 [DEVELOPMENT ENVIRONMENT]
* NEW: Allow to save and open a profile file.
* BUG: Correctly ignore ghost frame and arrangement icons when saving a 
  form.


git-svn-id: svn://localhost/gambas/trunk@4887 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-02 23:33:14 +00:00
Emil Lenngren
76e3dee4d0 [GB.JIT]
* NEW: Can now profile each line of code, but beware: profiling makes the program much much slower.

[GB.DEBUG]
* OPT: Now DEBUG_calc_line_from_position has logaritmic time complexity instead of linear. That makes profiling each line much faster for large functions!


git-svn-id: svn://localhost/gambas/trunk@4886 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-02 22:38:29 +00:00
Benoît Minisini
ad19031dfc [DEVELOPMENT ENVIRONMENT]
* BUG: Fix rectangular selection in form editor.


git-svn-id: svn://localhost/gambas/trunk@4885 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-02 18:18:41 +00:00
Benoît Minisini
1393597f4f [CONFIGURATION]
* BUG: When a top-level source directory actually several components, 
  compile the sub-components *after* the main components. This is 
  especially important with gb.xml and gb.xml.rpc.


git-svn-id: svn://localhost/gambas/trunk@4884 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-02 17:51:54 +00:00
Benoît Minisini
056a3f560e [DEVELOPMENT ENVIRONMENT]
* BUG: In form editor and form hierarchy window, correctly ignore controls 
  that are edition helpers (handles, ghost frame...).


git-svn-id: svn://localhost/gambas/trunk@4883 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-02 17:34:15 +00:00
Benoît Minisini
0d8a6bd737 [DEVELOPMENT ENVIRONMENT]
* BUG: Do not apply the Ignore property in form editor.
* NEW: Some redesign in the way ghost frame, red containers frame and 
  arrangement icons are drawn.


git-svn-id: svn://localhost/gambas/trunk@4882 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-02 14:14:46 +00:00
Benoît Minisini
5a24ec1e2a [GB.QT4]
* OPT: When reading the ClientX or ClientY property of a Window, arrange 
  its contents only if necessary.


git-svn-id: svn://localhost/gambas/trunk@4881 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-02 14:05:57 +00:00
Emil Lenngren
5f52130f31 [GB.JIT]
* BUG: Use correct IRBuilder.h



git-svn-id: svn://localhost/gambas/trunk@4880 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-01 22:51:34 +00:00
Benoît Minisini
5691edca65 [DEVELOPMENT ENVIRONMENT]
* NEW: Draw a ghost frame around the current hovered control in the form 
  editor.


git-svn-id: svn://localhost/gambas/trunk@4879 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-01 21:33:52 +00:00
Emil Lenngren
dd5a9c4574 [GB.JIT]
* NEW: Implement some missing Variant features.
* OPT: Optimize Variants and some math functions.



git-svn-id: svn://localhost/gambas/trunk@4878 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-07-01 14:54:00 +00:00
Emil Lenngren
58ebc4f77e [GB.JIT]
* BUG: Breakpoints are now safely ignored.



git-svn-id: svn://localhost/gambas/trunk@4875 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-30 15:04:00 +00:00
Adrien Prokopowicz
ea697d57a2 [GB.XML]
* BUG: Solved a XmlElement instanciation problem.

git-svn-id: svn://localhost/gambas/trunk@4873 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-29 22:40:23 +00:00
Adrien Prokopowicz
c4375aa197 [GB.XML]
* BUG: Solved a few memory leaks.

git-svn-id: svn://localhost/gambas/trunk@4872 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-29 22:02:43 +00:00
Benoît Minisini
7a126b76e3 [INTERPRETER]
* NEW: Always put a space between international currency symbol and amount
  when formatting a currency.


git-svn-id: svn://localhost/gambas/trunk@4871 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-28 23:38:26 +00:00
Benoît Minisini
50681dead1 [INTERPRETER]
* BUG: Fix Format$() when using "AM/PM" just after a date formatting 
  character.


git-svn-id: svn://localhost/gambas/trunk@4870 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-28 23:09:10 +00:00
Adrien Prokopowicz
0d4935d790 [GB.XML]
* BUG: Fixed a compilation problem.

git-svn-id: svn://localhost/gambas/trunk@4869 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-28 18:27:32 +00:00
Adrien Prokopowicz
e6fb654a59 [GB.XML]
* BUG: There are only name-chars in XmlReader element's tags.

git-svn-id: svn://localhost/gambas/trunk@4868 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-28 18:25:57 +00:00
Benoît Minisini
f9d8a9c990 [GB.COMPRESS]
* BUG: Fix internal structure of Uncompress object.


git-svn-id: svn://localhost/gambas/trunk@4867 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-28 18:06:05 +00:00
Benoît Minisini
7cab7622bf [GB.DRAW]
* BUG: Fix Draw.Picture() when using the transformation matrix and not 
  specifying height or width.


git-svn-id: svn://localhost/gambas/trunk@4866 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-27 18:06:10 +00:00
Benoît Minisini
cbd4f0d7c4 [GB.FORM]
* NEW: SidePanel: Add a popup menu to show or hide the panel, and to toggle
  the panel transparency.
* NEW: SidePanel: Transparency is stored in SidePanel settings now.


git-svn-id: svn://localhost/gambas/trunk@4865 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-27 16:45:19 +00:00
Adrien Prokopowicz
6a1852c0ad [GB.XML]
* BUG: The XmlReader.Close() method is back.
* BUG: XmlReader node values don't have extra spaces anymore.

git-svn-id: svn://localhost/gambas/trunk@4864 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-27 12:17:47 +00:00
Benoît Minisini
6c54a66760 [INTERPRETER]
* BUG: Correctly release or keep the return value of a function when 
  destructors are called during epilogue.


git-svn-id: svn://localhost/gambas/trunk@4863 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-27 01:14:05 +00:00
Emil Lenngren
bded0d999a [GB.JIT]
* BUG: Maybe fix reading global boolean variables.



git-svn-id: svn://localhost/gambas/trunk@4862 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-26 21:08:37 +00:00
Adrien Prokopowicz
001a5947bd [GB.XML]
* BUG: Non-prefixed elements does not crashes anymore
* BUG: Parsing errors are now correctly catched when calling XmlElement.AppendFromText()

git-svn-id: svn://localhost/gambas/trunk@4861 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-26 17:45:57 +00:00
Adrien Prokopowicz
acab57079d [GB.XML]
* BUG: XmlReader now correctly raises the Element state.

git-svn-id: svn://localhost/gambas/trunk@4860 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-25 17:54:35 +00:00
Adrien Prokopowicz
d3dfb74567 [GB.XML]
* NEW: XmlElement now fully supports namespace prefixes in its tag name. See the Prefix property, and the GetChildrenByNameSpace and GetElementsByNameSpace  methods.

git-svn-id: svn://localhost/gambas/trunk@4859 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-25 16:33:14 +00:00
Adrien Prokopowicz
c8b94b5b15 [GB.XML]
* NEW: The GetAttribute(), GetChildrenByTagName(), GetChildrenByAttributeValue() andGetElementsByTagName() methods now take an new Mode argument, specifying the comparison method. It can be GB.Binary,  GB.IgnoreCase or GB.Like.
* BUG: The XmlElement.ChildElements does not contains Null fields anymore.
* BUG: Removed some debugging messages.

git-svn-id: svn://localhost/gambas/trunk@4858 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-25 12:44:15 +00:00
Adrien Prokopowicz
ee023f38e4 [GB.XML]
* NEW: XmlReader now supports the CDATA sections.
* BUG: Remove some debugging messages.
* BUG: The InsertAfter, InsertBefore and ReplaceChild functions now correctly preserve the added elements.

git-svn-id: svn://localhost/gambas/trunk@4857 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-25 09:37:40 +00:00
Benoît Minisini
be77f4a2fa [INTERPRETER]
* BUG: Add a check to not create array classes when reimplementing or 
  inheriting native array classes. Hope that check is not wrong...


git-svn-id: svn://localhost/gambas/trunk@4856 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-24 18:41:57 +00:00
Adrien Prokopowicz
ef3bc6b361 [GB.XML]
* BUG: XmlReader.Node.Type now correctly shows the XmlReaderNodeType.Element value.
* BUG: Updated test module, so that it is compatible with gb.libxml.

git-svn-id: svn://localhost/gambas/trunk@4855 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-23 19:43:43 +00:00
Benoît Minisini
98f4cdbdcc [GB.FORM]
* NEW: Ignore errors when loading the gb.form.stock component. Display a
  warning message on the standard error output and use a dummy icon 
  instead.
* BUG: Movement keys are not eaten by the GridView anymore.


git-svn-id: svn://localhost/gambas/trunk@4854 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-22 21:55:46 +00:00
Benoît Minisini
23abebb931 [DEVELOPMENT ENVIRONMENT]
* NEW: The gb.form.stock component now can be explicitely checked in the
  project property dialog.
* NEW: The IDE now depends on gb.form.stock.


git-svn-id: svn://localhost/gambas/trunk@4853 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-22 21:25:46 +00:00
Emil Lenngren
1ee80f7683 [INTERPRETER]
* BUG: Correctly load the "npvar" field for Gambas functions.



git-svn-id: svn://localhost/gambas/trunk@4852 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-20 17:12:58 +00:00
Emil Lenngren
856af1cd45 [GB.JIT]
* NEW: Partially support callbacks for extern functions. You can only convert functions in the current class to pointers 
currently, i.e. functions that are referenced directly by their name.



git-svn-id: svn://localhost/gambas/trunk@4851 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-19 22:08:59 +00:00
Emil Lenngren
dba2bf91ac [GB.JIT]
* BUG: Fix extern function overriding.

[COMPILER]
* BUG: Write correct disassembly for PUSH INTEGER.



git-svn-id: svn://localhost/gambas/trunk@4850 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-19 21:23:49 +00:00
Benoît Minisini
1b53072866 [DEVELOPMENT ENVIRONMENT]
* NEW: Do not set the APPMENU_DISPLAY_BOTH environmental variable anymore.
  It seems to work now.

[EXAMPLES]
* NEW: Fractal: increase the maximum number of iterations when the zoom 
  level is higher.

[GB.GTK]
* BUG: Control.Hovered now works the same way as in gb.qt4.

[GB.FORM]
* NEW: SidePanel handles have a fixed width now (6 pixels).


git-svn-id: svn://localhost/gambas/trunk@4849 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-19 09:29:59 +00:00
Emil Lenngren
8f2695741e [GB.JIT]
* BUG: Fix "New" expression when used dynamically.



git-svn-id: svn://localhost/gambas/trunk@4848 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-18 22:53:29 +00:00