Commit graph

4272 commits

Author SHA1 Message Date
Benoît Minisini
1b018f7bf1 [GB.FORM]
* NEW: TabPanel: Using the mouse wheel on the tab buttons does not steal 
  the focus anymore.

[GB.GTK]
* NEW: Application.PreviousControl is a new property that returns the 
  previous control having the focus.

[GB.GTK3]
* NEW: Application.PreviousControl is a new property that returns the 
  previous control having the focus.

[GB.QT4]
* NEW: Application.PreviousControl is a new property that returns the 
  previous control having the focus.


git-svn-id: svn://localhost/gambas/trunk@6091 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-20 19:32:24 +00:00
Benoît Minisini
9e4aed45e4 [INTERPRETER]
* BUG: If an error is raised inside a TRY context, the Error.Backtrace 
  property is reset to NULL. It does not keep its previous value anymore.


git-svn-id: svn://localhost/gambas/trunk@6090 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-20 00:05:33 +00:00
Fabien Bodard
5dfef252d5 [GB.REPORT]
* NEW: A New widget ReportPageBreak allow to break a page when you need
* NEW: Report.Print take now an optional argument Printer that allow
  to give an externally initialised printer. In tis case the dialog is not
  shown.
* BUG: Now ReportLabel rotation work fine and the angle is given in Rad
* BUG: You can now add an argument to the _New sub. Be carrefull the _New 
  event is called one time only at the report loading.
* BUG: The custom size work but there is some bugs with the printer.configure
  that setup the page size to A4 :-/



git-svn-id: svn://localhost/gambas/trunk@6089 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-19 21:44:48 +00:00
Benoît Minisini
35062bb200 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix background of CoordBox controls.
* BUG: Image editor: Fix text tool.
* NEW: Image editor: Text alignment.
* BUG: Image editor: Scaling selection is done from the top left corner by 
  default, and from the selection center only if you press the SHIFT key.
* NEW: Image editor: The mouse wheel now zooms the image.
* BUG: Project property dialog: Fix component list layout.
* NEW: Some new backgrounds.

[GB.FORM]
* NEW: TabPanel: Now there are a left and a right arrow to navigate through 
  the tabs.


git-svn-id: svn://localhost/gambas/trunk@6088 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-19 20:25:16 +00:00
Benoît Minisini
f027f25706 [GB.QT4]
* BUG: TextLabel: Automatic size is correctly computed now. Apparently 
  there are internal changes in the Qt library that made it false.


git-svn-id: svn://localhost/gambas/trunk@6087 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-19 17:57:02 +00:00
Fabien Bodard
1fca41f693 [DEVELOPMENT ENVIRONMENT]
* BUG: The report editor take the ReportLabel rotate angle (in degree)
  into account.


git-svn-id: svn://localhost/gambas/trunk@6086 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-17 21:08:24 +00:00
Benoît Minisini
ef1143cd81 [GB.SDL]
* NEW: Remove the delay when 'Stop Event' is called during the Draw event 
  handler.
* NEW: The Gambas event loop is now called with a delay of 1 ms. So it will
  use a busy waiting instead of sleeping the process.


git-svn-id: svn://localhost/gambas/trunk@6085 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-16 22:05:12 +00:00
Benoît Minisini
de472c0e2a [COMPILER]
* NEW: Allow a CASE expression list to spread among the next line provided 
  that the current line ends with a comma.


git-svn-id: svn://localhost/gambas/trunk@6084 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-14 22:43:35 +00:00
Benoît Minisini
a5cdcbae28 [GB.GTK]
* BUG: The TextArea.Text property does not waste memory anymore.


git-svn-id: svn://localhost/gambas/trunk@6083 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-14 22:26:51 +00:00
Benoît Minisini
27694b5925 [GB.FORM]
* BUG: gb.form should compile correctly again

[GB.FORM.MDI]
* OPT: Workspace: Make the background flickering less.


git-svn-id: svn://localhost/gambas/trunk@6082 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-14 19:54:49 +00:00
Benoît Minisini
de0ff1afc1 [INTERPRETER]
* BUG: Correctly close the standard error output of an ending process if 
  its standard output has already been closed.


git-svn-id: svn://localhost/gambas/trunk@6081 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-14 12:06:39 +00:00
Benoît Minisini
8c6cf71838 [DEVELOPMENT ENVIRONMENT]
* NEW: ImageEditor: A text tool has been added.
* BUG: The "open terminal" and "open file browser" toolbar icons now work 
  as expected.

