Commit Graph

351 Commits

Author SHA1 Message Date
Emmanuel Briot
fa7748c367 Update copyright notices to 2015
Change-Id: Ida4e6137317bd53ef0a556edffaafe4022c74e2a
2015-01-05 15:45:56 +01:00
Nicolas Setton
a7482a1178 * extending.rst:
Remove mention of the debugger console color highlight.

* gvd-consoles.adb:
(Initialize): Adapt to new profile of Set_Highlight_Color.

* gvd-preferences.adb:
(Register_Default_Preferences): Remove preference Debugger_Highlight_Color.

* gvd-preferences.ads:
Remove preference Debugger_Highlight_Color;

* default_preferences.adb:
(Get_Pref_Fg_Color, Get_Pref_Bg_Color): New subprograms.

* default_preferences.ads:
(Get_Pref_Fg_Color, Get_Pref_Bg_Color): New subprograms.

* gps-kernel-console.adb:
(On_Preferences_Changed): No longer need to call Set_Highlight_Color, this is
 handled by the console itself.
(Initialize): Adapt to the new profile of Initialize.

* gps-kernel-interactive.adb:
(Create_Interactive_Console): Adapt to new profile of Initialize.

* interactive_consoles.adb:
(Gtk_New): New profile.
(Initialize): New profile. Register a handler on preferences changed.
(Set_Highlight_Color): The color is now a preference: extract the actual color
 from the preference.

* interactive_consoles.ads:
(Gtk_New): New profile for Kernel and Highlight.
(Initialize): Ditto.
(Interactive_Console_Record): Change field Highlight to a Preference.

* python_module.adb:
(Initialize): Adapt to new profile of Initialize.

