Commit graph

3453 commits

Author SHA1 Message Date
Benoît Minisini
4bb198dc3d [GB.GTK]
* BUG: The mouse cursor is correctly inherited from the parent control if
  the Mouse property is set to Mouse.Default.


git-svn-id: svn://localhost/gambas/trunk@5306 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-08 20:03:50 +00:00
Benoît Minisini
4708a63e89 [GB.GUI.BASE]
* BUG: TreeView won't crash anymore by trying to raise its Activate event 
  whereas the current item has been destroyed during the previous mouse 
  events.
* BUG: ScrollArea: DragLeave event can be called whereas there was no 
  DragMove event. So don't assume that.
* BUG: GridView: multiple selection works again.

[GB.QT4]
* BUG: Don't crash if the debugger asks for enabling the grabs back whereas
  the grabber widgets have been destroyed.


git-svn-id: svn://localhost/gambas/trunk@5305 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-08 17:28:16 +00:00
Benoît Minisini
f78aa256ca [GB.GUI.BASE]
* BUG: Fix a crash when trying to resize a TreeView item that just has been 
  added.


git-svn-id: svn://localhost/gambas/trunk@5304 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-08 15:38:33 +00:00
Benoît Minisini
5d9a781017 [DEVELOPMENT ENVIRONMENT]
* BUG: Right mouse button can select controls again in form editor.

[GB.GTK]
* NEW: DragLeave is a new event raised by any control when the mouse leave
  a control during a DnD operation, or when the DnD operation terminates.
* NEW: DragMove and DragLeave events take the proxy into account. 

[GB.GUI.BASE]
* NEW: ScrollArea, GridView, TreeView... now automatically scroll during a
  DnD operation.
* BUG: Remove the overriden MouseDown event from the GridView class.
* BUG: A DnD operation does not eat the next mouse click anymore in 
  GridView, TreeView... controls.

[GB.QT4]
* NEW: DragLeave is a new event raised by any control when the mouse leave
  a control during a DnD operation, or when the DnD operation terminates.
* NEW: DragMove and DragLeave events take the proxy into account. 


git-svn-id: svn://localhost/gambas/trunk@5303 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-07 22:51:04 +00:00
Tobias Boege
b417f1861e [GB.DATA]
* OPT: Great overhaul of List algorithms. Beware: Still buggy.
* OPT: Make list chunks carry multiple Variants to improve cache locality.
* OPT: Don't traverse List forwards/backwards when the absolute value of
  index is past the half of Count.
* NEW: Introduce List.Backwards - a virtual object to enumerate backwards
* NEW: Don't use List.Current as enumeration pointer.
* NEW: Begin enumeration at the first/last node.
* NEW: Traverse backwards when given negative index to _get.
* NEW: Make Current invalid by default.
* NEW: Assign first/last element when MoveNext()/MovePrev() is issued on an
  invalid Current.
* NEW: Use List.Current as pointer for the Find*() methods, too.
* NEW: Assign first/last element when FindNext()/FindPrev() is issued on an
  invalid Current.
* NEW: Don't return an index from Find*() methods because it is not the way
  linked list are dealt with.
* NEW: Make insertion and removal of elements safe in enumerations.
* NEW: When Current (or enumerator) is removed, the pointer remains relative
  to the beginning of the List but it never wraps around the end.
* BUG: Correctly *cycle* with {Move,Find}{Next,Prev}()



git-svn-id: svn://localhost/gambas/trunk@5302 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-06 21:03:07 +00:00
Benoît Minisini
34de79ef3d [DEVELOMENT ENVIRONMENT]
* BUG: Disable embedded http server.

[INTERPRETER]
* BUG: Fix a crash in String.Comp() when one of the two string is null.

[GB.FORM]
* BUG: Don't show useless menus in the DirView popup menu of a DirChooser 
  or FileChooser control.
* BUG: Do not scroll the TabPanel tab bar if not really necessary.

