Maemomm Reference Documentation: hildon-fmmm
Main Page   Namespaces   Book  

Hildon::FileSelection Class Reference
[WidgetsFileSystem]

Inheritance diagram for Hildon::FileSelection:

Inheritance graph
[legend]

List of all members.


Detailed Description

A file tree widget.

Public Member Functions

void clear_multi_selection ()
 Otherwise similar to unselect_all, but keeps the node with cursor selected.
void dim_current_selection ()
 Appends currently selected paths to set of dimmed paths.
 FileSelection (const Glib::RefPtr<FileSystemModel>& model)
FileSelectionPane get_active_pane () const
 Gets the pane that either has active focus or (in case of no pane has it) last time had it.
bool get_column_headers_visible () const
Gtk::TreeModel::iterator get_current_folder_iter ()
 Retrieves an iterator to match the currently selected item in the navigation pane.
Glib::ustring get_current_folder_uri () const
const Gtk::FileFilterget_filter () const
 Get currently active filter set by set_filter.
Gtk::FileFilterget_filter ()
 Get currently active filter set by set_filter.
FileSelectionMode get_mode () const
 Gets Current view mode for file selection widget.
bool get_select_multiple () const
 Gets state of multiple selection.
Glib::SListHandle<Glib::ustringget_selected_uris () const
FileSelectionSortKey get_sort_key () const
 Currently active sort settings are stored to user provided pointers.
Gtk::SortType get_sort_order () const
const HildonFileSelection* gobj () const
 Provides access to the underlying C GtkObject.
HildonFileSelection* gobj ()
 Provides access to the underlying C GtkObject.
void hide_content_pane ()
 Hides the content pane.
void hide_navigation_pane ()
void move_cursor_to_uri (const Glib::ustring& uri)
void select_all ()
 Selects all files from the content pane.
bool select_uri (const std::string& uri, std::auto_ptr<Glib::Error>& error)
void set_column_headers_visible (bool visible=true)
void set_current_folder_iter (const Gtk::TreeModel::iterator& iter)
bool set_current_folder_uri (const std::string& folder, std::auto_ptr<Glib::Error>& error)
void set_filter (const Gtk::FileFilter& filter)
 Only the files matching the filter will be displayed in content pane.
void set_mode (FileSelectionMode mode)
 Swithces file selection between list and thumbnail modes.
void set_select_multiple (bool select_multiple=true)
 If multiple selection is enabled, checkboxes will appear to the last item to the content pane.
void set_sort_key (FileSelectionSortKey key, Gtk::SortType order)
 Changes sort settings for views.
void show_content_pane ()
 Shows the content pane.
Glib::SignalProxy0<void> signal_content_pane_context_menu ()
Glib::SignalProxy0<void> signal_current_folder_changed ()
Glib::SignalProxy0<void> signal_file_activated ()
Glib::SignalProxy0<void> signal_folder_activated ()
Glib::SignalProxy1< void,
const Gtk::TreeModel::iterator& > 
signal_location_insensitive ()
Glib::SignalProxy0<void> signal_navigation_pane_context_menu ()
Glib::SignalProxy0<void> signal_selection_changed ()
Glib::SignalProxy2< void,
const Glib::ustring &, const
Glib::SListHandle
<Glib::ustring >&> 
signal_uris_dropped ()
void undim_all ()
 Undims all from model that are dimmed by code.
void unselect_all ()
 Clears current selection from content pane.
void unselect_uri (const std::string& uri)
virtual ~FileSelection ()

Related Functions

(Note that these are not member functions.)

Hildon::FileSelectionwrap (HildonFileSelection* object, bool take_copy=false)
 A Glib::wrap() method for this object.

Constructor & Destructor Documentation

virtual Hildon::FileSelection::~FileSelection (  )  [virtual]

Hildon::FileSelection::FileSelection ( const Glib::RefPtr<FileSystemModel>&  model  )  [explicit]


Member Function Documentation

void Hildon::FileSelection::clear_multi_selection (  ) 

Otherwise similar to unselect_all, but keeps the node with cursor selected.

Thus, this function don't have any efect in single selection mode.

void Hildon::FileSelection::dim_current_selection (  ) 

Appends currently selected paths to set of dimmed paths.

Note that dimmed paths cannot be selected, so selection no longer contains the same paths after this function.

FileSelectionPane Hildon::FileSelection::get_active_pane (  )  const

Gets the pane that either has active focus or (in case of no pane has it) last time had it.

Returns:
Currently active pane.

bool Hildon::FileSelection::get_column_headers_visible (  )  const

Gtk::TreeModel::iterator Hildon::FileSelection::get_current_folder_iter (  ) 

Retrieves an iterator to match the currently selected item in the navigation pane.

Internally this gets the selection from the tree and then the current iterator from the selection and converts the result accordingly.

Returns:
A valid iterator, if the given iterator is set, or an invalid iterator if none is set.

Glib::ustring Hildon::FileSelection::get_current_folder_uri (  )  const

const Gtk::FileFilter* Hildon::FileSelection::get_filter (  )  const

Get currently active filter set by set_filter.

Can be 0 if no filter is set.

Returns:
A Gtk::FileFilter or 0.

Gtk::FileFilter* Hildon::FileSelection::get_filter (  ) 

Get currently active filter set by set_filter.