[WEBSITE MAKER]
* NEW: Update for 3.5.2 release.

[INTERPRETER]
* NEW: Successives spaces in a regular expression pattern now acts like a 
  single space.

[GB.DRAW]
* NEW: Paint.PathOutline is a new property that returns a array of polygons 
  corresponding to the current drawing path.

[GB.FORM]
* NEW: FontBox is a new control that allows to select a font from a text 
  field.
* NEW: The FontChooser control now adapts its interface if its height is 
  too small.

[GB.GTK]
* NEW: Paint.PathOutline is a new property that returns a array of polygons 
  corresponding to the current drawing path.

[GB.GUI.BASE]
* NEW: Add a little left and right padding to GridView cells.
* NEW: ListBox now uses the default selected background color.

[GB.QT4]
* NEW: Paint.PathOutline is a new property that returns a array of polygons 
  corresponding to the current drawing path.


git-svn-id: svn://localhost/gambas/trunk@6080 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-12 01:59:49 +00:00
Benoît Minisini
e18c2016e7 [GB.GTK]
* BUG: Menu.Children.Clear() works again.

[GB.GTK.OPENGL]
* BUG: GlArea can take the focus now.


git-svn-id: svn://localhost/gambas/trunk@6077 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-10 22:30:33 +00:00
Fabien Bodard
cf7da09a46 [GB.REPORT]
* BUG: The fixed elements at the end of the page are now computing correctly
  theire size.
* BUG: ReportLabel now use Paint.TextSize instead of Paint.TextExtend to get
  the text size.


git-svn-id: svn://localhost/gambas/trunk@6076 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-08 21:17:44 +00:00
Fabien Bodard
7c5aecff77 [GB.REPORT]
* BUG: Now ReportLabel take multiline text into account
  for it height computing.


git-svn-id: svn://localhost/gambas/trunk@6075 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-08 20:52:23 +00:00
Benoît Minisini
e28bd14ae3 [GB.GTK]
* BUG: Fix memory leak when loading images without alpha channel.


git-svn-id: svn://localhost/gambas/trunk@6071 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-08 00:00:31 +00:00
Benoît Minisini
ce4ac176ef [GB.OPENGL]
* BUG: GL.GetString() now raises an error if the glGetString() function 
  fails.


git-svn-id: svn://localhost/gambas/trunk@6070 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-07 20:45:18 +00:00
Benoît Minisini
00ae88f8dc [INTERPRETER]
* BUG: Be virtual even the first time when calling the [] operator!


git-svn-id: svn://localhost/gambas/trunk@6069 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-06 16:57:20 +00:00
Benoît Minisini
09210497db [GB.GTK3]
* BUG: Style.PaintPanel() does not crash anymore. But it does not draw the
  focus frame anymore... :-/


git-svn-id: svn://localhost/gambas/trunk@6068 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-06 00:48:49 +00:00
Benoît Minisini
e3dfc5b9f6 [GB.GTK]
* NEW: GTK3+ support continues.


git-svn-id: svn://localhost/gambas/trunk@6064 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-05 19:23:41 +00:00
Benoît Minisini
5b7b339424 [GB.QT4]
* BUG: Foreground and background colors now works as expected on ComboBox 
  and SpinBox controls.


git-svn-id: svn://localhost/gambas/trunk@6062 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-05 10:48:33 +00:00
Benoît Minisini
a7afee1bb8 [DEVELOPMENT ENVIRONMENT]
* BUG: Form editor: When double-clicking on a control, don't crash if a 
  there is a mistake in its default event declaration. Just display a 
  warning message on the standard error output.
* NEW: Option dialog: Use SwitchButton instead of ComboBox.
* NEW: Some new backgrounds.

[GB.FORM]
* BUG: SwitchButton now raises its Click event.


git-svn-id: svn://localhost/gambas/trunk@6060 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-05 09:22:11 +00:00
Benoît Minisini
0b2d37ca68 [DEVELOPMENT ENVIRONMENT]
* BUG: Image editor: Don't left the editor in an inconsistent state after a 
  paste has been done.


git-svn-id: svn://localhost/gambas/trunk@6059 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-05 09:19:08 +00:00
Benoît Minisini
9da017f719 [GB.FORM]
* NEW: SwitchButton is a new control that displays an ON/OFF button.