[GB.GUI.BASE]
* BUG: For backward-compatibility reasons, you can now set the value of 
  any arbitrary positive column index of a ColumnView item.


git-svn-id: svn://localhost/gambas/trunk@5301 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-06 20:11:20 +00:00
Benoît Minisini
7c36785b6e [DEVELOPMENT ENVIRONMENT]
* BUG: In form editor, rectangle selection is triggered by the left mouse 
  button only.

[GB.GTK]
* BUG: Fix reparenting when there is a TabStrip in the process.

[GB.GUI.BASE]
* BUG: Fix sizing of TreeView items.
* BUG: Fix a crash when a sorted TreeView is updated.


git-svn-id: svn://localhost/gambas/trunk@5300 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-04 23:09:58 +00:00
Benoît Minisini
ef5de89c03 [GB.GTK]
* BUG: Scrollbar width is correctly respected.
* BUG: Setting the background color of a Panel should not have spurious 
  effects anymore (they were due to the internal reparenting).



git-svn-id: svn://localhost/gambas/trunk@5299 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-04 20:34:40 +00:00
Benoît Minisini
3254fbbefe [GB.GUI.BASE]
* BUG: Fix TreeView item move methods.


git-svn-id: svn://localhost/gambas/trunk@5298 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-03 23:06:48 +00:00
Benoît Minisini
2b54af8a9f [DEVELOPMENT ENVIRONMENT]
* BUG: Remove a debugging message.


git-svn-id: svn://localhost/gambas/trunk@5297 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-03 22:04:55 +00:00
Benoît Minisini
946a8ef2be [DEVELOPMENT ENVIRONMENT]
* NEW: Use a yellow star for marking exported classes.
* NEW: Automatic completion of file paths.
* NEW: Going backward and forward now works in the text editor.
* NEW: The project filter buttons have been replaced by a popup menu that 
  is triggered when you click on the gray magnifying glass.

[GB.DESKTOP]
* NEW: DesktopFile.FindMime() has been deprecated and replaced by 
  Desktop.FromMime().
* NEW: Desktop.GetFileIcon() is a new method that returns the icon 
  associated with a specific file path. DesktopMime is used.

[GB.FORM]
* NEW: TabStrip: support of right-to-left languages.
* NEW: Stock: support for right-to-left icons.

[GB.FORM.STOCK]
* NEW: Support for right-to-left icons.

[GB.GUI.BASE]
* BUG: GridView: support of right-to-left languages.



git-svn-id: svn://localhost/gambas/trunk@5296 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-03 21:45:02 +00:00
Fabien Bodard
efa2be8694 [GB.DESKTOP]
* BUG: Correctly return the common language
* OPT: Add a cache for comments


git-svn-id: svn://localhost/gambas/trunk@5295 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-03 16:42:09 +00:00
Fabien Bodard
413147d1ce [GB.DESKTOP]
* NEW: New Function that return the comment for a given mimetype in the current country setting. 
  If true is set in parameter the common language is returned.


git-svn-id: svn://localhost/gambas/trunk@5294 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-03 16:03:57 +00:00
Benoît Minisini
6ec8947f88 [GB.QT4.EXT]
* NEW: Better undo/redo management.


git-svn-id: svn://localhost/gambas/trunk@5293 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-02 17:54:47 +00:00
Benoît Minisini
6704db30ee [GB.QT4.EXT]
* BUG: Fix undo/redo when deleting to the left (backspace key).


git-svn-id: svn://localhost/gambas/trunk@5292 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-02 16:44:58 +00:00
Benoît Minisini
9f8954c448 [DEVELOPMENT ENVIRONMENT]
* NEW: Add every supported desktop to the icon theme list in the option 
  dialog.

[GB.FORM]
* NEW: DirChooser: add a ShowPreview property.
* NEW: FileChooser: add a ShowPreview property.
* BUG: Fix 'show preview' menu entry in FileChooser and DirChooser.


