Index

Package: Application

Description

package Gtkada.Application is

This object adds support for opening files from OS commands, using the standard Glib Application mechanism for opening those files.

This requires some support that is system-specific: On windows, this registers a DDE server using the application's Id as name.

So for example com.adacore.TestGtk will register a DDE server whose name is TestGtk.

On OSX, this requires the application to be part of a bundle. This bundle needs to declare the file patterns that are supported by the application.

Classes

Gtkada_Application_Record

type Gtkada_Application_Record is new Gtk_Application_Record
     with private;

Ancestors:

Primitive operations:

Glib.Application.Action_Added (Inherited)
Glib.Application.Action_Enabled_Changed (Inherited)
Glib.Application.Action_Removed (Inherited)
Glib.Application.Action_State_Changed (Inherited)
Glib.Application.Activate (Inherited)
Glib.Application.Activate_Action (Inherited)
Glib.Application.Add_Action (Inherited)
Glib.Application.Add_Action_Entries (Inherited)
Glib.Application.Change_Action_State (Inherited)
Glib.Application.Get_Action_Enabled (Inherited)
Glib.Application.Get_Action_Parameter_Type (Inherited)
Glib.Application.Get_Action_State (Inherited)
Glib.Application.Get_Action_State_Hint (Inherited)
Glib.Application.Get_Action_State_Type (Inherited)
Glib.Application.Get_Application_Id (Inherited)
Glib.Application.Get_Dbus_Object_Path (Inherited)
Glib.Application.Get_Flags (Inherited)
Glib.Application.Get_Inactivity_Timeout (Inherited)
Glib.Application.Get_Is_Registered (Inherited)
Glib.Application.Get_Is_Remote (Inherited)
Glib.Application.Has_Action (Inherited)
Glib.Application.Hold (Inherited)
Glib.Application.List_Actions (Inherited)
Glib.Application.Lookup_Action (Inherited)
Glib.Application.On_Activate (Inherited)
Glib.Application.On_Activate (Inherited)
Glib.Application.On_Command_Line (Inherited)
Glib.Application.On_Command_Line (Inherited)
Glib.Application.On_Command_Line (Inherited)
Glib.Application.On_Shutdown (Inherited)
Glib.Application.On_Shutdown (Inherited)
Glib.Application.On_Startup (Inherited)
Glib.Application.On_Startup (Inherited)
Glib.Application.Query_Action (Inherited)
Glib.Application.Quit (Inherited)
Glib.Application.Register (Inherited)
Glib.Application.Release (Inherited)
Glib.Application.Remove_Action (Inherited)
Glib.Application.Run (Inherited)
Glib.Application.Run (Inherited)
Glib.Application.Run (Inherited)
Glib.Application.Set_Action_Group (Inherited)
Glib.Application.Set_Application_Id (Inherited)
Glib.Application.Set_Default (Inherited)
Glib.Application.Set_Flags (Inherited)
Glib.Application.Set_Inactivity_Timeout (Inherited)
Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)
Gtk.Application.Action_Added (Inherited)
Gtk.Application.Action_Enabled_Changed (Inherited)
Gtk.Application.Action_Removed (Inherited)
Gtk.Application.Action_State_Changed (Inherited)
Gtk.Application.Activate_Action (Inherited)
Gtk.Application.Add_Accelerator (Inherited)
Gtk.Application.Add_Action (Inherited)
Gtk.Application.Add_Action_Entries (Inherited)
Gtk.Application.Add_Window (Inherited)
Gtk.Application.Change_Action_State (Inherited)
Gtk.Application.Get_Action_Enabled (Inherited)
Gtk.Application.Get_Action_Parameter_Type (Inherited)
Gtk.Application.Get_Action_State (Inherited)
Gtk.Application.Get_Action_State_Hint (Inherited)
Gtk.Application.Get_Action_State_Type (Inherited)
Gtk.Application.Get_Active_Window (Inherited)
Gtk.Application.Get_App_Menu (Inherited)
Gtk.Application.Get_Menubar (Inherited)
Gtk.Application.Get_Window_By_Id (Inherited)
Gtk.Application.Get_Windows (Inherited)
Gtk.Application.Has_Action (Inherited)
Gtk.Application.Inhibit (Inherited)
Gtk.Application.Is_Inhibited (Inherited)
Gtk.Application.List_Actions (Inherited)
Gtk.Application.Lookup_Action (Inherited)
Gtk.Application.On_Window_Added (Inherited)
Gtk.Application.On_Window_Added (Inherited)
Gtk.Application.On_Window_Added (Inherited)
Gtk.Application.On_Window_Added (Inherited)
Gtk.Application.On_Window_Removed (Inherited)
Gtk.Application.On_Window_Removed (Inherited)
Gtk.Application.On_Window_Removed (Inherited)
Gtk.Application.On_Window_Removed (Inherited)
Gtk.Application.Query_Action (Inherited)
Gtk.Application.Remove_Accelerator (Inherited)
Gtk.Application.Remove_Action (Inherited)
Gtk.Application.Remove_Window (Inherited)
Gtk.Application.Set_App_Menu (Inherited)
Gtk.Application.Set_Menubar (Inherited)
Gtk.Application.Uninhibit (Inherited)

Types

Gtkada_Application

type Gtkada_Application is access all Gtkada_Application_Record'Class;

Gtkada_Application_Flags

type Gtkada_Application_Flags is mod 2 ** Integer'Size;

GFile

type GFile is private;

GFile_Array

type GFile_Array is array (Positive range <>) of GFile;

Cb_Gtkada_Application_Files

type Cb_Gtkada_Application_Files is access procedure
     (Application : Gtkada_Application;
      Files       : GFile_Array);

Constants & Global variables

Gtkada_Application_Flags_None (Gtkada_Application_Flags)

Gtkada_Application_Flags_None     : constant Gtkada_Application_Flags := 0;

Gtkada_Application_Handles_Open (Gtkada_Application_Flags)

Gtkada_Application_Handles_Open   : constant Gtkada_Application_Flags := 1;

Gtkada_Application_OSX_FullScreen (Gtkada_Application_Flags)

Gtkada_Application_OSX_FullScreen : constant Gtkada_Application_Flags := 2;

Subprograms & Entries

Gtk_New

procedure Gtk_New 
(Self: out Gtkada_Application;
Application_Id: UTF8_String := "";
Flags: Glib.Application.GApplication_Flags;
Gtkada_Flags: Gtkada_Application_Flags);

Initialize

procedure Initialize 
(Self: not null access Gtkada_Application_Record'Class;
Application_Id: UTF8_String := "";
Flags: Glib.Application.GApplication_Flags;
Gtkada_Flags: Gtkada_Application_Flags);

Gtk_Application_New

function Gtk_Application_New 
(Application_Id: UTF8_String := "";
Flags: Glib.Application.GApplication_Flags;
Gtkada_Flags: Gtkada_Application_Flags) return Gtkada_Application;

Get_Path

function Get_Path 
(File: GFile) return UTF8_String;

On_Open

procedure On_Open 
(Self: not null access Gtkada_Application_Record;
Call: Cb_Gtkada_Application_Files);