Commit graph

1213 commits

Author SHA1 Message Date
Benoît Minisini
ff93548e41 [DEVELOPMENT ENVIRONMENT]
* BUG: Profile windows correctly display line numbers now.

[GB.FORM]
* NEW: Hidden transparent SidePanel controls now have a large handle.

[GB.QT4.EXT]
* NEW: Editor: Line numbers are not drawn behind a procedure separator.
* NEW: Editor.NoFolding is a new flag to disable procedure folding support.
* NEW: Editor.LineOffset is a new property to define the line number just
  before the first displayed line (zero by default).


git-svn-id: svn://localhost/gambas/trunk@4803 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-02 14:44:00 +00:00
Benoît Minisini
c18655158a [GB.FORM]
* NEW: SidePanel has a new Transparent property to define if the SidePanel
  has a border handle or not. By default, SidePanel are not transparent by
  default, as before.


git-svn-id: svn://localhost/gambas/trunk@4800 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-01 15:05:16 +00:00
Benoît Minisini
636387d335 [INTERPRETER]
* BUG: Fix class loading so that circular dependencies between class 
  initialization is possible.
* NEW: Exported classes are now completely initiliazed at startup. It may
  break some things...


git-svn-id: svn://localhost/gambas/trunk@4798 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-06-01 10:00:35 +00:00
Fabien Bodard
b9a0fe018c [DEVELOPMENT ENVIRONMENT]
* NEW: ReportLabel and ReportTextLabel show a blue dashed border, so they are more easy to find.


git-svn-id: svn://localhost/gambas/trunk@4792 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-30 09:49:01 +00:00
Benoît Minisini
2375145a67 [DEVELOPMENT ENVIRONMENT]
* OPT: Use JIT compiler to speed-up the loading of profile files.

[EXAMPLES]
* NEW: Display a rose inside the window of the Fractal example. Why not?


git-svn-id: svn://localhost/gambas/trunk@4784 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-26 18:13:09 +00:00
Benoît Minisini
7fb2fefccd [DEVELOPMENT ENVIRONMENT]
* NEW: Profiler windows now take into account global editor options like 
  showing line numbers.
* NEW: Profiler now displays when a line is called once.


git-svn-id: svn://localhost/gambas/trunk@4782 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-26 17:41:38 +00:00
Benoît Minisini
e4dcaa0e41 [EXAMPLES]
* NEW: A new Fractal example that draws the Mandelbrot set with an option 
  to enable just-in-time compilation.


git-svn-id: svn://localhost/gambas/trunk@4780 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-26 11:19:22 +00:00
Benoît Minisini
8fff3e69bd [GB.JIT]
* NEW: Debugging information is printed as soon as the GB_JIT environmental 
  variable is not null.
* NEW: If LLVM version is lesser than 3.1, a warning message is printed. 
  Normally, a crash should occur just after. :-)


git-svn-id: svn://localhost/gambas/trunk@4779 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-25 22:24:13 +00:00
Benoît Minisini
326c380ff6 [DEVELOPMENT ENVIRONMENT]
* NEW: Handle the FAST keyword in function declaration.

[COMPILER]
* NEW: Each function can be declared individually FAST. The keyword must be
  the first one on the line.

[GB.EVAL]
* NEW: Handle the FAST keyword in function declaration.


git-svn-id: svn://localhost/gambas/trunk@4769 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-24 12:05:21 +00:00
Benoît Minisini
76f3885a08 [SCRIPTER]
* BUG: Do not crash when compiling a program again.

[INTERPRETER]
* OPT: Make API arrays constant.
* OPT: Comparison methods return back to gbx_exec_loop.c


git-svn-id: svn://localhost/gambas/trunk@4768 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-24 00:31:57 +00:00
Benoît Minisini
6b2e5d0776 [CONFIGURATION]
* BUG: Add gb.jit directory in the top Makefile.am so that it is compiled.

[INTERPRETER]
* NEW: System.Profile now only deactivate the instruction profiling. 
  Function calls keep being profiled. That way the IDE can read the profiled
  output without crashing!


git-svn-id: svn://localhost/gambas/trunk@4762 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-23 21:35:58 +00:00
Benoît Minisini
1b33c5dc1a [DEVELOPMENT ENVIRONMENT]
* BUG: CFlt() is now replaced by CFloat() when converting a Gambas 2 project.

