Public Member Functions | |
| FileDialogView (Window *pParent, const Rect &rFrame, unsigned int uiFileDialogMode) | |
| ~FileDialogView () | |
| Point | GetSizeHint (enumSizeHint nSizeHint) |
| void | OnCommand (const MessageCommand *pMessage) |
| void | BrowseFileSelected (FileReference *pFileReference, const InputEvent &nInputEvent) |
| void | QueryFileSelected (FileReference *pFileReference, const InputEvent &nInputEvent) |
| void | UpdatePath (const String &szPath, bool bSet) |
| void | PathChanged () |
| void | PathConfirm () |
| void | QueryStringChanged () |
| void | SetDirectory (const String &szDirectory) |
| String | GetDirectory () |
| virtual void | OnCancel () |
| virtual void | OnAction () |
| void | SetQueryString (const String &szQueryString) |
| void | ConfirmQuery (FileReference *pFileReference, const InputEvent &nInputEvent, bool bOpenWith) |
| void | ConfirmBrowse (FileReference *pFileReference, const InputEvent &nInputEvent, bool bOpenWith) |
| String | GetFile () |
| std::vector< String > | GetFiles () |
| void | OnDirectoryChanged (const String &szDirectory) |
| void | OnNewFolder () |
| void | OnHome () |
| void | OnFolderUp () |
| void | PathSelected (const String &szPath, const InputEvent &nInputEvent) |
| void | QuerySelected (const String &szName, const String &szQuery, const InputEvent &nInputEvent) |
| void | OnTimer (int iTimerID, void *vpCookie) |
| void | OnQueryMenuClicked (const InputEvent &nInputEvent) |
| void | OnSavedQuerySelected (const InputEvent &nInputEvent, MenuItem *pMenuItem) |
| void | OnQueryCategorySelected (const InputEvent &nInputEvent, MenuItem *pMenuItem) |
| void | OnQueryConstruct (const InputEvent &nInputEvent, MenuItem *pMenuItem) |
| void | ExpandQueryView (bool bExpand) |
| void | ExpandBrowseView (bool bExpand) |
| bool | QueryViewExpanded () |
| bool | BrowseViewExpanded () |
| bool | SetConfiguration (DataCollection *pDataCollection) |
| bool | GetConfiguration (DataCollection *pDataCollection) |
Classes | |
| class | Private |
| FileDialogView::FileDialogView | ( | Window * | pParent, | |
| const Rect & | rFrame, | |||
| unsigned int | uiFileDialogMode | |||
| ) |
| FileDialogView::~FileDialogView | ( | ) |
| Point FileDialogView::GetSizeHint | ( | enumSizeHint | nSizeHint | ) | [virtual] |
Get size hint
Reimplemented from SkyGI::Window.
| void FileDialogView::OnCommand | ( | const MessageCommand * | pMessage | ) | [virtual] |
Called when a command occured
Reimplemented from SkyGI::Window.
| void FileDialogView::BrowseFileSelected | ( | FileReference * | pFileReference, | |
| const InputEvent & | nInputEvent | |||
| ) |
| void FileDialogView::QueryFileSelected | ( | FileReference * | pFileReference, | |
| const InputEvent & | nInputEvent | |||
| ) |
| void FileDialogView::UpdatePath | ( | const String & | szPath, | |
| bool | bSet | |||
| ) |
| void FileDialogView::PathChanged | ( | ) |
| void FileDialogView::PathConfirm | ( | ) |
| void FileDialogView::QueryStringChanged | ( | ) |
| void FileDialogView::SetDirectory | ( | const String & | szDirectory | ) |
| String FileDialogView::GetDirectory | ( | ) |
| void FileDialogView::OnCancel | ( | ) | [virtual] |
| void FileDialogView::OnAction | ( | ) | [virtual] |
| void FileDialogView::SetQueryString | ( | const String & | szQueryString | ) |
| void FileDialogView::ConfirmQuery | ( | FileReference * | pFileReference, | |
| const InputEvent & | nInputEvent, | |||
| bool | bOpenWith | |||
| ) |
| void FileDialogView::ConfirmBrowse | ( | FileReference * | pFileReference, | |
| const InputEvent & | nInputEvent, | |||
| bool | bOpenWith | |||
| ) |
| String FileDialogView::GetFile | ( | ) |
| std::vector< String > FileDialogView::GetFiles | ( | ) |
| void FileDialogView::OnDirectoryChanged | ( | const String & | szDirectory | ) |
| void FileDialogView::OnNewFolder | ( | ) |
| void FileDialogView::OnHome | ( | ) |
| void FileDialogView::OnFolderUp | ( | ) |
| void FileDialogView::PathSelected | ( | const String & | szPath, | |
| const InputEvent & | nInputEvent | |||
| ) |
| void FileDialogView::QuerySelected | ( | const String & | szName, | |
| const String & | szQuery, | |||
| const InputEvent & | nInputEvent | |||
| ) |
| void FileDialogView::OnTimer | ( | int | iTimerID, | |
| void * | vpCookie | |||
| ) | [virtual] |
Reimplemented from SkyGI::Window.
| void FileDialogView::OnQueryMenuClicked | ( | const InputEvent & | nInputEvent | ) |
| void FileDialogView::OnSavedQuerySelected | ( | const InputEvent & | nInputEvent, | |
| MenuItem * | pMenuItem | |||
| ) |
| void FileDialogView::OnQueryCategorySelected | ( | const InputEvent & | nInputEvent, | |
| MenuItem * | pMenuItem | |||
| ) |
| void FileDialogView::OnQueryConstruct | ( | const InputEvent & | nInputEvent, | |
| MenuItem * | pMenuItem | |||
| ) |
| void FileDialogView::ExpandQueryView | ( | bool | bExpand | ) |
| void FileDialogView::ExpandBrowseView | ( | bool | bExpand | ) |
| bool FileDialogView::QueryViewExpanded | ( | ) |
| bool FileDialogView::BrowseViewExpanded | ( | ) |
| bool FileDialogView::SetConfiguration | ( | DataCollection * | pDataCollection | ) |
Set configuration from file
...
...
DataCollection pDataCollection;
FileDialog pDialog(FILEDIALOG_MODE_OPEN);
if (pDataCollection.Load("Vendor", "ApplicationName", "OpenDialogSettings", 0) == true)
pDialog.GetView()->SetConfiguration(&pDataCollection);
else
{
pDialog.GetView()->ExpandQueryView(false);
pDialog.GetView()->SetQueryString("*.txt");
pDialog.GetView()->SetDirectory("/boot/home/admin");
}
if (pDialog.Run(true) == ID_OK)
{
pDataCollection.Clear();
pDialog.GetView()->GetConfiguration(&pDataCollection);
pDataCollection.Write("Vendor", "Application", "OpenDialogSettings", 0);
}
| bool FileDialogView::GetConfiguration | ( | DataCollection * | pDataCollection | ) |
Get configuration to serialize to file
...
...
DataCollection pDataCollection;
FileDialog pDialog(FILEDIALOG_MODE_OPEN);
if (pDataCollection.Load("Vendor", "ApplicationName", "OpenDialogSettings", 0) == true)
pDialog.GetView()->SetConfiguration(&pDataCollection);
else
{
pDialog.GetView()->ExpandQueryView(false);
pDialog.GetView()->SetQueryString("*.txt");
pDialog.GetView()->SetDirectory("/boot/home/admin");
}
if (pDialog.Run(true) == ID_OK)
{
pDataCollection.Clear();
pDialog.GetView()->GetConfiguration(&pDataCollection);
pDataCollection.Write("Vendor", "Application", "OpenDialogSettings", 0);
}
1.5.1-p1