Commit graph

741 commits

Author SHA1 Message Date
Benoît Minisini
fc66292f50 [GB.GTK]
* BUG: Setting PictureBox.Picture to NULL with PictureBox.Stretch set now 
  works as expected.
  
[GB.GTK3]
* BUG: Setting PictureBox.Picture to NULL with PictureBox.Stretch set now 
  works as expected.


git-svn-id: svn://localhost/gambas/trunk@7404 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-10 02:09:36 +00:00
Benoît Minisini
01a2b34270 [DEVELOPMENT ENVIRONMENT]
* NEW: Project exported control icons are thiner.

[INTERPRETER]
* NEW: Release classes having an array class if that array class has no 
  instance.

[GB.GUI.BASE]
* NEW: _Gui._Quit is a new method called by the GUI components during their
  "quit" hook. At the moment it releases Drag.Icon picture and voids the 
  Picture cache.


git-svn-id: svn://localhost/gambas/trunk@7403 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-10 02:02:12 +00:00
Benoît Minisini
b3e2e3bbdb [GB.GTK]
* BUG: Fix Image.Rotate() routine.

[GB.GTK3]
* BUG: Fix Image.Rotate() routine.


git-svn-id: svn://localhost/gambas/trunk@7378 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-10-03 01:02:18 +00:00
Benoît Minisini
ea481962b9 [GB.GTK]
* BUG: Try to fix popup menu behaviour in X11 TrayIcon context.


git-svn-id: svn://localhost/gambas/trunk@7353 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-27 13:29:49 +00:00
Benoît Minisini
703d1a1a7a [GB.GTK]
* BUG: Newly opened windows are centered by default, to mimic the gb.qt4
  and gb.qt5 behaviour.

[GB.GTK3]
* BUG: Newly opened windows are centered by default, to mimic the gb.qt4
  and gb.qt5 behaviour.



git-svn-id: svn://localhost/gambas/trunk@7343 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-25 21:13:05 +00:00
Benoît Minisini
bdd864f41a [DEVELOPMENT ENVIRONMENT]
* BUG: Fix windows using icons not existing anymore.
* NEW: Add dark theme versions of some icons.

[INTERPRETER]
* NEW: "../xxx" now refers to a file located in the parent archive, not
  necessarily the main project archive. "../../xxx" refers to the 
  grand-parent archive, and so on. A component written in Gambas that 
  receives a relative path is supposed to prefix it with "../" if he wants 
  to access it. Please report any incompatibility!
* NEW: File.IsRelative() is a new method that returns if a file is 
  relative, i.e. if it does not starts with '/' or '~'.
  
[GB.FORM]
* NEW: The Stock class does not use the Picture cache anymore. It is 
  useless as normally the Stock class is accessed from the Picture[]
  method.

[GB.FORM.MDI]
* BUG: When browsing actions, do not try to load an icon for actions that
  do not have one.

[GB.GTK]
* NEW: Remove the Picture[] array accessor and the Picture.Flush() method.
  They are now implemented in the 'gb.gui.base' component.
  
[GB.GTK3]
* NEW: Remove the Picture[] array accessor and the Picture.Flush() method.
  They are now implemented in the 'gb.gui.base' component.
  
[GB.GUI.BASE]
* NEW: The Picture[] array accessor and the Picture.Flush() method are now 
  implemented in that component.
* NEW: Remove support for theme specific icons.
* NEW: Add support for right-to-left specific icons. For example, if an
  icon is named 'abc-ltr.png', then it will be considered as a 
  'left-to-right' icon, and the 'abc-rtl.png' icon will be used if the 
  current langauge is right-to-left written.
* NEW: Add support for dark theme specific icons. An icon named 
  'abc-dark.png' will be the dark theme version of the 'abc.png' icon.

[GB.QT4]
* NEW: Remove the Picture[] array accessor and the Picture.Flush() method.
  They are now implemented in the 'gb.gui.base' component.
* NEW: Message boxes do not support theme specific icons automatically 
  anymore.
  
[GB.QT5]
* NEW: Remove the Picture[] array accessor and the Picture.Flush() method.
  They are now implemented in the 'gb.gui.base' component.
* NEW: Message boxes do not support theme specific icons automatically 
  anymore.


git-svn-id: svn://localhost/gambas/trunk@7304 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-12 23:21:44 +00:00
Benoît Minisini
e2dd8969a3 [GB.GTK]
* BUG: Remove the Screens.Primary property, it is useless (it is always 0).

