Difference between revisions of "Dialog"

From Inkscape Wiki
Jump to navigation Jump to search
(Created page with "By extension, a '''dialog''' in Inkscape vocabulary is any type of window, i.e. a set of widgets with an OS decoration, a title... == Location == All dialogs are in [http://...")
 
 
Line 7: Line 7:
== Listing ==
== Listing ==


* [[About Dialog]]: The ''About Inkscape'' dialog
* [[About Dialog]]
* [[Align and Distribute Dialog]]: The ''Align and distribute'' dialog
* [[Align and Distribute Dialog]]
* [[Class Inkscape::UI::Dialog::Behavior::Behavior]]
* [[Class Inkscape::UI::Dialog::Behavior::Behavior]]
* [[Class Inkscape::UI::Dialog::Behavior::DockBehavior]]
* [[Class Inkscape::UI::Dialog::Behavior::DockBehavior]]
Line 15: Line 15:
* [[Close Dialog]]
* [[Close Dialog]]
* [[Class Inkscape::UI::Dialog::ColorItem]]
* [[Class Inkscape::UI::Dialog::ColorItem]]
* [[Class Inkscape::UI::Dialog::DebugDialog]]
* [[Debug Dialog]]
* [[Class Inkscape::UI::Dialog::DesktopTracker]]
* [[Class Inkscape::UI::Dialog::DesktopTracker]]
* [[Class Inkscape::UI::Dialog::Dialog]]
* [[Class Inkscape::UI::Dialog::Dialog]]
* [[Class Inkscape::UI::Dialog::DialogManager]]
* [[Class Inkscape::UI::Dialog::DialogManager]]
* [[Class Inkscape::UI::Dialog::DocumentMetadata]]: The ''Document metadatas'' dialog
* [[Document Metadatas Dialog]]
** [[Andrews Big Dialog Re-Design/Document Metadata]]
** [[Andrews Big Dialog Re-Design/Document Metadata]]
* [[Class Inkscape::UI::Dialog::DocumentProperties]]: The ''Document properties'' dialog
* [[Document Properties Dialog]]
* [[Class Inkscape::UI::Dialog::ExtensionEditor]]
* [[Class Inkscape::UI::Dialog::ExtensionEditor]]
* [[Class Inkscape::UI::Dialog::ExtensionPanel]]
* [[Class Inkscape::UI::Dialog::ExtensionPanel]]
Line 49: Line 49:
* [[Image Properties Dialog]]
* [[Image Properties Dialog]]
** [[Image properties dialog enhancements]]
** [[Image properties dialog enhancements]]
* [[Class Inkscape::UI::Dialog::InkscapePreferences]]: The ''Inkscape preferences'' dialog
* [[Inkscape Preferences Dialog]]
* [[Class Inkscape::UI::Dialog::InputDialog]]
* [[Class Inkscape::UI::Dialog::InputDialog]]
* [[Layer Dialog]]
* [[Layer Dialog]]
* [[Class Inkscape::UI::Dialog::LayerPropertiesDialog]]: The ''Layer properties'' dialog
* [[Layer Properties Dialog]]
* [[Class Inkscape::UI::Dialog::LayersPanel]]
* [[Class Inkscape::UI::Dialog::LayersPanel]]
* [[Class Inkscape::UI::Dialog::LivePathEffectEditor]]
* [[Class Inkscape::UI::Dialog::LivePathEffectEditor]]
Line 62: Line 62:
** [[Andrews Big Dialog Re-Design/OCAL]]
** [[Andrews Big Dialog Re-Design/OCAL]]
* [[Class Inkscape::UI::Dialog::PanelDialogBase]]
* [[Class Inkscape::UI::Dialog::PanelDialogBase]]
* [[Print Dialog]]: The ''Print...'' dialog
* [[Print Dialog]]
* [[Class Inkscape::UI::Dialog::PrintColorsPreviewDialog]]
* [[Class Inkscape::UI::Dialog::PrintColorsPreviewDialog]]
* [[Script Dialog]]
* [[Script Dialog]]
Line 72: Line 72:
* [[Text Dialog]]
* [[Text Dialog]]
* [[Tile Dialog]]
* [[Tile Dialog]]
* [[Class Inkscape::UI::Dialog::TraceDialog]]
* [[Trace Bitmap Dialog]]:
** [[Trace Bitmap Dialog Re-Design]]
** [[Trace Bitmap Dialog Re-Design]]
* [[Class Inkscape::UI::Dialog::Transformation]]
* [[Class Inkscape::UI::Dialog::Transformation]]
* [[Class Inkscape::UI::Dialog::UndoHistory]]: The ''Undo history'' dialog
* [[Undo History Dialog]]


Dialogs that have not yet been rewritted can be found in [http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/files/head%3A/src/dialogs src/dialogs].
Dialogs that have not yet been rewritted can be found in [http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/files/head%3A/src/dialogs src/dialogs].

Latest revision as of 11:43, 25 August 2013

By extension, a dialog in Inkscape vocabulary is any type of window, i.e. a set of widgets with an OS decoration, a title...

Location

All dialogs are in src/ui/dialog (except for old dialogs).

Listing

Dialogs that have not yet been rewritted can be found in src/dialogs.

Re-designs

Create a new dialog

Creating a new dialog requires the following steps:

  1. Create a new dialog in src/ui/dialogs (you can find inspiration from the existing dialogs).
  2. Register your dialog in src/dialogs/dialog-manager.cpp.
  3. In src/verbs.cpp, create a new verb (new DialogVerb) and associate it (DialogVerb::perform) with the dialog's registered name to perform the appropriate action. Also include your dialog's header in the verbs.cpp file.
  4. If needed, map the new verb to the preferences (SPDesktop::show_dialogs() in src/desktop.cpp).
  5. Call the dialog from the appropriate location with dt->_dlg_mgr->showDialog("mydialog"), dt being the current SPDesktop.