Commit graph

3348 commits

Author SHA1 Message Date
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
Benoît Minisini
8539a2a02d [DEVELOPMENT ENVIRONMENT]
* NEW: A new option that defines the default application font.
* NEW: The font options have been redesigned.
* BUG: Various fixes implied by the new TreeView control implementation.

[WIKI CGI SCRIPT]
* NEW: Page whose title begins with "~" are class page synonymous.

[INTERPRETER]
* BUG: Calling the _unknown method on an anonymous object reference won't
  crash anymore.
* NEW: Class.Exist() is a new method that returns if a class has a specific
  symbol.

[GB.GTK]
* NEW: The Container Find() method has been renamed as FindChild(). The 
  _unknown method has been implemented to handle backward compatibility.
* BUG: Fix string to Font conversion for fonts whose name starts with 
  "nan" or other special numeric strings.

[GB.GUI.BASE]
* BUG: ScrollView.EnsureVisible() and GridView.EnsureVisible() methods when 
  there is a frame.
* NEW: MyListBox is the initial implementation of a ListBox control 
  entirely written in Gambas.
* BUG: Renaming a TreeView item now correctly selects it before.

[GB.OPENGL]
* BUG: Fix an error message in deprecated constants handler routine.

[GB.QT4]
* NEW: The Container Find() method has been renamed as FindChild(). The 
  _unknown method has been implemented to handle backward compatibility.


git-svn-id: svn://localhost/gambas/trunk@5254 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-27 18:59:14 +00:00
Benoît Minisini
fa0cbb8642 [GB.GUI.BASE]
* BUG: The component is correctly installed now.
* OPT: Store the order of each TreeView item, so that tree traversal is 
  faster.


git-svn-id: svn://localhost/gambas/trunk@5253 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-27 10:12:47 +00:00
Benoît Minisini
b07b3e7eb9 [GB.GUI.BASE]
* BUG: Fix TreeView renaming box position.
* BUG: Fix removing of items having children.


git-svn-id: svn://localhost/gambas/trunk@5252 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-27 01:27:18 +00:00
Benoît Minisini
d800d7e136 [INTERPRETER]
* BUG: Fix the order of component exported classes loading after the 
  project has been loaded.
* BUG: Fix GB.CanRaise() API.

[GB.DB.FORM]
* NEW: DataView.Sorted is a new property that tells if the data can be 
  sorted by clicking on the column headers.
* NEW: DataView columns now show sort indicators, and data can be sorted in
  descending order.
* NEW: DataSource.Ascending is a new property that defines the order of the
  sort defined by the DataSource.Sort property.

[GB.FORM]
* NEW: Remove all controls that were moved to gb.gui.base.
* NEW: FileView file size units are translatable now.

[GB.GTK]
* NEW: Remove TreeView, ListView and ColumnView.
* NEW: Control.Tracking takes the proxy into account.
* NEW: Remove the Gambas part.

[GB.GUI.BASE]
* NEW: gb.gui.base is a new hidden component that is automatically loaded 
  by gb.qt4 and gb.gtk. It implements the following controls and classes 
  entirely in Gambas: TreeView, ListView, ColumnView, IconView, Action,
  ScrollArea. These classes were located in gb.form and in the Gambas part
  of GUI components before.

[GB.QT4]
* NEW: Remove TreeView, ListView and ColumnView.
* NEW: Control.Tracking takes the proxy into account.
* NEW: Remove the Gambas part.

[GB.WEB]
* NEW: Request.Query and Request.Path can be modified now.
* BUG: Overriding a CGI variable with Null works now.


git-svn-id: svn://localhost/gambas/trunk@5251 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-27 00:28:55 +00:00
Benoît Minisini
16679fdd5d [DEVELOPMENT ENVIRONMENT]
* BUG: Events of class written in Gambas are correctly detected now.
* BUG: Automatic local variable declaration now correctly analyze 
  expressions like "A.B" in all cases.
* NEW: Use a SidePanel to display the stack backtrace.

[GB.DB]
* BUG: DB.Quote(..., True) now does a table name quoting in all cases.

[GB.DB.FORM]
* BUG: The database controls now can handle table names that are reserved
  SQL keywords.

[GB.FORM]
* NEW: Start implementing TreeView entirely in Gambas.
* BUG: Removing GridView rows correctly resets the row heights.
* NEW: GridView now raises a Draw event that allows to paint a cell with 
  any drawing methods.


git-svn-id: svn://localhost/gambas/trunk@5250 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-23 11:21:43 +00:00