[GB.GTK3]
* BUG: Remove the Screens.Primary property, it is useless (it is always 0).


[GB.QT4]
* BUG: Continue fixing modal dialog initial screen.
* BUG: Remove the Screens.Primary property, it is useless (it is always 0).

[GB.QT5]
* BUG: Continue fixing modal dialog initial screen.
* BUG: Remove the Screens.Primary property, it is useless (it is always 0).


git-svn-id: svn://localhost/gambas/trunk@7282 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-06 18:16:12 +00:00
Benoît Minisini
0704ce8f70 [DEVELOPMENT ENVIRONMENT]
* OPT: Code formatting is faster now by working on a temporary line buffer.

[WEBSITE MAKER]
* NEW: Update to 3.8.1 version.

[GB.GTK]
* NEW: Screens.Primary is a new property that returns the primary screen 
  number.

[GB.GTK3]
* NEW: Screens.Primary is a new property that returns the primary screen 
  number.

[GB.QT4]
* BUG: Continue fixing modal dialog initial screen.
* NEW: Screens.Primary is a new property that returns the primary screen 
  number.

[GB.QT5]
* BUG: Continue fixing modal dialog initial screen.
* NEW: Screens.Primary is a new property that returns the primary screen 
  number.


git-svn-id: svn://localhost/gambas/trunk@7281 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-06 15:12:38 +00:00
Benoît Minisini
631c2477f6 [GB.GTK]
* BUG: No GTK+ warning message anymore when a TextArea or TextBox gets the 
  focus using some input methods.

[GB.GTK3]
* BUG: No GTK+ warning message anymore when a TextArea or TextBox gets the 
  focus using some input methods.


git-svn-id: svn://localhost/gambas/trunk@7273 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-05 16:00:54 +00:00
Benoît Minisini
29ce64375f [GB.GTK]
* BUG: TextArea.Paste() and CTRL+V works correctly now.

[GB.GTK3]
* BUG: TextArea.Paste() and CTRL+V works correctly now.



git-svn-id: svn://localhost/gambas/trunk@7272 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-05 15:45:31 +00:00
Benoît Minisini
9c033b4860 [GB.GTK]
* BUG: Fix a uninitialized variable that can lead to a crash when creating
  a window.

[GB.GTK3]
* BUG: Fix a uninitialized variable that can lead to a crash when creating
  a window.


git-svn-id: svn://localhost/gambas/trunk@7237 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-08-25 12:57:03 +00:00
Benoît Minisini
dfcb60106e [DEVELOPMENT ENVIRONMENT]
* BUG: Some HiDPI fixes.

[GB.FORM]
* NEW: Stock icon default sizes ("small", "medium"...) are now proportional
  to Desktop.Scale by steps of 8 pixels. This is for HiDPI support.
* NEW: Wizard BeforeChange event can be cancelled now.

[GB.FORM.MDI]
* NEW: Toolbar tries to update the size of its icons when the font changes.

[GB.GTK]
* NEW: Window now raises a Font event when its font changes.

[GB.GTK3]
* NEW: Window now raises a Font event when its font changes.

[GB.GUI.BASE]
* NEW: TreeView items height padding is now proportional to Desktop.Scale.

[GB.QT4]
* NEW: Window now raises a Font event when its font changes.

[GB.QT5]
* NEW: Window now raises a Font event when its font changes.


git-svn-id: svn://localhost/gambas/trunk@7228 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-08-18 15:19:22 +00:00
Benoît Minisini
08c0e1037e [DEVELOPMENT ENVIRONMENT]
* NEW: Farm client: Always draw software icon to the left.

[GB.DB.MYSQL]
* NEW: Use the a void database name by default, instead of explicitly 
  connecting to the "mysql" database.

[GB.GTK]
* BUG: Window.NoTakeFocus works correctly now.

[GB.GTK3]
* BUG: Window.NoTakeFocus works correctly now.

[GB.QT4]
* BUG: Non modal windows opened on top of modal windows now are correctly 
  closable now.
* BUG: Default window title is correctly initialized now.

[GB.QT5]
* BUG: Non modal windows opened on top of modal windows now are correctly 
  closable now.
* BUG: Window.NoTakeFocus should work in all cases now.
* BUG: Default window title is correctly initialized now.


git-svn-id: svn://localhost/gambas/trunk@7205 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-08-01 09:13:03 +00:00
Benoît Minisini
9547ff52ec [GB.GTK]
* BUG: Key[] works again correctly.