Can be 0 if no filter is set.

Returns:
A Gtk::FileFilter or 0.

FileSelectionMode Hildon::FileSelection::get_mode (  )  const

Gets Current view mode for file selection widget.

If widget is not shown this will return an invalid mode (-1). This is because of Gtk::Notebook implementation.

Returns:
Current view mode.

bool Hildon::FileSelection::get_select_multiple (  )  const

Gets state of multiple selection.

Returns:
true If multiple selection is currently enabled.

Glib::SListHandle<Glib::ustring> Hildon::FileSelection::get_selected_uris (  )  const

FileSelectionSortKey Hildon::FileSelection::get_sort_key (  )  const

Currently active sort settings are stored to user provided pointers.

Parameters:
key A place to store sort key.
order A place to store sort order.

Gtk::SortType Hildon::FileSelection::get_sort_order (  )  const

const HildonFileSelection* Hildon::FileSelection::gobj (  )  const [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Container.

References Glib::ValueBase::gobject_.

HildonFileSelection* Hildon::FileSelection::gobj (  )  [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Container.

References Glib::ValueBase::gobject_.

void Hildon::FileSelection::hide_content_pane (  ) 

Hides the content pane.

This is used in certain file management dialogs.

void Hildon::FileSelection::hide_navigation_pane (  ) 

void Hildon::FileSelection::move_cursor_to_uri ( const Glib::ustring uri  ) 

void Hildon::FileSelection::select_all (  ) 

Selects all files from the content pane.

Multiple selection must be enabled before calling this.

bool Hildon::FileSelection::select_uri ( const std::string &  uri,
std::auto_ptr< Glib::Error > &  error 
)

void Hildon::FileSelection::set_column_headers_visible ( bool  visible = true  ) 

void Hildon::FileSelection::set_current_folder_iter ( const Gtk::TreeModel::iterator iter  ) 

bool Hildon::FileSelection::set_current_folder_uri ( const std::string &  folder,
std::auto_ptr< Glib::Error > &  error 
)

void Hildon::FileSelection::set_filter ( const Gtk::FileFilter filter  ) 

Only the files matching the filter will be displayed in content pane.

Use 0 to remove filtering.

Parameters:
filter A new Gtk::FileFilter.

void Hildon::FileSelection::set_mode ( FileSelectionMode  mode  ) 

Swithces file selection between list and thumbnail modes.

Note that this function works only after widget is shown because of Gtk::Notebook implementation.

Parameters:
mode New mode for current folder.

void Hildon::FileSelection::set_select_multiple ( bool  select_multiple = true  ) 

If multiple selection is enabled, checkboxes will appear to the last item to the content pane.

Multiple selection must be enabled if one wants to call select_all.

Parameters:
select_multiple Either true or false.

void Hildon::FileSelection::set_sort_key ( FileSelectionSortKey  key,
Gtk::SortType  order 
)

Changes sort settings for views.

Key only affects content page, navigation pane is always sorted by name.

Parameters:
key New sort key.
order New sort order.

void Hildon::FileSelection::show_content_pane (  ) 

Shows the content pane.

This is used in certain file management dialogs. The content pane is shown by default. Calling this is needed only if you have hidden

Glib::SignalProxy0< void > Hildon::FileSelection::signal_content_pane_context_menu (  ) 

Prototype:
void on_my_content_pane_context_menu()

Glib::SignalProxy0< void > Hildon::FileSelection::signal_current_folder_changed (  ) 

Prototype:
void on_my_current_folder_changed()

Glib::SignalProxy0< void > Hildon::FileSelection::signal_file_activated (  ) 

Prototype:
void on_my_file_activated()

Glib::SignalProxy0< void > Hildon::FileSelection::signal_folder_activated (  ) 

Prototype:
void on_my_folder_activated()

Glib::SignalProxy1< void,const Gtk::TreeModel::iterator& > Hildon::FileSelection::signal_location_insensitive (  ) 

Prototype:
void on_my_location_insensitive(const Gtk::TreeModel::iterator& iter)

Glib::SignalProxy0< void > Hildon::FileSelection::signal_navigation_pane_context_menu (  ) 

Prototype:
void on_my_navigation_pane_context_menu()

Glib::SignalProxy0< void > Hildon::FileSelection::signal_selection_changed (  ) 

Prototype:
void on_my_selection_changed()

Glib::SignalProxy2< void,const Glib::ustring&,const Glib::SListHandle<Glib::ustring>& > Hildon::FileSelection::signal_uris_dropped (  ) 

Prototype:
void on_my_uris_dropped(const Glib::ustring& destination, const Glib::SListHandle<Glib::ustring>& sources)

void Hildon::FileSelection::undim_all (  ) 

Undims all from model that are dimmed by code.

Simply calls Hildon::FileSystemModel::reset_available for underlying model.

void Hildon::FileSelection::unselect_all (  ) 

Clears current selection from content pane.

void Hildon::FileSelection::unselect_uri ( const std::string &  uri  ) 


Friends And Related Function Documentation

Hildon::FileSelection* wrap ( HildonFileSelection *  object,
bool  take_copy = false 
) [related]

A Glib::wrap() method for this object.

Parameters:
object The C instance.
take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.


The documentation for this class was generated from the following file:

Generated for hildon-fmmm by Doxygen 1.5.6 © 1997-2001