JX Application Framework
|
#include <JXChooseFileDialog.h>
Public Types | |
enum | SelectType { kSelectSingleFile = 0 , kSelectMultipleFiles } |
Public Member Functions | |
~JXChooseFileDialog () override | |
const JString & | GetFullName () const |
void | GetFullNames (JPtrArray< JString > *fullNameList) const |
![]() | |
~JXCSFDialogBase () override | |
void | Activate () override |
bool | Deactivate () override |
const JString & | GetPath () const |
const JString & | GetFilter () const |
bool | HiddenVisible () const |
JDirInfo * | GetDirInfo () const |
![]() | |
JXModalDialogDirector (const bool allowResizing=false) | |
~JXModalDialogDirector () override | |
JXButton * | GetOKButton () const |
JXButton * | GetCancelButton () const |
void | SetButtons (JXButton *okButton, JXButton *cancelButton) |
bool | DoDialog () |
void | EndDialog (const bool success) |
void | Activate () override |
bool | Deactivate () override |
bool | Close () override |
![]() | |
JXWindowDirector (JXDirector *supervisor) | |
~JXWindowDirector () override | |
void | Activate () override |
bool | Deactivate () override |
void | Suspend () override |
void | Resume () override |
JXWindow * | GetWindow () const |
JXDisplay * | GetDisplay () const |
virtual const JString & | GetName () const |
virtual bool | GetMenuIcon (const JXImage **icon) const |
virtual bool | NeedsSave () const |
![]() | |
JXDirector (JXDirector *supervisor) | |
~JXDirector () override | |
bool | IsClosing () const |
bool | IsActive () const |
bool | IsSuspended () const |
bool | HasSubdirectors () const |
bool | GetSubdirectors (const JPtrArray< JXDirector > **list) const |
![]() | |
JBroadcaster () | |
virtual | ~JBroadcaster () |
JBroadcaster & | operator= (const JBroadcaster &source) |
bool | HasSenders () const |
JSize | GetSenderCount () const |
bool | HasRecipients () const |
JSize | GetRecipientCount () const |
virtual JString | ToString () const |
template<class T > | |
void | ListenTo (const JBroadcaster *sender, const std::function< void(const T &)> &f) |
Static Public Member Functions | |
static JXChooseFileDialog * | Create (const SelectType type=kSelectSingleFile, const JString &selectName=JString::empty, const JString &fileFilter=JString::empty, const JString &message=JString::empty) |
![]() | |
static const JString & | GetState () |
static void | SetState (const JString &state) |
static void | ReadOldState (std::istream &input) |
static bool | IsCharacterInWord (const JUtf8Character &c) |
Protected Member Functions | |
JXChooseFileDialog (const JString &fileFilter) | |
void | SetObjects (JXScrollbarSet *scrollbarSet, JXStaticText *pathLabel, JXPathInput *pathInput, JXPathHistoryMenu *pathHistory, JXStaticText *filterLabel, JXInputField *filterInput, JXStringHistoryMenu *filterHistory, JXTextButton *openButton, JXTextButton *cancelButton, JXTextButton *upButton, JXTextButton *homeButton, JXTextButton *desktopButton, JXTextButton *selectAllButton, JXTextCheckbox *showHiddenCB, JXCurrentPathMenu *currPathMenu, const SelectType type, const JString &selectName, const JString &message) |
void | AdjustSizings () override |
void | UpdateDisplay () override |
bool | OKToDeactivate () override |
void | Receive (JBroadcaster *sender, const Message &message) override |
![]() | |
JXCSFDialogBase (const JString &fileFilter) | |
void | SetObjects (JXScrollbarSet *scrollbarSet, JXStaticText *pathLabel, JXPathInput *pathInput, JXPathHistoryMenu *pathHistory, JXStaticText *filterLabel, JXInputField *filterInput, JXStringHistoryMenu *filterHistory, JXTextButton *enterButton, JXTextButton *upButton, JXTextButton *homeButton, JXTextButton *desktopButton, JXNewDirButton *newDirButton, JXTextCheckbox *showHiddenCB, JXCurrentPathMenu *currPathMenu, const JString &message) |
JXDirTable * | GetFileBrowser () const |
JXPathInput * | GetPathInput () const |
JXInputField * | GetFilterInput () const |
JXNewDirButton * | GetNewDirButton () const |
bool | GoToItsPath () |
void | AdjustFilter () |
void | RestoreState () |
void | SaveState () const |
void | DoNotSaveCurrentPath () |
void | Receive (JBroadcaster *sender, const Message &message) override |
![]() | |
bool | OKToDeactivate () override |
bool | Cancelled () const |
void | Receive (JBroadcaster *sender, const Message &message) override |
![]() | |
JXDirector * | GetSupervisor () const |
bool | CloseAllSubdirectors () |
virtual void | DirectorClosed (JXDirector *theDirector) |
![]() | |
JBroadcaster (const JBroadcaster &source) | |
void | ListenTo (const JBroadcaster *sender) |
void | StopListening (const JBroadcaster *sender) |
void | ClearWhenGoingAway (const JBroadcaster *sender, void *pointerToMember) |
void | StopListening (const JBroadcaster *sender, const std::type_info &messageType) |
template<class T > | |
void | Send (JBroadcaster *recipient, const T &message) |
template<class T > | |
void | Broadcast (const T &message) |
void | SendWithFeedback (JBroadcaster *recipient, Message *message) |
void | BroadcastWithFeedback (Message *message) |
virtual void | ReceiveWithFeedback (JBroadcaster *sender, Message *message) |
virtual void | ReceiveGoingAway (JBroadcaster *sender) |
Interface for the JXChooseFileDialog class
Derived classes must override BuildWindow() and call SetObjects() at the end of their implementation.
|
override |
|
protected |
|
overrideprotectedvirtual |
Adjust the sizing options for the widgets in the window after the message has been installed at the top.
Reimplemented from JXCSFDialogBase.
|
static |
This allows derived classes to override BuildWindow().
const JString & JXChooseFileDialog::GetFullName | ( | ) | const |
|
overrideprotectedvirtual |
Check that the active object is willing to unfocus.
Reimplemented from JXWindowDirector.
|
overrideprotectedvirtual |
Process the given message from the given sender. This function is not pure virtual because not all classes will want to implement it.
Reimplemented from JBroadcaster.
|
protected |
|
overrideprotectedvirtual |
Disable the Open button if nothing is selected.
Reimplemented from JXCSFDialogBase.