[GB.GTK3]
* BUG: Key[] works again correctly.



git-svn-id: svn://localhost/gambas/trunk@7202 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-07-31 23:46:56 +00:00
Benoît Minisini
1b420fbf43 [DEVELOPMENT ENVIRONMENT]
* NEW: Farm client: Cleaner way of drawing software information.
* BUG: Farm client: Software URL works correctly now.

[WIKI CGI SCRIPT]
* NEW: Remove custom font in style sheet.

[GB.FORM]
* NEW: ImageView.Alignment is a new property that allows to define how the
  image is aligned when it is smaller than the view.
* NEW: UrlLabel: Display the link URL if the Text property is not set.

[GB.GTK]
* NEW: Font.H is now a synonymous of Font.Height.

[GB.GTK3]
* NEW: Font.H is now a synonymous of Font.Height.

[GB.QT4]
* NEW: Font.H is now a synonymous of Font.Height.

[GB.QT5]
* NEW: Font.H is now a synonymous of Font.Height.


git-svn-id: svn://localhost/gambas/trunk@7196 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-07-31 03:00:41 +00:00
Benoît Minisini
9d6820dd88 [DEVELOPMENT ENVIRONMENT]
* NEW: The system colors of the color choose dialog are now dynamically 
  filled from the Color class information. Consequently, you can add new 
  colors by extending and adding new color constants or properties to the 
  Color class in your project.
* BUG: Prevent a possible crash in the farm client request manager.

[GB.GTK]
* BUG: The color properties of the Color class are now correctly read-only.
* BUG: Add a forgotten source file header symbolic link.

[GB.GTK3]
* BUG: The color properties of the Color class are now correctly read-only.
* BUG: Add a forgotten source file header symbolic link.

[GB.QT4]
* BUG: The color properties of the Color class are now correctly read-only.

[GB.QT5]
* BUG: The color properties of the Color class are now correctly read-only.


git-svn-id: svn://localhost/gambas/trunk@7189 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-07-29 12:59:14 +00:00
Benoît Minisini
417bfb8685 [INTERPRETER]
* NEW: GB.GetReturnValue() is a new interpreter API that returns a pointer
  to the internal GB_VALUE slot where GB.ReturnXXX() functions store the
  return value.
* NEW: Allow a component to declare a GB_AFTER_INIT() exported method that
  is called just after all the components declared in the project are 
  completely loaded.
  
[GB.DBUS]
* NEW: DBus._HasSystemTray() is a new method that returns if the DBus 
  system tray is present. That method is used by the 'gb.gui.trayicon'
  component to know if 'gb.dbus.trayicon' must be loaded.
* BUG: Fix xml introspection analysis.

[GB.DBUS.TRAYICON]
* BUG: Remove debugging messages.
* BUG: TrayIcon icon data is sent correctly now.

[GB.GUI.TRAYICON]
* NEW: New component that you must check if you want to have system tray
  icons. It loads 'gb.dbus', use DBus._HasSystemTray() to know if it can
  load 'gb.dbus.trayicon'. Otherwise it tells the current GUI component to
  declare the old system tray implementation classes.

[GB.GTK]
* NEW: Let the new 'gb.gui.trayicon' deals with the dbus stuff, but keep
  the old system tray icon and use them on demand.

[GB.GTK3]
* NEW: Let the new 'gb.gui.trayicon' deals with the dbus stuff, but keep
  the old system tray icon and use them on demand.

[GB.QT4]
* NEW: Let the new 'gb.gui.trayicon' deals with the dbus stuff, but keep
  the old system tray icon and use them on demand.

[GB.QT5]
* NEW: Let the new 'gb.gui.trayicon' deals with the dbus stuff, but keep
  the old system tray icon and use them on demand.


git-svn-id: svn://localhost/gambas/trunk@7170 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-07-03 22:18:58 +00:00
Benoît Minisini
eb2b172425 [GB.DBUS.TRAYICON]
* NEW: Add TrayIcon MiddleClick event.

[GB.QT4]
* NEW: Add TrayIcon MiddleClick event.

[GB.QT5]
* NEW: Add TrayIcon MiddleClick event.

[GB.GTK]
* NEW: Add TrayIcon MiddleClick event.

[GB.GTK3]
* NEW: Add TrayIcon MiddleClick event.


