|
libcrn
3.9.5
A document image processing library
|
A widget that displays the files in a directory and allows to select one. More...
#include <GtkCRNFileSelecter.h>
Inheritance diagram for GtkCRN::FileSelecter:
Collaboration diagram for GtkCRN::FileSelecter:Public Member Functions | |
| FileSelecter (const crn::Path &p) | |
| Constructor. More... | |
| virtual | ~FileSelecter () override |
| void | set_path (const crn::Path &p) |
| Sets the path of the directory to display. More... | |
| const crn::Path & | get_path () const |
| Gets the path of the displayed directory. More... | |
| bool | set_selection (const crn::Path &p) |
| Sets the selected file. More... | |
| crn::Path | get_selection () const |
| Gets the selected file. More... | |
| sigc::signal< void, crn::Path > | signal_selection_changed () |
| Signals when a file was selected. Connect to void on_new_file_selected(crn::Path relative_filename) More... | |
| sigc::signal< void, crn::Path > | signal_selection_activated () |
| Signals when a file was double clicked. Connect to void on_double_click(crn::Path relative_filename) More... | |
A widget that displays the files in a directory and allows to select one.
A widget that displays the files in a directory and allows to select one.
Definition at line 36 of file GtkCRNFileSelecter.h.
| FileSelecter::FileSelecter | ( | const crn::Path & | p | ) |
Constructor.
Constructor
| [in] | p | the path to the directory to display |
Definition at line 33 of file GtkCRNFileSelecter.cpp.
|
inlineoverridevirtual |
Definition at line 41 of file GtkCRNFileSelecter.h.
|
inline |
Gets the path of the displayed directory.
Definition at line 46 of file GtkCRNFileSelecter.h.
| crn::Path FileSelecter::get_selection | ( | ) | const |
Gets the selected file.
Gets the selected file
Definition at line 87 of file GtkCRNFileSelecter.cpp.
| void FileSelecter::set_path | ( | const crn::Path & | p | ) |
Sets the path of the directory to display.
Sets the path of the directory to display
| [in] | p | the path to the directory to display |
Definition at line 60 of file GtkCRNFileSelecter.cpp.
| bool FileSelecter::set_selection | ( | const crn::Path & | p | ) |
Sets the selected file.
Sets the selected file
| p | the (relative) filename to select |
Definition at line 71 of file GtkCRNFileSelecter.cpp.
|
inline |
Signals when a file was double clicked. Connect to void on_double_click(crn::Path relative_filename)
Definition at line 56 of file GtkCRNFileSelecter.h.
|
inline |
Signals when a file was selected. Connect to void on_new_file_selected(crn::Path relative_filename)
Definition at line 54 of file GtkCRNFileSelecter.h.
1.8.6