SkyGI::FileDialogView Class Reference

Inheritance diagram for SkyGI::FileDialogView:
[legend]
Collaboration diagram for SkyGI::FileDialogView:
[legend]
List of all members.

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< StringGetFiles ()
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

Constructor & Destructor Documentation

FileDialogView::FileDialogView ( Window pParent,
const Rect rFrame,
unsigned int  uiFileDialogMode 
)

FileDialogView::~FileDialogView (  ) 


Member Function Documentation

Point FileDialogView::GetSizeHint ( enumSizeHint  nSizeHint  )  [virtual]

Get size hint

Description:
Overload this member function for derived classes to inform the GUI about size hints for your widget.
SIZE_HINT_PREFERRED
Return the preferred size of the widget (may depend on the actual content)
SIZE_HINT_MINIMUM
Return the minimum size the widget needs to display a proper content
Note:
If you want to get the minimum or preferred size of a window always use GetMinimumSize or GetPreferredSize. Don't call GetSizeHint directly
See also:
GetPreferredSize, GetMinimumSize, SetMinimumSize

Reimplemented from SkyGI::Window.

void FileDialogView::OnCommand ( const MessageCommand pMessage  )  [virtual]

Called when a command occured

Description:
Gets called whenever a window for which this window is the target post a command. For instance, when you press a Button the virtual Button::OnClicked method gets called. If not overloaded this OnClicked function will post a MSG_COMMAND to buttons window target. This message will then be processed by the target window which calls this OnCommand method.

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

Description:
Sets the desired configuration like status of views, current query string, current directory, etc., from the provided DataCollection. This function can be used to serialize and load the last used user set configuration.
  ...
  ...
        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

Description:
Gets the current configuration like status of views, current query string, current directory, etc., and stores it in the provided DataCollection. This function can be used to serialize and load the last used user set configuration.
  ...
  ...
        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);

        }


Generated on Thu Dec 13 18:14:23 2007 for SkyGI by  doxygen 1.5.1-p1