git-svn-id: svn://localhost/gambas/trunk@7169 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-07-02 23:05:52 +00:00
Benoît Minisini
27cf0ca10a [GB.DBUS.TRAYICON]
* BUG: Setting the Picture of an hidden "Unity" TrayIcon keeps it hidden.

[GB.GTK]
* NEW: Remove TrayIcon Menu event.

[GB.GTK3]
* NEW: Remove TrayIcon Menu event.

[GB.QT4]
* NEW: Remove TrayIcon Menu event.

[GB.QT5]
* NEW: Remove TrayIcon Menu event.


git-svn-id: svn://localhost/gambas/trunk@7168 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-07-02 23:00:46 +00:00
Benoît Minisini
005c733d8d [INTERPRETER]
* BUG: Fix Object.Raise() method.

[DEVELOPMENT ENVIRONMENT]
* BUG: Replace a possible error while filling the toolbox by a warning 
  message.

[GB.DBUS]
* NEW: DBusValues is a new class that must be used when a DBus method canonical
  return several values. It works like DBusVariant.
* NEW: DBus.SplitSignature is new method that allows to split a DBus signature.
* NEW: DBusNull class is renamed as _DBusNull.
  
[GB.DBUS.TRAYICON]
* NEW: TrayIcon popup menu is now exported through the DBusMenu protocol,
  so that it becomes usable on Unity. Consequently, the Menu event will be
  removed.

[GB.DESKTOP]
* NEW: Remove the Desktop.Type property.
* NEW: Add support for Unity.

[GB.GTK]
* NEW: Desktop.Type is now implemented in the GUI components.

[GB.GTK3]
* NEW: Desktop.Type is now implemented in the GUI components.

[GB.QT]
* NEW: Desktop.Type is now implemented in the GUI components.

[GB.QT5]
* NEW: Desktop.Type is now implemented in the GUI components.


git-svn-id: svn://localhost/gambas/trunk@7164 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-07-02 14:26:10 +00:00
Benoît Minisini
aff968ac00 [GB.DBUS.TRAYICON]
* NEW: Hide the component.

[GB.GTK]
* NEW: Implement the TrayIcons.DeleteAll() method.
* NEW: Call TrayIcons.DeleteAll() at exit.

[GB.GTK3]
* NEW: Implement the TrayIcons.DeleteAll() method.
* NEW: Call TrayIcons.DeleteAll() at exit.

[GB.QT4]
* NEW: Call TrayIcons.DeleteAll() at exit.
* NEW: TrayIcon: Add support for Scroll event.

[GB.QT5]
* NEW: Call TrayIcons.DeleteAll() at exit.
* NEW: TrayIcon: Add support for Scroll event.


git-svn-id: svn://localhost/gambas/trunk@7155 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-29 02:26:23 +00:00
Benoît Minisini
930c7549d1 [INTERPRETER]
* NEW: Add a new GB.Component.Declare() API, that allows a component to
  dynamically register a class description.

[INFORMER]
* NEW: A component now can declare classes through a GB_OPTIONAL_CLASSES 
  public symbol. Theses classes are included into the information file,
  but are not automatically loaded as the ones defined through the 
  GB_CLASSES symbol.

[GB.FORM.STATUSICON]
* NEW: This component has been removed and replaced by gb.dbus.trayicon.
* NEW: This component now provide TrayIcon and TrayIcons classes that have
  exactly the same interface as the old ones.

[GB.DBUS]
* NEW: Remove the now useless DBusConnection.Raise(). The DBusConnection
  Register() and Unregister() are kept for backward-compatibility reason.
* NEW: Add DBus.Raise() and DBus[].Raise() to raise signals. At the moment,
  there is no difference between the two methods, as there no mean to
  indicate the sender raising a signal. I don't know yet how DBus decides
  which service sends a signal!

[GB.DBUS.TRAYICON]
* NEW: This component implements the tray icon DBus protocol. It is 
  automatically loaded by the GUI components.

[GB.GTK]
* NEW: Load the 'gb.dbus' and 'gb.dbus.trayicon' components if the current
  desktop is KDE >= 4. Otherwise, use the old TrayIcon implementation.
* BUG: Fix the old TrayIcon implementation, so that it matches the QT one.

[GB.GTK3]
* NEW: Load the 'gb.dbus' and 'gb.dbus.trayicon' components if the current
  desktop is KDE >= 4. Otherwise, use the old TrayIcon implementation.
* BUG: Fix the component name in deprecation warning messages.
* BUG: Fix the old TrayIcon implementation, so that it matches the QT one.