[GB.GTK]
* NEW: Rework Style.PaintBox() method.
* NEW: Style.StateOf() is a new method that returns the state flags of a 
  specific control.
* NEW: Style.BackgroundOf() is a new method that returns the actual 
  background color of a specific control.
* NEW: Style.ForegroundOf() is a new method that returns the actual 
  background color of a specific control.
* NEW: All state flag constants of the Draw class are now implemented in 
  the Style class.

[GB.GTK3]
* NEW: GTK3+ support continues! By te way, GTK3+ theming support is a 
  fucking nightmare.

[GB.QT4]
* NEW: Rework Style.PaintBox() method.
* NEW: Style.StateOf() is a new method that returns the state flags of a 
  specific control.
* NEW: Style.BackgroundOf() is a new method that returns the actual 
  background color of a specific control.
* NEW: Style.ForegroundOf() is a new method that returns the actual 
  background color of a specific control.
* NEW: All state flag constants of the Draw class are now implemented in 
  the Style class.

[GB.WEB]
* NEW: Session.Exist() is a new method that returns if a specific key is 
  stored in the session.


git-svn-id: svn://localhost/gambas/trunk@6058 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-05 00:08:06 +00:00
Benoît Minisini
28cdb922b6 [GB.GTK3]
* BUG: gb.gtk3 should finally compile with GTK+ 3.10. Maybe...


git-svn-id: svn://localhost/gambas/trunk@6057 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-02 21:38:37 +00:00
Benoît Minisini
018b33696b [INTERPRETER]
* BUG: Fix a crash when using CStr() on an object having a conversion 
  function.


git-svn-id: svn://localhost/gambas/trunk@6056 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-02 21:37:44 +00:00
Benoît Minisini
e0469073ab [GB.GSL]
* BUG: Polynomial: Create a new void polymonial does lead to a crash 
  anymore.


git-svn-id: svn://localhost/gambas/trunk@6055 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-02 21:18:08 +00:00
Benoît Minisini
1dcb5a3ddc [GB.GUI.AREA]
* BUG: ProgressBar: Correctly draws the right part of the label.


git-svn-id: svn://localhost/gambas/trunk@6054 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-02 12:57:29 +00:00
Benoît Minisini
55d7b00615 [GB.FORM]
* NEW: Add Spinner control icon.
* NEW: Spinner.Label is a new property that tell if the spinner must 
  display a label.
* NEW: Spinner.Value is the percentage value to display as a label, between 
  0 and 1.

[GB.GUI.AREA]
* NEW: ProgressBar: Take the Enabled state into account when drawing the 
  control.

git-svn-id: svn://localhost/gambas/trunk@6053 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-02 12:53:40 +00:00
Benoît Minisini
e298d6a927 [GB.FORM]
* BUG: DateChooser: Remove a debugging message.
* NEW: Spinner is a new control that displays a rotating spinner.


git-svn-id: svn://localhost/gambas/trunk@6052 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-02 10:38:51 +00:00
Benoît Minisini
d3c4b1691c [GB.QT4]
* NEW: Remove source files of the old ProgressBar control.

[GB.GTK]
* NEW: Remove source files of the old ProgressBar control.

[GB.GTK3]
* NEW: Remove source files of the old ProgressBar control.


git-svn-id: svn://localhost/gambas/trunk@6051 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-02 10:03:27 +00:00
Benoît Minisini
24a62cff83 [INTERPRETER]
* NEW: When a void string is sent to an extern function argument expecting 
  a string, it is converted to a zero-length string instead of a null 
  pointer.

[GB.FORM]
* NEW: DateChooser: Replace the month ComboBox by a MenuButton.
* BUG: DateChooser: Better management of the month menu button width.

[GB.GUI.BASE]
* NEW: The ProgressBar control is now written in Gambas.


git-svn-id: svn://localhost/gambas/trunk@6050 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-02 09:31:32 +00:00
Benoît Minisini
9b0c084da1 [GB.QT4]
* BUG: * BUG: Correctly update background and foreground of multi-container 
  controls.
* BUG: Font.Grade maximum value is now +24, as expected by the font 
  selector.


git-svn-id: svn://localhost/gambas/trunk@6049 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-01 23:07:52 +00:00
Benoît Minisini
19bc16f26b [GB.GTK]
* NEW: GTK+3 support continues...


