|
Graphics.UI.Gtk.Windows.AboutDialog | Portability | portable (depends on GHC) | Stability | provisional | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
|
|
Description |
Display information about an application
- Module available since Gtk+ version 2.6
|
|
Synopsis |
|
|
|
|
Detail
|
|
The AboutDialog offers a simple way to display information about a
program like its logo, name, copyright, website and license. It is also
possible to give credits to the authors, documenters, translators and
artists who have worked on the program. An about dialog is typically opened
when the user selects the About option from the Help menu. All parts of
the dialog are optional.
About dialog often contain links and email addresses. AboutDialog
supports this by offering global hooks, which are called when the user
clicks on a link or email address, see aboutDialogSetEmailHook and
aboutDialogSetUrlHook. Email addresses in the authors, documenters and
artists properties are recognized by looking for <user@host>, URLs are
recognized by looking for http://url, with url extending to the next
space, tab or line break.
|
|
Class Hierarchy
|
|
| GObject
| +----Object
| +----Widget
| +----Container
| +----Bin
| +----Window
| +----Dialog
| +----AboutDialog
|
|
Types
|
|
data AboutDialog |
Instances | |
|
|
class DialogClass o => AboutDialogClass o |
| Instances | |
|
|
castToAboutDialog :: GObjectClass obj => obj -> AboutDialog |
|
Constructors
|
|
aboutDialogNew :: IO AboutDialog |
Creates a new AboutDialog.
|
|
Methods
|
|
aboutDialogGetName |
:: AboutDialogClass self | | => self | | -> IO String | returns The program name.
| Returns the program name displayed in the about dialog.
|
|
|
aboutDialogSetName |
:: AboutDialogClass self | | => self | | -> String | name - the program name
| -> IO () | | Sets the name to display in the about dialog. If this is not set, it
defaults to the program executable name.
|
|
|
aboutDialogGetVersion :: AboutDialogClass self => self -> IO String |
Returns the version string.
|
|
aboutDialogSetVersion :: AboutDialogClass self => self -> String -> IO () |
Sets the version string to display in the about dialog.
|
|
aboutDialogGetCopyright :: AboutDialogClass self => self -> IO String |
Returns the copyright string.
|
|
aboutDialogSetCopyright :: AboutDialogClass self => self -> String -> IO () |
Sets the copyright string to display in the about dialog. This should be
a short string of one or two lines.
|
|
aboutDialogGetComments :: AboutDialogClass self => self -> IO String |
Returns the comments string.
|
|
aboutDialogSetComments :: AboutDialogClass self => self -> String -> IO () |
Sets the comments string to display in the about dialog. This should be a
short string of one or two lines.
|
|
aboutDialogGetLicense :: AboutDialogClass self => self -> IO (Maybe String) |
Returns the license information.
|
|
aboutDialogSetLicense |
:: AboutDialogClass self | | => self | | -> Maybe String | license - the license information or Nothing
| -> IO () | | Sets the license information to be displayed in the secondary license
dialog. If license is Nothing, the license button is hidden.
|
|
|
aboutDialogGetWebsite :: AboutDialogClass self => self -> IO String |
Returns the website URL.
|
|
aboutDialogSetWebsite |
:: AboutDialogClass self | | => self | | -> String | website - a URL string starting with "http://"
| -> IO () | | Sets the URL to use for the website link.
|
|
|
aboutDialogGetWebsiteLabel :: AboutDialogClass self => self -> IO String |
Returns the label used for the website link.
|
|
aboutDialogSetWebsiteLabel :: AboutDialogClass self => self -> String -> IO () |
Sets the label to be used for the website link. It defaults to the
website URL.
|
|
aboutDialogSetAuthors |
:: AboutDialogClass self | | => self | | -> [String] | authors - a list of author names
| -> IO () | | Sets the strings which are displayed in the authors tab of the secondary
credits dialog.
|
|
|
aboutDialogGetAuthors :: AboutDialogClass self => self -> IO [String] |
Returns the string which are displayed in the authors tab of the
secondary credits dialog.
|
|
aboutDialogSetArtists |
:: AboutDialogClass self | | => self | | -> [String] | artists - a list of artist names
| -> IO () | | Sets the strings which are displayed in the artists tab of the secondary
credits dialog.
|
|
|
aboutDialogGetArtists :: AboutDialogClass self => self -> IO [String] |
Returns the string which are displayed in the artists tab of the
secondary credits dialog.
|
|
aboutDialogSetDocumenters |
:: AboutDialogClass self | | => self | | -> [String] | artists - a list of documenter names
| -> IO () | | Sets the strings which are displayed in the documenters tab of the
secondary credits dialog.
|
|
|
aboutDialogGetDocumenters :: AboutDialogClass self => self -> IO [String] |
Returns the string which are displayed in the documenters tab of the
secondary credits dialog.
|
|
aboutDialogGetTranslatorCredits :: AboutDialogClass self => self -> IO String |
Returns the translator credits string which is displayed in the
translators tab of the secondary credits dialog.
|
|
aboutDialogSetTranslatorCredits :: AboutDialogClass self => self -> String -> IO () |
Sets the translator credits string which is displayed in the translators
tab of the secondary credits dialog.
The intended use for this string is to display the translator of the
language which is currently used in the user interface.
|
|
aboutDialogGetLogo :: AboutDialogClass self => self -> IO Pixbuf |
Returns the pixbuf displayed as logo in the about dialog.
|
|
aboutDialogSetLogo |
:: AboutDialogClass self | | => self | | -> Maybe Pixbuf | logo - a Pixbuf, or Nothing
| -> IO () | | Sets the pixbuf to be displayed as logo in the about dialog. If it is
Nothing, the default window icon set with windowSetDefaultIcon will be
used.
|
|
|
aboutDialogGetLogoIconName :: AboutDialogClass self => self -> IO String |
Returns the icon name displayed as logo in the about dialog.
|
|
aboutDialogSetLogoIconName |
:: AboutDialogClass self | | => self | | -> Maybe String | iconName - an icon name, or Nothing
| -> IO () | | Sets the pixbuf to be displayed as logo in the about dialog. If it is
Nothing, the default window icon set with windowSetDefaultIcon will be
used.
|
|
|
aboutDialogSetEmailHook |
:: (String -> IO ()) | (url -> ...) - a function to call when an email
link is activated.
| -> IO () | | Installs a global function to be called whenever the user activates an
email link in an about dialog.
|
|
|
aboutDialogSetUrlHook |
:: (String -> IO ()) | (url -> ...) - a function to call when a URL link
is activated.
| -> IO () | | Installs a global function to be called whenever the user activates a URL
link in an about dialog.
|
|
|
Attributes
|
|
aboutDialogName :: AboutDialogClass self => Attr self String |
The name of the program. If this is not set, it defaults to
gGetApplicationName.
|
|
aboutDialogVersion :: AboutDialogClass self => Attr self String |
The version of the program.
|
|
aboutDialogCopyright :: AboutDialogClass self => Attr self String |
Copyright information for the program.
|
|
aboutDialogComments :: AboutDialogClass self => Attr self String |
Comments about the program. This string is displayed in a label in the
main dialog, thus it should be a short explanation of the main purpose of
the program, not a detailed list of features.
|
|
aboutDialogLicense :: AboutDialogClass self => Attr self (Maybe String) |
The license of the program. This string is displayed in a text view in a
secondary dialog, therefore it is fine to use a long multi-paragraph text.
Note that the text is not wrapped in the text view, thus it must contain the
intended linebreaks.
Default value: Nothing
|
|
aboutDialogWebsite :: AboutDialogClass self => Attr self String |
The URL for the link to the website of the program. This should be a
string starting with "http://.
|
|
aboutDialogWebsiteLabel :: AboutDialogClass self => Attr self String |
The label for the link to the website of the program. If this is not set,
it defaults to the URL specified in the website property.
|
|
aboutDialogAuthors :: AboutDialogClass self => Attr self [String] |
The authors of the program. Each string may
contain email addresses and URLs, which will be displayed as links, see the
introduction for more details.
|
|
aboutDialogDocumenters :: AboutDialogClass self => Attr self [String] |
The people documenting the program.
Each string may contain email addresses and URLs, which will be displayed as
links, see the introduction for more details.
|
|
aboutDialogArtists :: AboutDialogClass self => Attr self [String] |
The people who contributed artwork to the program.
Each string may contain email addresses and URLs, which will be
displayed as links, see the introduction for more details.
|
|
aboutDialogTranslatorCredits :: AboutDialogClass self => Attr self String |
Credits to the translators. This string should be marked as translatable.
The string may contain email addresses and URLs, which will be displayed as
links, see the introduction for more details.
|
|
aboutDialogLogo :: AboutDialogClass self => ReadWriteAttr self Pixbuf (Maybe Pixbuf) |
A logo for the about box. If this is not set, it defaults to
windowGetDefaultIconList.
|
|
aboutDialogLogoIconName :: AboutDialogClass self => ReadWriteAttr self String (Maybe String) |
A named icon to use as the logo for the about box. This property
overrides the logo property.
Default value: Nothing
|
|
Produced by Haddock version 0.7 |