[GB.QT4]
* NEW: Load the 'gb.dbus' and 'gb.dbus.trayicon' components if the current
  desktop is KDE >= 4. Otherwise, use the old TrayIcon implementation.

[GB.QT5]
* NEW: Load the 'gb.dbus' and 'gb.dbus.trayicon' components if the current
  desktop is KDE >= 4. Otherwise, use the old TrayIcon implementation.


git-svn-id: svn://localhost/gambas/trunk@7154 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-29 01:46:51 +00:00
Benoît Minisini
0271f54897 [GB.GTK]
* BUG: Fix compilation error.

[GB.GTK3]
* BUG: Fix compilation error.



git-svn-id: svn://localhost/gambas/trunk@7146 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-26 11:22:40 +00:00
Benoît Minisini
f2f3401926 [DEVELOPMENT ENVIRONMENT]
* BUG: Code prettyfier should not move the cursor anymore.

[GB.DBUS]
* NEW: Support for sending signals.

[GB.QT4]
* NEW: Detect system tray with the Qt routine.

[GB.QT5]
* NEW: Detect system tray with the Qt routine.

[GB.GTK]
* NEW: Actually try to detect the system tray. Only the old protocol is 
  supported.

[GB.GTK3]
* NEW: Actually try to detect the system tray. Only the old protocol is 
  supported.


git-svn-id: svn://localhost/gambas/trunk@7145 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-25 23:09:39 +00:00
Benoît Minisini
db4d4afce6 [GB.FORM.EDITOR]
* NEW: TextEditor: Any selected text now goes to the selection clipboard
  automatically.
* NEW: TextEditor: The middle mouse button now pastes the selection 
  clipboard.

[GB.GTK]
* NEW: Clipboard.Current is a new property that tells if the Clipboard 
  methods and properties operate on the default clipboard or the selection
  clipboard.
  
[GB.GTK3]
* NEW: Clipboard.Current is a new property that tells if the Clipboard 
  methods and properties operate on the default clipboard or the selection
  clipboard.
  
[GB.GUI.BASE]
* NEW: ScrollArea: Draw the border around the scrollbars now.

[GB.QT4]
* NEW: Clipboard.Current is a new property that tells if the Clipboard 
  methods and properties operate on the default clipboard or the selection
  clipboard.
  
[GB.QT5]
* NEW: Clipboard.Current is a new property that tells if the Clipboard 
  methods and properties operate on the default clipboard or the selection
  clipboard.


git-svn-id: svn://localhost/gambas/trunk@7130 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-13 08:14:40 +00:00
Benoît Minisini
d64fbae8c7 [GB.GTK3]
* BUG: Dialog.SelectFont() does not crash anymore.


git-svn-id: svn://localhost/gambas/trunk@7126 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-09 20:49:34 +00:00
Benoît Minisini
a8b8ca57bc [GB.GTK3]
* BUG: Explicit call to gtk_printer_option_widget_get_type(), otherwise 
  printing crashes. But why???


git-svn-id: svn://localhost/gambas/trunk@7125 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-09 20:22:35 +00:00
Benoît Minisini
8d2e4c5262 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix initial cursor position at file loading.

[GB.FORM.EDITOR]
* BUG: Wrapping is correctly updated now when the margin width changes.
* NEW: The line indent is used for drawing all the wrapped lines of a text 
  line.
* NEW: The HOME and END keys take the wrapping into accoutn now.

[GB.GTK]
* BUG: Drawing text on an image now has the same result as drawing text on 
  the screen. They use the same hinting options.

[GB.GTK3]
* BUG: Drawing text on an image now has the same result as drawing text on 
  the screen. They use the same hinting options.


git-svn-id: svn://localhost/gambas/trunk@7124 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-09 11:27:13 +00:00
Benoît Minisini
6ec02aa5f7 [GB.GTK]
* BUG: Fix keyboard events handling.
* BUG: Fix enter and leave events handling.


git-svn-id: svn://localhost/gambas/trunk@7122 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-08 15:47:16 +00:00
Benoît Minisini
9261e84858 [DEVELOPMENT ENVIRONMENT]
* NEW: Use the "next" icon for the buttons that switch between the class 
  file and the form file.
* BUG: Fix all WebView font sizes.
* BUG: Open project dialog: Fix buttons layout.
* NEW: Take the gb.gui.qt.* components into account in the help system.
* NEW: Component chooser: New look. Don't use the round borders anymore.
* BUG: Project properties dialog: Do not display the libraries in the 
  component list anymore.
