Plugin System

Thunar’s plugin system is currently not well defined, and may not even appear in version 1.0. However, we can get a general idea at this point as to what interfaces can be implemented as plugins:

An attempt will be made to provide bindings for several different languages. Much care must be taken when creating Thunar plugins in C, because of the need to use GObject’s dynamic type registration, rather than the static registration that is used in the majority of cases.

ThunarView

The ThunarView interface, with its default implementation, provides a right-pane view of a directory. At minimum, Thunar will ship with an icon view and a details/list view. Plugins could provide a view for other types of content, for example:

  • Thumbnails of directories full of images.
  • A column view, similar to that used by the NeXT file manager or the Mac OS X Finder.

ThunarSidePane

Thunar will ship with a shortcut side pane (similar to the sidepane shown in GtkFileChooser) and a treeview side pane. Plugins could implement a variety of side panes, such as:

  • A search sidebar.
  • A file info sidebar.

ThunarLocationBar

The ThunarLocationBar interface provides a means to extend or reimplement Thunar’s location bar. FIXME This needs a bit more explanation.

ThunarFile

The ThunarFile interface is an abstraction over a file, or an object that can be represented as a file.

ThunarFolder

The ThunarFolder interface is an abstraction over a folder (directory), or an object that can be represented as a folder.

 
  design/plugin-system.txt · Last modified: 2005/07/02 12:46 by 24.6.245.55 (brian)
 
Recent changes RSS feed Creative Commons License Driven by DokuWiki