Part of N724-033:
 - reuse the style of comments for the prompt in the debugger console
   instead of having a specific preference for this. This removes an unneeded
   preference.

   This also addresses the issue of the prompt being wrong in Dark mode.

 - make the Interactive_Consoles accept a Preference directly rather than
   an RGBA for their highlight color. This way, the Interactive Console can
   react to Preference_Changed and change the highlight: this avoids the need
   for each client of Interactive_Console having to do this themselves. (And
   implements it in the case of the Debugger Console which didn't do it).




git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@230959 936e1b1b-40f2-da11-902a-00137254ae57
2014-07-25 22:15:44 +00:00
Emmanuel Briot
d9b0663f39 Add support for saving and reloading a Simulink file as part of the desktop
This required various modifications in GPS, because the custom browsers are
using an instance of generic_views.ads (so that we can have local toolbars)
but using a python module's save_desktop and load_desktop function requires
that GPS.MDI.add be called with a proper save_desktop callback.
As such setting such a callback is now possible directly on a GPS_MDI_Child
rather than on a hidden class in python_module.adb.

Saving the desktop will now save the name of the .mdl file, and automatically
reload it when GPS is reopened.

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@225868 936e1b1b-40f2-da11-902a-00137254ae57
2014-04-09 10:38:16 +00:00
Emmanuel Briot
ce42d11cc1 ("GPS.Browsers.*"): new python classes, to create custom browsers
N331-020

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@225449 936e1b1b-40f2-da11-902a-00137254ae57
2014-04-02 12:12:58 +00:00
Nicolas Setton
2f76982d71 N301-004
Refactor in the xref engine: make the Entity
an abstract type which owns a reference to the
database it is from. Slightly simplifies the
user API, and allows for introducing other
Entities for other database without client
modifications.



git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@224486 936e1b1b-40f2-da11-902a-00137254ae57
2014-03-12 17:31:07 +00:00
Emmanuel Briot
ec8702349c Update copyright notices to 2014
N103-019

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@221487 936e1b1b-40f2-da11-902a-00137254ae57
2014-01-06 10:29:22 +00:00
Emmanuel Briot
af07b410e5 Move the definition of menus from Ada to an XML file.
This gives better control on the order of menus, as well as open
 the way to moving the menus to application windows.
MA18-041

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@218586 936e1b1b-40f2-da11-902a-00137254ae57
2013-11-06 14:30:55 +00:00
Maxim Reznik
2d145900de Remove references to gtk from common.gpr
Add gnatcoll_python as dependency of python_core.gpr

For M227-043


git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@215575 936e1b1b-40f2-da11-902a-00137254ae57
2013-09-12 13:42:56 +00:00
Emmanuel Briot
18a9ac7d95 Remove traces.ads
This package was obsolete and replaced with GNATCOLL.Traces
Exceptions are now sent to "<name>.EXCEPTIONS" streams, and are
 always displayed in the testsuite.
Remove a number of exception handlers in gtk+ callbacks, which were
 no longer necessary since GtkAda has its own exception handlers.
M910-019

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@215445 936e1b1b-40f2-da11-902a-00137254ae57
2013-09-11 10:57:08 +00:00
Emmanuel Briot
f7253ca68c Remove debug trace
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@214359 936e1b1b-40f2-da11-902a-00137254ae57
2013-08-19 12:38:50 +00:00
Emmanuel Briot
f78a12d945 Add support for loading python views from an XML perspective. This
only works when using the modules.py interface
("GPS.MDI.add"): now returns the newly created GPS.MDIWindow
Fixes regression in mdi.13
M807-044

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@213972 936e1b1b-40f2-da11-902a-00137254ae57
2013-08-09 16:28:03 +00:00
Emmanuel Briot
a274d7c96c (modules.py): a new high-level way to write python extensions to GPS,
which takes care of various things, like automatic connection to hooks,
 setup, desktop saving,...
M807-044
(task_manager.py): rewritten with modules.py, so that we can save it in
 the desktop. No loading implemented yet.
("GPS.MDI.add"): new parameter save_desktop, to support saving python
 widgets in the desktop.
M808-040

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@213958 936e1b1b-40f2-da11-902a-00137254ae57
2013-08-09 14:57:11 +00:00
Emmanuel Briot
6971f8e4d2 Limit the possible locations for editors and views, to help
make the use of perspectives less surprising to users.
M731-021

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@213581 936e1b1b-40f2-da11-902a-00137254ae57
2013-07-31 15:16:39 +00:00
Emmanuel Briot
8424ac3d1f Remove support for initialization commands in startup.xml.
These were mostly deprecated in any case (no support to view these
 graphically for several years), and can be easily replaced with
 standard python commands.
M705-018

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/branches/global/gtk3/gps@212496 936e1b1b-40f2-da11-902a-00137254ae57
2013-07-05 13:07:37 +00:00
Emmanuel Briot
0b5ab2490f Reorganize the plug-ins.
This check in introduces the support/ directory to contain all mandatory
 python files that must be loaded on startup.
This removes a number of entries from the Plug-ins dialog, which is thus
 more readable.
Rewrite the .xml files into .py files
Merge some plug-ins that were split into several files, such as
 ada-support.xml+ada_support.py, subversion.xml+subversion.py,...
Fix issue with the Plug-ins dialog with python modules, which were
 showing up as empty lines. This dialog no longer shows the scripts
 that are mandatory (i.e. those in support/)
M617-025

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/branches/global/gtk3/gps@212495 936e1b1b-40f2-da11-902a-00137254ae57
2013-07-05 13:07:32 +00:00
Emmanuel Briot
34fcdfb5aa ("GPS.MDI.add"): new parameters group and position
These are used to specify the initial position of the widget.
M218-036

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/branches/global/gtk3/gps@211052 936e1b1b-40f2-da11-902a-00137254ae57
2013-06-07 08:46:37 +00:00
Automatic merge
d7a8ebc1d3 ------------------------------------------------------------------------
r203160 | reznik | 2013-02-26 16:02:12 +0100 (Tue, 26 Feb 2013) | 2 lines

Rename Core_Kernel to Core_Kernel_Record. For LB21_009

------------------------------------------------------------------------


git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/branches/global/gtk3/gps@203161 936e1b1b-40f2-da11-902a-00137254ae57
2013-02-26 15:03:13 +00:00
Automatic merge
7b6b964736 ------------------------------------------------------------------------
r203016 | reznik | 2013-02-22 11:13:36 +0100 (Fri, 22 Feb 2013) | 8 lines

* gps-core_kernels.ad[sb]
Make properties private. Add function to retrive them.

* gps-kernel.ad[sb]
Move Databases and Symbols functions into core_kernel.

For LB21_009

------------------------------------------------------------------------


git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/branches/global/gtk3/gps@203017 936e1b1b-40f2-da11-902a-00137254ae57
2013-02-22 10:14:01 +00:00
Automatic merge
e06c2a9fec Merge changes from trunk.
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/branches/global/gtk3/gps@202977 936e1b1b-40f2-da11-902a-00137254ae57
2013-02-21 16:37:08 +00:00
Emmanuel Briot
f62577bf7b (Build_Filter): new function to ease adding new filters to view,
and ensure a consistent layout. In particular, there is a single
 place to change if for instance we want to show the filter options
 other than with buttons. Such filters also have a special CSS class,
 so that for instance we can use rounded corner for them as seems
 usual in most GUIs now.
(Generic_Views): a View_Record now always has a Kernel field, which
 simplifies the API a bit, and allows removing the kernel field from
 a lot of other records.
This is in preparation for adding a filter to the Outline view.
M122-025

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/branches/global/gtk3/gps@201358 936e1b1b-40f2-da11-902a-00137254ae57
2013-01-23 08:34:11 +00:00
Emmanuel Briot
d4bc24b800 Python console should wrap the text.
Reported in M108-041

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/branches/global/gtk3/gps@200633 936e1b1b-40f2-da11-902a-00137254ae57
2013-01-10 16:07:20 +00:00
Automatic merge
4ca9cab486 Update copyright notice, merging changes from trunk.
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/branches/global/gtk3/gps@200408 936e1b1b-40f2-da11-902a-00137254ae57
2013-01-08 11:02:54 +00:00
Emmanuel Briot
07ee6a1008 Solve elaboration circularity from previous change.
Remove almost all public API from gps-kernel-console.ads. This package
 is now only used to create and manage the Messages window, but all
 packages that need to insert messages in the console need to go through
 the new services in GPS.Kernel (with same name as before).
(Create_Interactive_Console): moved to the new package GPS.Kernel.Interactive

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/branches/global/gtk3/gps@199369 936e1b1b-40f2-da11-902a-00137254ae57
2012-12-07 16:14:17 +00:00
Emmanuel Briot
d516319350 Implement the messages window with generic_views.ads.
This creates an elaboration circularity resolves in future checkins

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/branches/global/gtk3/gps@199368 936e1b1b-40f2-da11-902a-00137254ae57
2012-12-07 16:13:46 +00:00
Emmanuel Briot
a0ec4c99ec Also implement the GPS shell console with generic_views.ads
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/branches/global/gtk3/gps@199344 936e1b1b-40f2-da11-902a-00137254ae57
2012-12-07 11:25:32 +00:00