git-svn-id: svn://localhost/gambas/trunk@5291 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-02 16:38:58 +00:00
Benoît Minisini
0853b396fe [GB.DESKTOP]
* NEW: Use the new '$(mime)' icon virtual directory.

[GB.FORM]
* NEW: FileView: new ShowPreview property to enable or disable image 
  preview.
* BUG: Many fixes in icon retrieving routine.
* NEW: Stock class now can find the mime icon directory if $(mime) is used
  inside the icon name.


git-svn-id: svn://localhost/gambas/trunk@5290 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-02 16:09:58 +00:00
Fabien Bodard
5da0e292df git-svn-id: svn://localhost/gambas/trunk@5289 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2012-11-02 15:29:22 +00:00
Fabien Bodard
68997e7d58 [GB.DESKTOP]
* BUG: Remove gb.form in the loaded components. so desktop can be compiled again


git-svn-id: svn://localhost/gambas/trunk@5288 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-02 15:02:27 +00:00
Fabien Bodard
6e3c8f3870 [GB.DESKTOP]
* BUG: Dont use the third argument on stock class
* BUG: Swap the path test : first mimes and then mimetypes



git-svn-id: svn://localhost/gambas/trunk@5287 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-02 14:23:02 +00:00
Benoît Minisini
54d789d66e [GB.DESKTOP]
* NEW: DesktopMime: when looking for the icon, try the 'mimes' directory if
  nothing is found in the 'mimetypes' directory.

[GB.FORM]
* OPT: FileView: clean up icon retrieving function.
* NEW: Stock: display warning on load fail only if GB_STOCK is set.

[GB.QT4.EXT]
* NEW: Editor: undo/redo now take the cursor position and the selection 
  into account.


git-svn-id: svn://localhost/gambas/trunk@5286 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-02 14:05:58 +00:00
Fabien Bodard
81941d7cb3 [GB.DESKTOP]
* BUG: Out of bound on a test on suffix corrected


git-svn-id: svn://localhost/gambas/trunk@5285 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-02 13:56:12 +00:00
Fabien Bodard
e5446e3eae [GB.FORM]
* NEW: Stock lose the AllowNull Param and return a Default Picture only if Debug is true

[GB.QT4]
* OPT: Return to the old Stock signature

[GB.GTK]
* OPT: Return to the old Stock signature




git-svn-id: svn://localhost/gambas/trunk@5284 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-02 13:44:27 +00:00
Benoît Minisini
0dcec86d99 [GB.DESKTOP]
* BUG: The .settings file must not be in subversion.


git-svn-id: svn://localhost/gambas/trunk@5283 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-02 12:26:34 +00:00
Fabien Bodard
84dcb67f99 git-svn-id: svn://localhost/gambas/trunk@5282 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2012-11-02 12:10:27 +00:00
Fabien Bodard
65033089a4 git-svn-id: svn://localhost/gambas/trunk@5281 867c0c6c-44f3-4631-809d-bfa615b0a4ec 2012-11-02 12:08:48 +00:00
Fabien Bodard
a36f6a7dfc [GB.FORM]
* NEW: New parameter in Stock class :'AllowNull' in _Get function so stock return
  null if ni icon is found

[GB.QT4]
* OPT: Change the signature for _Get detection

[GB.GTK]
* OPT: change the stock _get signature




git-svn-id: svn://localhost/gambas/trunk@5280 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-02 12:05:55 +00:00
Benoît Minisini
cdefab21a2 [DEVELOPMENT ENVIRONMENT]
* NEW: Add a button to copy the value of a watched expression to the 
  clipboard.


git-svn-id: svn://localhost/gambas/trunk@5279 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-02 00:31:53 +00:00
Fabien Bodard
5f455082e2 [GB.DESKTOP]
* BUG: Load generic icons even in fast mode


