Commit graph

3325 commits

Author SHA1 Message Date
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
Benoît Minisini
c5debe2304 [INTERPRETER]
* BUG: The event handler check routine should not crash anymore.


git-svn-id: svn://localhost/gambas/trunk@5249 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-22 16:22:15 +00:00
Benoît Minisini
fb33a73b86 [INTERPRETER]
* NEW: Accept event handlers with a variable number of arguments.
* BUG: Remove a debugging message.

[GB.IMAGE.EFFECT]
* BUG: Image.Histogram() now correctly handle ABGR images.
* BUG: Remove a debugging message.


git-svn-id: svn://localhost/gambas/trunk@5248 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-22 14:09:05 +00:00
Benoît Minisini
b029b7d560 [GB.GTK]
* BUG: Fix event handling when a window has only invisible top-level menus.
* BUG: Fix a possible crash in TrayIcon mouse wheel event handling.


git-svn-id: svn://localhost/gambas/trunk@5247 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-22 13:51:39 +00:00
Benoît Minisini
53c284099b [DEVELOPMENT ENVIRONMENT]
* BUG: The name of GridView controls is now always visible in the form
  editor.

[INTERPRETER]
* NEW: Support for new QUIT syntax.
* NEW: Do not display overriding prefix in class names.

[COMPILER]
* NEW: QUIT now can takes an optional argument which is the program return 
  value.

[GB.ARGS]
* BUG: The "--version" option is not "----version" anymore
* NEW: If an error occurs, returns 1 as exit value and not 0.

[GB.FORM]
* BUG: GridView is correctly updated now when the Border property is set.


git-svn-id: svn://localhost/gambas/trunk@5246 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-19 21:00:35 +00:00
Benoît Minisini
9dc65723d5 [EXAMPLES]
* NEW: Add a project icon to the PopMailbox example.

git-svn-id: svn://localhost/gambas/trunk@5245 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-18 20:47:27 +00:00
Sebastian Kulesz
0d6acf5787 [GB.NET.POP3]
* BUG: Fixed a bug that prevented reusing a Pop3Client instance after
  executing Close()


git-svn-id: svn://localhost/gambas/trunk@5244 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-18 20:44:33 +00:00
Sebastian Kulesz
41a868eeb5 [EXAMPLES]
* NEW: Example on how to use the gb.net.pop3 component.



git-svn-id: svn://localhost/gambas/trunk@5243 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-18 20:37:41 +00:00
Benoît Minisini
d8d03075e6 [GB.FORM]
* BUG: GridView does not crash anymore if all rows are hidden (i.e. if 
  their height is zero).


git-svn-id: svn://localhost/gambas/trunk@5242 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-18 20:33:09 +00:00
Benoît Minisini
72ee74e8d4 [DEVELOPMENT ENVIRONMENT]
* NEW: Draw the projet property dialog library list with a GridView.

[INTERPRETER]
* BUG: Fix class overriding routine.

[GB.ARGS]
* NEW: 'gb.args' is a new component that analyzes the command-line options,
  and automatically handles the "--help" option.

[GB.HTTPD]
* BUG: Hide the component.


git-svn-id: svn://localhost/gambas/trunk@5241 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-15 10:06:37 +00:00
Benoît Minisini
17a0748815 [CONFIGURATION]
* NEW: Each component installation now generates all information files
  systematically, to fix possible dependencies between components written
  in Gambas.

[DEVELOPMENT ENVIRONMENT]
* NEW: Running a project using the 'gb.web' component now automatically
  starts the embedded HTTP server.

[INTERPRETER]
* NEW: Class overriding is retrospective now.
* NEw: System._Breakpoint() is a new hidden method that raises a 
  breakpoint. Very useful for debugging.

[GB.GTK]
* BUG: The Action.Register() method must not crash when called during class 
  clean-up.

[GB.HTTPD]
* NEW: Define a custom exported HTTP server name.

[GB.JIT]
* BEW: Support for new class overriding (the CLASS structure has lost one 
  field).