[COMPILER]
* BUG: The token following a CONST keyword is now assumed to always be an 
  identifier.


git-svn-id: svn://localhost/gambas/trunk@4758 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-23 18:59:30 +00:00
Benoît Minisini
1518cff7a6 [DEVELOPMENT ENVIRONMENT]
* NEW: Adapt GUI to the new SidePanel look.

[GB.FORM]
* NEW: SidePanel are invisible now.

[GB.QT4]
* BUG: Control.Hovered does no computation anymore, it returns an internal
  flag set when the Enter event is raised, and unset when the Leave event
  is raised.


git-svn-id: svn://localhost/gambas/trunk@4757 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-23 12:11:14 +00:00
Benoît Minisini
fe22f29a69 [DEVELOPMENT ENVIRONMENT]
* BUG: Do not display a spurious message anymore when clicking in a void 
  part of the project tree view with the right mouse button.


git-svn-id: svn://localhost/gambas/trunk@4756 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-23 00:12:43 +00:00
Benoît Minisini
658b01475f [DEVELOPMENT ENVIRONMENT]
* OPT: Use Stream.Lines enumeration instead of LINE INPUT. It is a little bit 
  faster.

[COMPILER]
* BUG: Fix CASE LIKE syntax. Now all CASE LIKE arguments are compared with 
  the LIKE operator. Not just the first one.

[GB.FORM]
* NEW: FileChooser now can handle *.tgz archives.
* NEW: GridView: If the Grid property is FALSE, do not draw row and column
  separators.

[GB.GTK]
* BUG: Fix cached drawing areas.
* BUG: Fix mouse event management for controls having scrollbars.
* BUG: Fix cursor management for DrawingArea.


git-svn-id: svn://localhost/gambas/trunk@4755 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-22 23:32:38 +00:00
Benoît Minisini
d356f49366 [DEVELOPMENT ENVIRONMENT]
* NEW: Some little redesign of the profiling GUI.

[EXAMPLES]
* OPT: Little optimization in GameOfLife example.

[INTERPRETER]
* NEW: System.Profile is a new property to disable or enable the
  profiling at run time. Profiling can only be enabled if debugging
  information are available.

[GB.DEBUG]
* NEW: Abort the program if the profile file is bigger than 512M.


git-svn-id: svn://localhost/gambas/trunk@4753 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-21 22:13:58 +00:00
Benoît Minisini
9fa35120a4 [DEVELOPMENT ENVIRONMENT]
* BUG: Profiling: The total function duration is now the same as the sum of 
  each line of code duration.

[WEBSITE MAKER]
* NEW: Add a "Release Notes" link in the menu panel.

[GB.DEBUG]
* NEW: Optimize the profile file format a bit.


git-svn-id: svn://localhost/gambas/trunk@4751 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-21 11:35:13 +00:00
Fabien Bodard
1a9e4d94ca [DEVELOPMENT ENVIRONMENT]
* BUG: Another bug removed, on the ReportBOrder dialog, about the sync.


git-svn-id: svn://localhost/gambas/trunk@4750 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-21 09:02:51 +00:00
Fabien Bodard
d9c4408f7c [DEVELOPMENT ENVIRONMENT]
* BUG: The report border dialog work well now


git-svn-id: svn://localhost/gambas/trunk@4749 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-21 08:06:32 +00:00
Benoît Minisini
70afe05d8d [DEVELOPMENT ENVIRONMENT]
* NEW: Handle new format of profile files.

[INTERPRETER]
* NEW: ON ... GOTO and ON ... GOSUB instructions.

[WEBSITE MAKER]
* NEW: An explicit link button that displays the 'news' page.

[COMPILER]
* NEW: ON ... GOTO and ON ... GOSUB instructions.

[GB.DEBUG]
* NEW: New format for profile, more compact and faster to read.


git-svn-id: svn://localhost/gambas/trunk@4748 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-21 01:09:35 +00:00
Benoît Minisini
b5c6820986 [INTERPRETER]
* NEW: Allow to profile time spent waiting for events.

[GB.DEBUG]
* BUG: New profile file format that allows to profile lines of code that
  are function calls.

[GB.GTK]
* NEW: Profile time spent waiting for events.

[GB.QT4]
* NEW: Profile time spent waiting for events.