* BUG: Component chooser: Correctly uncheck component dependencies.

[GB.FORM.EDITOR]
* BUG: TextEditor: Fix detection of some monospace fonts.
* NEW: TextEditor: Draw a minus/plus sign for expanded/collapsed 
  procedures. Do not use Style.PaintArrow() anymore, it does not work 
  correctly with gb.gtk.
* BUG: TextEditor: Update cursor position when collapsing a function.

[GB.GTK]
* BUG: Paint.Font now behaves as expected if one of its property is set.
* BUG: Font.ToString() now uses the point as font size decimal separator.

[GB.GTK3]
* BUG: Paint.Font now behaves as expected if one of its property is set.
* BUG: TextBox.Mouse property works correctly again with GTK >= 3.14.
* BUG: Font.ToString() now uses the point as font size decimal separator.

[GB.GUI.BASE]
* NEW: GridView: Don't draw the last grid lines.
* NEW: GridView: The cursor is more visible.
* NEW: GridView: The scrollbars use the same background as the view.

[GB.QT4]
* BUG: Setting Paint.Font to NULL does not crash anymore. It resets the 
  font to its initial value taken at Paint.Begin.
  
[GB.QT5]
* BUG: Setting Paint.Font to NULL does not crash anymore. It resets the 
  font to its initial value taken at Paint.Begin.
* NEW: Closing a popup does not replay the mouse click anymore.


git-svn-id: svn://localhost/gambas/trunk@7110 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-06-04 17:16:07 +00:00
Benoît Minisini
a6cd2a6505 [DEVELOPMENT ENVIRONMENT]
* NEW: Don't use the 'gb.eval.highlight' component anymore. Highlighting is 
  inside 'gb.form.editor' now. This may change in the future.

[GB.EVAL.HIGHLIGHT]
* NEW: Mark the component as deprecated.

[GB.GTK]
* BUG: Row and column arrangement now work correctly with RTL language in 
  both normal and inverted modes.

[GB.GTK3]
* BUG: Right-to-left languages are taken into account by the arrangement
  routine correctly now.
* BUG: Row and column arrangement now work correctly with RTL language in 
  both normal and inverted modes.

[GB.QT4]
* BUG: Row and column arrangement now work correctly with RTL language in 
  both normal and inverted modes.

[GB.QT5]
* BUG: Row and column arrangement now work correctly with RTL language in 
  both normal and inverted modes.


git-svn-id: svn://localhost/gambas/trunk@7103 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-05-29 00:43:16 +00:00
Benoît Minisini
74f4993c5d [DEVELOPMENT ENVIRONMENT]
* BUG: Text editor: Fix text pasting.

[GB.FORM]
* BUG: Completion: The completion popup now can be clicked without being 
  closed, thanks to the new Window.Activate() method that gives the focus
  back to the completed text box.

[GB.FORM.EDITOR]
* BUG: TextEditor: Fix braces highlighting.
* BUG: TextEditor: Correctly disable procedure folding when the ShowExpand 
  property is FALSE.

[GB.FORM.MDI]
* NEW: Workspace: Rename an internal method that was in conflict with the 
  new Window.Activate() method.

[GB.GTK]
* NEW: Window.Activate is a new method that activates a window.

[GB.GTK3]
* NEW: Window.Activate is a new method that activates a window.

[GB.QT4]
* NEW: Window.Activate is a new method that activates a window.

[GB.QT5]
* NEW: Window.Activate is a new method that activates a window.
* BUG: Window.TakeFocus should work now.
* NEW: Add a new X11 helper function that allows to set the 
  _NEW_WM_USER_TIME property of a window, so that Window.TakeFocus can be
  implemented.


git-svn-id: svn://localhost/gambas/trunk@7097 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-05-24 14:24:14 +00:00
Benoît Minisini
b56f1804e5 [DEVELOPMENT ENVIRONMENT]
* NEW: Use the new TextEditor instead of the old Editor control. 
  Consequently, the 'gb.qt4.ext' component is not needed by the IDE 
  anymore.
* NEW: Option dialog: Put the fonts options in their own panel.
* NEW: Farm client: Add new categories.

[GB.FORM]
* NEW: Fix some breeze icons.

[GB.FORM.EDITOR]
* NEW: TextEditor: Development continues...