[GB.QT4]
* BUG: The Action.Register() method must not crash when called during class 
  clean-up.


git-svn-id: svn://localhost/gambas/trunk@5240 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-14 22:42:53 +00:00
Benoît Minisini
c6b16d6ce2 [GB.FORM]
* BUG: MaskBox and ButtonBox controls with no mask now should act like a 
  normal TextBox for popup menu and focus events.


git-svn-id: svn://localhost/gambas/trunk@5239 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-14 14:46:01 +00:00
Benoît Minisini
87e1d27af4 [GB.QT4]
* BUG: Less flicker when showing fullscreen windows.


git-svn-id: svn://localhost/gambas/trunk@5238 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-14 12:24:40 +00:00
Benoît Minisini
fedc591dfc [INTERPRETER]
* BUG: Implicit array conversion now correctly preserves dimensions.


git-svn-id: svn://localhost/gambas/trunk@5237 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-14 10:52:02 +00:00
Benoît Minisini
2ab47c59e0 [COMPILER]
* NEW: Support for IF ... THEN ... ELSE syntax on the same line.


git-svn-id: svn://localhost/gambas/trunk@5236 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-13 22:43:36 +00:00
Benoît Minisini
4ecc3420e6 [GB.IMAGE]
* BUG: Fix Image.RotateRight() algorithm.


git-svn-id: svn://localhost/gambas/trunk@5235 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-13 09:46:35 +00:00
Benoît Minisini
06977c713d [GB.IMAGE]
* BUG: Image.RotateRight() now really rotates to the right.


git-svn-id: svn://localhost/gambas/trunk@5233 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-11 20:39:06 +00:00
Benoît Minisini
8701a2f020 [INTERPRETER]
* BUG: Fix symbol table search that could sometimes fail with non ASCII 
  characters.

[ARCHIVER]
* NEW: Add '.public' directory to executables.
* NEW: A new '-i' option not to display warnings when an information file 
  include fails.


git-svn-id: svn://localhost/gambas/trunk@5230 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-10 14:58:14 +00:00
Benoît Minisini
0bc1869019 [DEVELOPMENT ENVIRONMENT]
* NEW: Use 'open' icon for top-level project tree folders.


git-svn-id: svn://localhost/gambas/trunk@5229 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-08 16:37:22 +00:00
Sebastian Kulesz
f297239776 [GB.DESKTOP]
* BUG: Fix compilation error



git-svn-id: svn://localhost/gambas/trunk@5228 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-08 05:03:14 +00:00
Benoît Minisini
a907dacfbe [CONFIGURATION]
* NEW: The default installation prefix is now /usr, and /usr/local anymore.

[BENCHMARKS]
* NEW: New 'Manderlbrot' benchmark.


git-svn-id: svn://localhost/gambas/trunk@5227 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-07 22:38:44 +00:00
Benoît Minisini
6c2bb03d7c [DEVELOPMENT ENVIRONMENT]
* NEW: Support for the new 'Public' project virtual directory, which is 
  '.public' on the disk.

[SCRIPTER]
* NEW: Support for a new '-f- option that compile the script with JIT 
  compilation enabled.

[GB.DESKTOP]
* BUG: Remove _Desktop.ActivateWindow() method.

[GB.HTTPD]
* NEW: The embedded HTTP server now can serve static files located in the 
  '.public' hidden project directory.


git-svn-id: svn://localhost/gambas/trunk@5226 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-07 21:12:53 +00:00
Fabien Bodard
9918015264 [GB.REPORT]
* BUG: Reinit the Default Height and Width of the ReportControls to 0 cm. It correct the last seen default display.


git-svn-id: svn://localhost/gambas/trunk@5225 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-06 15:32:51 +00:00
Benoît Minisini
c11f373e19 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix conversion of multiple array declarations on the same line in 
  Gambas 2 projects.


git-svn-id: svn://localhost/gambas/trunk@5224 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-10-03 19:39:30 +00:00