AbstractMain
Object Hierarchy:
Description:
public abstract class AbstractMain : Object
The main class for all dock applications. All docks should extend this class. In the constructor, the string fields should be initialized
to customize the dock.
Content:
Constants:
Creation methods:
Methods:
- public virtual int run (ref string[] args)
Initializes the program, makes the dock and runs it.
- protected virtual void initialize_program ()
Sets the program executable's name, traps signals and intializes
logging.
- protected virtual bool parse_commandline (ref string[] args)
Parses the command-line for options, but does not set them.
- protected virtual void set_options ()
Sets options based on the parsed command-line.
- protected virtual bool initialize_libraries (ref string[] args)
Initializes most libraries used (GTK, GDK, etc).
- protected virtual void initialize_services ()
Initializes the Plank services.
- protected virtual void create_controller ()
Creates the dock controller.
- public bool is_launcher_for_dock (string launcher)
Is true if the launcher given is the launcher for this dock.
- public virtual void help ()
Displays the help page.
- public virtual void translate ()
Displays the translate page.
- public virtual void quit ()
Quits the program.
- public virtual void on_item_clicked ()
- public virtual void show_about ()
Displays the about dialog.
Signals:
Fields:
- protected string build_data_dir
Should be Build.DATADIR
- protected string build_pkg_data_dir
Should be Build.PKGDATADIR
- protected string build_release_name
Should be Build.RELEASE_NAME
- protected string build_version
Should be Build.VERSION
- protected string build_version_info
Should be Build.VERSION_INFO
- protected string program_name
The displayed name of the program.
- protected string exec_name
The executable name of the program.
- protected string app_copyright
The copyright year(s).
- protected string app_dbus
The (unique) dbus path for this program.
- protected string dock_name
The name of the path containing the dock's preferences.
- protected string app_icon
The name of this program's icon.
- public string app_launcher
The name of the launcher (.desktop file) for this program.
- protected string main_url
The URL for this program's website.
- protected string help_url
The URL for this program's help.
- protected string translate_url
The URL for translating this program.
- protected string[] about_authors
The list of authors (to show in about dialog).
- protected string[] about_documenters
The list of documenters (to show in about dialog).
- protected string[] about_artists
The list of artists (to show in about dialog).
- protected string about_translators
The list of translators (to show in about dialog).
- protected License about_license_type
The license of this program (to show in about dialog).
- protected Application application
The Application for preserving uniqueness
- protected static bool DEBUG
If debug mode is enabled.
- protected static bool VERBOSE
If verbose mode is enabled.
- protected static string DOCK_NAME
The given dock_name
- protected static AboutDialog? about_dlg
The about dialog for the program.
Inherited Members:
All known members inherited from class GLib.Object
- @new
- newv
- new_valist
- get_type
- get_class
- @ref
- unref
- ref_sink
- weak_ref
- weak_unref
- add_weak_pointer
- remove_weak_pointer
- @get
- @set
- get_property
- set_property
- get_data
- set_data
- set_data_full
- steal_data
- get_qdata
- set_qdata
- set_qdata_full
- steal_qdata
- freeze_notify
- thaw_notify
- dispose
- constructed
- notify_property
- connect
- disconnect
- add_toggle_ref
- remove_toggle_ref
- bind_property
- notify
- ref_count