git-svn-id: svn://localhost/gambas/trunk@6048 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-01 22:11:51 +00:00
Benoît Minisini
492e4ea979 [GB.GTK]
* BUG: Correctly update background and foreground of multi-container 
  controls.


git-svn-id: svn://localhost/gambas/trunk@6047 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-01 22:11:02 +00:00
Benoît Minisini
41d97ec87e [GB.GTK]
* NEW: Support for GTK+3 continues.


git-svn-id: svn://localhost/gambas/trunk@6046 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-01 16:37:50 +00:00
Benoît Minisini
0f21a59469 [GB.GTK3]
* BUG: Make gb.gtk3 compile with GTK+ 3.10.


git-svn-id: svn://localhost/gambas/trunk@6045 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-31 23:33:21 +00:00
Benoît Minisini
7545521c0f [INTERPRETER]
* BUG: Fix {...} pattern management in LIKE operator again.


git-svn-id: svn://localhost/gambas/trunk@6044 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-31 21:39:24 +00:00
Benoît Minisini
36d1a8a70c [DEVELOPMENT ENVIRONMENT]
* NEW: Check the current GUI component in its popup menu.
* BUG: Use '/etc/os-release' to know the SuSE version, instead of 
  '/etc/SuSE-release' which is deprecated.

[GB.FORM]
* BUG: ButtonBox: Some drawing fixes for other themes than Oxygen.

[GB.QT4]
* BUG: The control borders are drawn the same way everywhere.


git-svn-id: svn://localhost/gambas/trunk@6043 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-31 16:09:53 +00:00
Benoît Minisini
7b870faf3a [INTERPRETER]
* BUG: Fix LIKE operator when the {...} syntax is not at the end of the 
  pattern.


git-svn-id: svn://localhost/gambas/trunk@6042 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-31 15:57:20 +00:00
Benoît Minisini
e87b82bc05 [COMPILER]
* BUG: Fix compilation of NOT LIKE, NOT BEGINS and NOT ENDS operators when
  they are not alone in an expression.


git-svn-id: svn://localhost/gambas/trunk@6041 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-31 14:30:58 +00:00
Benoît Minisini
3c8bb8a719 [GB.GTK]
* NEW: GTK+3 support continues...


git-svn-id: svn://localhost/gambas/trunk@6040 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-31 12:43:34 +00:00
Benoît Minisini
8e7d6473d4 [GB.GTK3]
* NEW: GTK+3 support continues.


git-svn-id: svn://localhost/gambas/trunk@6039 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-30 20:03:56 +00:00
Benoît Minisini
184b1a2898 [GB.GTK3]
* BUG: Fix GTK+3 compilation.


git-svn-id: svn://localhost/gambas/trunk@6038 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-30 11:46:01 +00:00
Benoît Minisini
b3acb379f4 [GB.GTK3]
* BUG: Fix compilation with GTK+ 3.10.


git-svn-id: svn://localhost/gambas/trunk@6037 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-30 11:43:14 +00:00
Tobias Boege
00200dbece [CONFIGURATION]
* OPT: Move gb.inotify to main/lib.



git-svn-id: svn://localhost/gambas/trunk@6036 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-30 11:29:15 +00:00
Tobias Boege
823413ad5d [GB.INOTIFY]
* NEW: New component to interface Gambas with the Linux-specific inotifies
* NEW: The Inotify class can be created to watch a certain path for events
  which are reported by various Gambas events being raised.

[CONFIGURATION]
* NEW: Add the gb.inotify component



git-svn-id: svn://localhost/gambas/trunk@6035 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-30 01:37:38 +00:00
Benoît Minisini
547636a68b [GB.GUI.BASE]
* BUG: Clicking on GridView/ColumnView headers now should work correctly 
  again.


git-svn-id: svn://localhost/gambas/trunk@6034 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-29 23:10:59 +00:00
Benoît Minisini
1d6a0f896d [GB.GTK]
* BUG: Patch the GtkSpinButton class so that it is drawn correctly when 
  not having a normal height.


git-svn-id: svn://localhost/gambas/trunk@6033 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-29 22:37:06 +00:00
Benoît Minisini
57359c4f2a [INTERPRETER]
* BUG: Fix the LIKE operator whith "{...}" patterns.


git-svn-id: svn://localhost/gambas/trunk@6031 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-29 19:24:52 +00:00