git-svn-id: svn://localhost/gambas/trunk@4747 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-20 17:58:34 +00:00
Benoît Minisini
f40a93a398 [DEVELOPMENT ENVIRONMENT]
* NEW: Automatically delete profile files not in used just before running 
  a project.
* BUG: Automatically close profile windows when another project is opened.

[GB.FORM]
* BUG: GridView.AutoResize property now works correctly.
* BUG: GridView: Automatic column widths now take the sorted indicator into 
  account.

[GB.GTK]
* BUG: Automatic pointer grab on mouse events now do not confuse TreeView
  and ColumnView controls anymore.


git-svn-id: svn://localhost/gambas/trunk@4746 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-20 15:04:04 +00:00
Benoît Minisini
f93affd8e9 [DEVELOPMENT ENVIRONMENT]
* NEW: Display callees and callers in the profile window.
* NEW: Display profiling of each line of code.

[INTERPRETER]
* NEW: Activate profiling at the line of code level. Beware, things become
  slower!

[GB.DEBUG]
* NEW: Fix profiling at the line of code level.

[GB.FORM]
* NEW: GridView: Add a Scroll() method.

[GB.QT4.EXT]
* NEW: Editor: Add a ScrollBar property.
* NEW: Editor: Add ScrollX and ScrollY properties.
* NEW: Editor: Add a Scroll method.


git-svn-id: svn://localhost/gambas/trunk@4745 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-20 02:21:43 +00:00
Benoît Minisini
f4e30d90a9 [DEVELOPMENT ENVIRONMENT]
* NEW: History has been implemented in profiling windows.

[GB.GTK]
* NEW: Desktop.HasSystemTray is a new property that returns if a system 
  tray has been detected.

[GB.QT4]
* NEW: Desktop.HasSystemTray is a new property that returns if a system 
  tray has been detected.
* BUG: If there is no system tray, showing a TrayIcon now raises an error
  instead of crashing.


git-svn-id: svn://localhost/gambas/trunk@4742 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-19 12:54:48 +00:00
Benoît Minisini
07387ff660 [DEVELOPMENT ENVIRONMENT]
* NEW: Add some debugging options directly in the 'Debug' menu.
* NEW: A new option to activate the profiling of the debugged project.
* NEW: Profiling windows. Not finished yet.

[INTERPRETER]
* BUG: Fix a crash that could occur if a error is raised inside an event 
  handler.
* NEW: Support for profiling.
* BUG: Fix a crash that could occur if a error is raised inside a signal
  callback.

[GB.DEBUG]
* NEW: Support for profiling.

[GB.FORM]
* NEW: GridView now raises a Sort event when the sort properties are 
  changed.
* BUG: Fix a crash when changing the IconPanel Count property.

[GB.GTK]
* BUG: Fix the Font.Copy() method.


git-svn-id: svn://localhost/gambas/trunk@4740 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-19 02:55:05 +00:00
Benoît Minisini
c095cd3f98 [EXAMPLES]
* NEW: PhotoTouch and MediaPlayer examples now use the gb.gui component.

[GB.GTK]
* NEW: Make GTK+ controls borderless, so that they are "transparent" like 
  gb.qt4 controls. This is work in progress! The PhotoTouch example now 
  works correctly with gb.gtk, the brightness dialog excepted.
* BUG: ScrollBars are correctly initalized now.
* BUG: Container.Find() does not take hidden controls into account anymore.

[GB.IMAGE]
* BUG: Image.Opacity() can handle images with premultiplied alpha correctly 
  now.

[GB.FORM]
* BUG: IconView: Item text is ellipsized without printing GTK+ warnings 
  anymore.


git-svn-id: svn://localhost/gambas/trunk@4729 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-15 01:22:45 +00:00
Benoît Minisini
8acbd755a2 [GB.GUI.OPENGL]
* NEW: That new switcher component chooses between gb.gtk.opengl and 
  gb.qt4.opengl according to the current desktop in use.


git-svn-id: svn://localhost/gambas/trunk@4719 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-06 21:09:42 +00:00
Benoît Minisini
409f3ed4d7 [DEVELOPMENT ENVIRONMENT]
* BUG: Don't crash if there is a compilation error in a form file.
* BUG: Autotools packager "make uninstall" should be definitely fixed.