[GB.GTK]
* NEW: Font.Modified is a new property that returns if the font has been 
  modified, i.e. if one of its properties has been set. This property can 
  be freely reset. That way, it allows to implement the concept of "default
  font".
* BUG: Remove a GTK+ bug workaround in the Control.Refresh() method. Maybe 
  it is useless now.

[GB.GTK3]
* NEW: Font.Modified is a new property that returns if the font has been 
  modified, i.e. if one of its properties has been set. This property can 
  be freely reset. That way, it allows to implement the concept of "default
  font".
* BUG: Remove a GTK+ bug workaround in the Control.Refresh() method. Maybe 
  it is useless now.

[GB.GUI.BASE]
* BUG: GridView: Use the new Font.Modified property so that the initial 
  font of a cell is always the font of the GridView, even if it changed 
  after the cell has been filled.

[GB.QT4]
* NEW: Font.Modified is a new property that returns if the font has been 
  modified, i.e. if one of its properties has been set. This property can 
  be freely reset. That way, it allows to implement the concept of "default
  font".

[GB.QT5]
* NEW: Font.Modified is a new property that returns if the font has been 
  modified, i.e. if one of its properties has been set. This property can 
  be freely reset. That way, it allows to implement the concept of "default
  font".


git-svn-id: svn://localhost/gambas/trunk@7089 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-05-19 22:21:22 +00:00
Benoît Minisini
bec95180a1 [GB.GTK]
* OPT: Cache Pango layout in each painter so that it is not recreated at 
  each text drawing.
* BUG: Copying a control font now should works as expected.
* OPT: Paint.TextSize does not compute text size twice anymore.


git-svn-id: svn://localhost/gambas/trunk@7083 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-05-14 21:32:48 +00:00
Benoît Minisini
a572c6b9d1 [GB.GTK]
* NEW: The local Stock class has been deprecated. GTK+ stock icons are not 
  accessible anymore.

[GB.GTK3]
* NEW: The local Stock class has been deprecated. Deprecated GTK+ stock 
  icons are not accessible anymore.
* BUG: Fix warnings by not using deprecated functions. Only 
  GtkImageMenuItem is kept, because I didn't found a workaround yet of 
  GTK+3 dropping icons in menus!


git-svn-id: svn://localhost/gambas/trunk@7032 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-04-12 21:29:18 +00:00
Benoît Minisini
7dae6298bc [GB.GTK]
* BUG: Fix a crash when calling Dialog.SaveFile() with a void Dialog.Path.
* BUG: TextBox: Setting the Pos property during a KeyPress event now works
  in all cases.

[GB.GTK3]
* BUG: Fix a crash when calling Dialog.SaveFile() with a void Dialog.Path.
* BUG: TextBox: Setting the Pos property during a KeyPress event now works
  in all cases.


git-svn-id: svn://localhost/gambas/trunk@7007 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-28 20:42:30 +00:00
Benoît Minisini
7d514ba286 [GB.FORM]
* NEW: ValueBox now raises a Change event when its content changes.
* OPT: DocumentView: Don't scale the document image before drawing it! It 
  is slow with gb.qt4, and slow as hell with gb.gtk. Use the scaling 
  feature of Paint.DrawImage().
* NEW: DocumentView: Use a lighter page shadow.

[GB.GTK3]
* BUG: SpinBox: Use a larger minimum width.


git-svn-id: svn://localhost/gambas/trunk@6963 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-09 18:50:40 +00:00
Benoît Minisini
438800a393 [GB.GTK3]
* BUG: Correctly handle widget grabs, i.e. popups, modal dialogs...
* BUG: Read-only combo-boxes do not prevent windows to shrink vertically.
* NEW: ComboBox height can be smaller.
* BUG: SpinBox does not expand horizontally up to the right border of its 
  parent anymore.


git-svn-id: svn://localhost/gambas/trunk@6961 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-09 10:00:20 +00:00
Benoît Minisini
3c3b1b44a2 [GB.FORM]
* NEW: The Completion class now uses a top-level popup window and the new 
  TakeFocus property.
* BUG: Remove some unused variables and symbols.

[GB.GTK]
* BUG: Closing a window now should not lose FocusOut events anymore.
* BUG: Fix the Window.TakeFocus property.
  
[GB.GTK3]
* BUG: Fix the Window.TakeFocus property.


git-svn-id: svn://localhost/gambas/trunk@6941 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-02 22:27:42 +00:00
Benoît Minisini
3814eea878 [GB.GTK]
* NEW: Window.TakeFocus is a new property that indicates if the window will 
  take the focus the first time it is mapped.
  