git-svn-id: svn://localhost/gambas/trunk@5278 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-01 22:22:44 +00:00
Fabien Bodard
3223450699 [GB.FORM]
* BUG: Allow icons with a point in the name



git-svn-id: svn://localhost/gambas/trunk@5277 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-01 22:21:03 +00:00
Fabien Bodard
4414985b24 [GB.FORM]
* NEW: Now FileView use DesktopMime to set the files icon if it is loaded.


git-svn-id: svn://localhost/gambas/trunk@5276 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-01 18:49:24 +00:00
Fabien Bodard
44cb9d7563 [GB.DESKTOP]
* NEW: New property PreciseSearch. If true it load the magic and generic icon files
* OPT: Properties are now read only



git-svn-id: svn://localhost/gambas/trunk@5275 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-01 17:54:52 +00:00
Benoît Minisini
fdcf978fd8 [GB.DESKTOP]
* BUG: Fix the name of some public functions arguments.


git-svn-id: svn://localhost/gambas/trunk@5274 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-01 16:41:57 +00:00
Fabien Bodard
4eca4c3576 [GB.DESKTOP]
* NEW: A new class that return the type mime of a given file by using the freedesktop Shared Mime Database.
This classe give also informations about a given type mime like extention pattern, icon, or applications that open
it (DesktopFiles).



git-svn-id: svn://localhost/gambas/trunk@5273 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-01 16:05:06 +00:00
Benoît Minisini
6a4079fdd2 [GB.GUI.BASE]
* BUG: TreeView.Item is now correctly set when raising the Activate event.


git-svn-id: svn://localhost/gambas/trunk@5271 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-01 13:29:30 +00:00
Benoît Minisini
6902dc7dae [INTERPRETER]
* BUG: Using Enum.Index outside of an enumeration now raises an error 
  instead of crashing.


git-svn-id: svn://localhost/gambas/trunk@5270 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-01 13:19:11 +00:00
Benoît Minisini
2ca1b5e731 [GB.GTK]
* BUG: Label, TextLabel, PictureBox and MovieBox now draw their plain 
  border with the foreground color, like gb.qt4 does.


git-svn-id: svn://localhost/gambas/trunk@5269 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-11-01 01:54:33 +00:00
Benoît Minisini
25ee42b34d [GB.DB.FORM]
* BUG: Correctly handle null values when sorting a DataSource.
* BUG: DataSource.Table contents is automatically trimmed before being sent 
  to the database driver.

git-svn-id: svn://localhost/gambas/trunk@5267 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-31 18:05:43 +00:00
Benoît Minisini
588e0f3942 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix scrolling of code editor procedure list.
* BUG: Automatic local variable declaration now works correctly when a 
  method named "Get" is called inside the analyzed expression.

[COMPILER]
* NEW: "[]" now is compiled to return a array with no elements.

[INTERPRETER]
* BUG: Array with no elements can be casted to any other array datatype.

[GB.GUI.BASE]
* BUG: Fix visibility of expanded TreeView items.

[GB.QT4.EXT]
* NEW: When the Editor loses the focus, it does not scroll to the cursor 
  position automatically anymore.


git-svn-id: svn://localhost/gambas/trunk@5266 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-30 23:44:24 +00:00
Benoît Minisini
ad88ad8dd9 [GB.GTK]
* BUG: Fix crash in menu deletion.


git-svn-id: svn://localhost/gambas/trunk@5265 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-30 01:35:29 +00:00
Benoît Minisini
19e3c5c5e4 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix form editor background drawing.

[GB.GUI.BASE]
* NEW: Expanding a TreeView item now automatically scrolls so that child
  items are visible.


git-svn-id: svn://localhost/gambas/trunk@5264 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-29 09:20:08 +00:00
Benoît Minisini
d88e2463f1 [GB.GTK]
* BUG: Foreground color is now correctly preserved when reparenting.