[GB.GTK]
* NEW: A new interface to allow gb.gtk.opengl to create its GLArea widget.

[GB.GTK.OPENGL]
* NEW: New component that allows to do OpenGL with GTK+. It is based on there
  gtkglext library.

[GB.OPENGL]
* BUG: Initialize GLEW once.

[GB.QT4.OPENGL]
* NEW: Remove the Update() and the Select() methods.

[GB.XML.HTML]
* BUG: Don't link against gb.xml anymore as it seems to break on some 
  systems. Wait for a better solution...


git-svn-id: svn://localhost/gambas/trunk@4717 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-06 01:14:57 +00:00
Benoît Minisini
8be12f5027 [DEVELOPMENT ENVIRONMENT]
* NEW: Define the 'Exec' preprocessor constant when making an executable.
* BUG: Packager: Replace spaces with underscores when using the vendor name 
  as package name prefix.
* BUG: Packager: Fix "make uninstall" in autoconf packages.

[INTERPRETER]
* BUG: Allow to override native array classes without crashing.

[COMPILER]
* NEW: New '-x' option to define the 'Exec' preprocessor constant.

[EXAMPLES]
* NEW: MediaPlayer: Real-time seeking.
* NEW: MediaPlayer: Use gb.desktop to suspend the screen saver while 
  playing a media file.


git-svn-id: svn://localhost/gambas/trunk@4715 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-05 00:39:43 +00:00
Benoît Minisini
e2fac79ffb [CONFIGURATION]
* NEW: Replace the old "INCLUDES" directive by "xxx_CPPFLAGS" in all 
  Makefile.am files.

[GB.XML]
* BUG: Remove debugging flags from compilation flags.


git-svn-id: svn://localhost/gambas/trunk@4714 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-04 16:45:14 +00:00
Benoît Minisini
88c69c85ba [EXAMPLES]
* NEW: New MediaPlayer example based on the new gb.media GStreamer 
  component.

[GB.GTK]
* BUG: Utility windows are make transient the same way as in gb.qt4.

[GB.MEDIA]
* NEW: MediaControl.SetWindow() is a new method to associate a GUI control
  to a GStreamer plugin implementing the 'X overlay' interface.


git-svn-id: svn://localhost/gambas/trunk@4706 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-02 11:34:03 +00:00
Benoît Minisini
048bfca9b5 [DEVELOPMENT ENVIRONMENT]
* BUG: Do not handle Data event of controls in the form editor, because the
  signature of the event handler depends on the control type.
* BUG: Handle errors when loading a new project file correctly again.


git-svn-id: svn://localhost/gambas/trunk@4702 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-01 00:49:01 +00:00
Benoît Minisini
5e35089241 [DEVELOPMENT ENVIRONMENT]
* BUG: Making executable works again.


git-svn-id: svn://localhost/gambas/trunk@4698 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-30 11:33:15 +00:00
Benoît Minisini
a6e9f61ee1 [CONFIGURATION]
* NEW: Update *.component files to the new format.
* BUG: Fix component TEMPLATE directory.

[EXAMPLES]
* NEW: PhotoTouch: Display the browsed directory path.

[INTERPRETER]
* NEW: Change the 'main' hook syntax. Add a macro to call the previous 
  'main' hook, so that several hooks can be declared.

[GB.MEDIA]
* NEW: New multimedia component based on GStreamer.

[GB.GTK]
* BUG: Fix timer management so that it is compatible with the GB.Every()
  interpreter API.
* NEW: Allows multiple 'main' hooks.

[GB.QT4]
* NEW: Allows multiple 'main' hooks.


git-svn-id: svn://localhost/gambas/trunk@4693 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-30 00:04:51 +00:00
Benoît Minisini
b8ab46d135 [DEVELOPMENT ENVIRONMENT]
* NEW: Add a "project type" option in the project properties dialog. It 
  makes the difference between a normal project, a library project, and a
  component project.
* NEW: The packager takes the project type into account. A library and a
  component do not install a *.desktop file, has no icon and has no menu 
  entry. But a library has the same package name than a normal project.


git-svn-id: svn://localhost/gambas/trunk@4687 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-28 13:09:21 +00:00
Benoît Minisini
2ac8f35356 [EXAMPLES]
* NEW: Some fixes and new keyboard shortcuts in the PhotoTouch example.