[GB.GTK3]
* NEW: Window.TakeFocus is a new property that indicates if the window will 
  take the focus the first time it is mapped.
  
[GB.QT4]
* NEW: Window.TakeFocus is a new property that indicates if the window will 
  take the focus the first time it is mapped.
  

git-svn-id: svn://localhost/gambas/trunk@6937 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-02 20:14:35 +00:00
Benoît Minisini
a07a02c086 [GB.DRAW]
* BUG: The optional painting area is correclty reset after a call to 
  Paint.Reset().
 

git-svn-id: svn://localhost/gambas/trunk@6936 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-02 18:20:56 +00:00
Benoît Minisini
77563de5cb [DEVELOPMENT ENVIRONMENT]
* NEW: Update support list.

[GB.GTK]
* BUG: Fix a possible crash in input method management.

[GB.GTK3]
* BUG: Fix a possible crash in input method management.
* BUG: TextArea now has a minimum size, as GTK+3 crashes when they are too 
  small.


git-svn-id: svn://localhost/gambas/trunk@6913 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-25 21:23:14 +00:00
Benoît Minisini
d3cecd5e9f [GB.GTK]
* BUG: Fix a spurious warning.

[GB.GTK3]
* BUG: Fix a spurious warning.


git-svn-id: svn://localhost/gambas/trunk@6912 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-25 17:12:00 +00:00
Benoît Minisini
c728dafc8f [GB.GTK]
* BUG: Fix crash when using read-only ComboBox.

[GB.GTK3]
* BUG: Fix crash when using read-only ComboBox.


git-svn-id: svn://localhost/gambas/trunk@6911 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-25 17:06:41 +00:00
Benoît Minisini
7d2c75dcda [GB.GTK]
* BUG: Fix arrangement of ScrollView control.

[GB.GTK3]
* BUG: Fix arrangement of ScrollView control.


git-svn-id: svn://localhost/gambas/trunk@6910 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-25 02:35:51 +00:00
Benoît Minisini
e75bbafdb9 [GB.GTK]
* BUG: Do not crash when a piece of rich text contains the "</>" string.

[GB.GTK3]
* BUG: Do not crash when a piece of rich text contains the "</>" string.


git-svn-id: svn://localhost/gambas/trunk@6907 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-23 01:47:25 +00:00
Benoît Minisini
9d04f9cc58 [GB.GTK]
* BUG: Fix a possible GTK+ warning when drawing widget borders.
* BUG: Apply XIM workaround only on controls having their own input method.

[GB.GTK3]
* BUG: Fix a possible GTK+ warning when drawing widget borders.
* BUG: Apply XIM workaround only on controls having their own input method.


git-svn-id: svn://localhost/gambas/trunk@6906 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-23 00:46:53 +00:00
Benoît Minisini
2b4cbbb2cc [GB.GTK]
* BUG: The keyboard event management is being fixed again. Workaround the 
  strange behaviour of the XIM input method that raises keyboard events 
  twice.

[GB.GTK3]
* BUG: The keyboard event management is being fixed again. Workaround the 
  strange behaviour of the XIM input method that raises keyboard events 
  twice.


git-svn-id: svn://localhost/gambas/trunk@6905 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-23 00:21:34 +00:00
Benoît Minisini
7b6dd88035 [GB.GTK]
* BUG: Redesign the keyboard event management so that it works with all 
  input methods.
  
[GB.GTK3]
* BUG: Redesign the keyboard event management so that it works with all 
  input methods.


git-svn-id: svn://localhost/gambas/trunk@6904 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-22 21:06:50 +00:00
Benoît Minisini
9c7d9a6a1e [DEVELOPMENT ENVIRONMENT]
* NEW: Use specific gray icons for the debugging panel.
* BUG: Loading a new project correctly updates the desktop component 
  toolbar button.
* NEW: Balloon message have been replaced by the new MessageView control.

[GB.FORM]
* NEW: MessageView is a new control that implements an embedded 
  notification panel that is automatically hidden and shown if there is a 
  message to display.
* BUG: MenuButton: Draw the focus state correctly.

[GB.GTK]
* NEW: Now Frame can be replaced by any Panel-like containers in the IDE.

[GB.QT4]
* NEW: Now Frame can be replaced by any Panel-like containers in the IDE.


git-svn-id: svn://localhost/gambas/trunk@6879 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-02 20:08:18 +00:00