git-svn-id: svn://localhost/gambas/trunk@5263 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-29 03:22:27 +00:00
Benoît Minisini
1f734dfd83 [GB.GTK]
* BUG: Reparenting a container correctly keeps the visibility state of its 
  children.


git-svn-id: svn://localhost/gambas/trunk@5262 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-29 01:44:27 +00:00
Benoît Minisini
fb2c780011 [EXAMPLES]
* NEW: Merge the new PDFViewer example made by Bernd Brinkmann.


git-svn-id: svn://localhost/gambas/trunk@5261 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-29 01:20:44 +00:00
Benoît Minisini
8edf201b34 [INTERPRETER]
* BUG: Fix profiling of WAIT instruction.


git-svn-id: svn://localhost/gambas/trunk@5260 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-29 00:46:53 +00:00
Benoît Minisini
3c07aa952a [GB.GTK]
* NEW: Remove useless source files of controls now implemented in the
  gb.gui.base component.

[GB.QT4]
* NEW: Remove useless source files of controls now implemented in the
  gb.gui.base component.


git-svn-id: svn://localhost/gambas/trunk@5259 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-29 00:02:39 +00:00
Benoît Minisini
25e6253672 [CONFIGURATION]
* BUG: The default prefix is /usr in component directories too.
* NEW: Uninstall mime handler and mime icons in 'make uninstall'.

[GB.GTK]
* NEW: Replace the old ListBox control by the one in gb.gui.base.

[GB.QT4]
* NEW: Replace the old ListBox control by the one in gb.gui.base.
* OPT: Some little optimizations in ScrollView.
* OPT: Changing the geometry of a control whose Ignore property is set does
  not trigger parent arrangement routine anymore.


git-svn-id: svn://localhost/gambas/trunk@5258 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-28 19:21:59 +00:00
Benoît Minisini
84bcc9052f [CONFIGURATION]
* BUG: Fix compilation of Gambas.

[DEVELOPMENT ENVIRONMENT]
* NEW: Change the proportional font size list in the option dialog. Use a
  5% size increment.

[INFORMER]
* NEW: gbi3 now displays include warning only if the GBI_DEBUG environment
  variable is set to "1".

[GB.FORM]
* NEW: Add a FontChooser Border property.
* BUG: Support for Underline and Strikeout come back in FontChooser.

[GB.GUI.BASE]
* NEW: ScrollArea now raise a Resize event when the client area is resized
  because of changes in scrollbars visibility.
* BUG: Changing a TreeView item property now correctly refreshes the view.
* OPT: The height of TreeView rows is now refreshed correctly.

[GB.QT4]
* BUG: The menu bar height is correctly refreshed if the application font
  changes.



git-svn-id: svn://localhost/gambas/trunk@5257 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-28 14:35:31 +00:00
Benoît Minisini
0de1545f21 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix option dialog layout.

[GB.FORM]
* NEW: New FontChooser control design.

[GB.GTK]
* BUG: Fix gb.gtk compilation.
* NEW: Add Window.Indent arrangement property.

[GB.GUI.BASE]
* BUG: Setting the text of the ColumnView columns now works correctly.
* NEW: The ListBox Gambas implementation is finished, but has not replaced
  the old one yet.

[GB.QT4]
* NEW: Add Window.Indent arrangement property.


git-svn-id: svn://localhost/gambas/trunk@5256 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-28 00:28:26 +00:00
Benoît Minisini
5ab73c7494 [DEVELOPMENT ENVIRONMENT]
* NEW: Add a button to reset the default font in the option dialog.

[GB.FORM]
* NEW: Add an hidden method to the ButtonBox class that allows to insert
  an already existing ToolButton in it.

[GB.GUI.BASE]
* BUG: Fix ScrollArea.EnsureVisible() and GridView.EnsureVisible() methods 
  again.
* BUG: Fix TreeView MoveBelow() and MoveAbove() methods.


git-svn-id: svn://localhost/gambas/trunk@5255 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-27 22:05:49 +00:00