git-svn-id: svn://localhost/gambas/trunk@4683 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-27 12:56:47 +00:00
Benoît Minisini
ff16e33c73 [DEVELOPMENT ENVIRONMENT]
* BUG: When creating dependencies on libraries, the packager now takes into 
  account if the library package name is prefixed with the vendor name.
* BUG: Now always use the release version number in the package name, 
  otherwise the Debian/Ubuntu packager cannot compare versions reliably.
* BUG: Fix XML component names.


git-svn-id: svn://localhost/gambas/trunk@4682 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-27 02:56:41 +00:00
Benoît Minisini
1789fd1045 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix dependencies on libraries in the packager.


git-svn-id: svn://localhost/gambas/trunk@4681 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-27 02:40:27 +00:00
Benoît Minisini
fe80c39a69 [INTERPRETER]
* BUG: Remove the use and the definition of long double mathematic 
  functions. They are not used anymore.


git-svn-id: svn://localhost/gambas/trunk@4679 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-25 21:12:03 +00:00
Benoît Minisini
53fb481eee [EXAMPLES]
* NEW: Add a browse mode to the PhotoTouch example.


git-svn-id: svn://localhost/gambas/trunk@4668 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-24 14:04:23 +00:00
Benoît Minisini
e0f151795c [DEVELOPMENT ENVIRONMENT]
* BUG: Do not fail when a library is not found.
* BUG: The packager now generates correct dependencies on libraries whose 
  major and minor version are both zero.


git-svn-id: svn://localhost/gambas/trunk@4666 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-23 21:30:09 +00:00
Benoît Minisini
75f7ff9390 [WIKI CGI SCRIPT]
* BUG: Handle public variables like properties.

[EXAMPLES]
* NEW: A new PhotoTouch example I made so that my father can edit its photo
  with a simple software.


git-svn-id: svn://localhost/gambas/trunk@4665 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-23 21:13:33 +00:00
Benoît Minisini
d75c29e41b [DEVELOPMENT ENVIRONMENT]
* BUG: Correctly show error tooltip in splitted editors.


git-svn-id: svn://localhost/gambas/trunk@4663 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-23 15:28:55 +00:00
Benoît Minisini
45cd3616fe [DEVELOPMENT ENVIRONMENT]
* BUG: Correctly import translations whose original string begins or ends 
  with spaces.


git-svn-id: svn://localhost/gambas/trunk@4662 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-23 15:11:13 +00:00
Benoît Minisini
4a32b1ed51 [WIKI CGI SCRIPT]
* NEW: Add "@since" special keyword.

[GB.FORM]
* BUG: GridView.SelectAll() now works correctly.


git-svn-id: svn://localhost/gambas/trunk@4650 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-21 13:44:35 +00:00
Benoît Minisini
f89e7ab223 [DEVELOPMENT ENVIRONMENT]
* BUG: Really fix project tree inheritance management.


git-svn-id: svn://localhost/gambas/trunk@4649 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-21 13:40:31 +00:00
Benoît Minisini
2e1fedb669 [CONFIGURATION]
* NEW: Support for new gb.xml component family.

[DEVELOPMENT ENVIRONMENT]
* NEW: Support for new gb.xml component family.


git-svn-id: svn://localhost/gambas/trunk@4645 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-21 00:45:18 +00:00
Benoît Minisini
a771972a42 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix a possible crash when refreshing project tree inheritance.

[GB.LIBXML]
* BUG: Fix component configuration.

[GB.LIBXML.XSLT]
* BUG: Fix component configuration.


git-svn-id: svn://localhost/gambas/trunk@4641 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-20 01:28:05 +00:00
Benoît Minisini
de083e583d [GB.LIBXML]
* NEW: Rename the gb.xml component as gb.libxml.

[GB.LIBXML.XSLT]
* NEW: Rename the gb.xml.xslt component as gb.libxml.xslt

[GB.LIBXML.RPC]
* NEW: Rename the gb.xml.rpc component as gb.libxml.rpc


git-svn-id: svn://localhost/gambas/trunk@4640 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-20 01:01:48 +00:00
Benoît Minisini
1df0dc784d [DEVELOPMENT ENVIRONMENT]
* BUG: Fix use of gnome-terminal as output window.


git-svn-id: svn://localhost/gambas/trunk@4631 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-04-15 14:55:17 +00:00