JX Application Framework
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
JXCSFDialogBase Class Reference

#include <JXCSFDialogBase.h>

Inheritance diagram for JXCSFDialogBase:
[legend]

Public Member Functions

 ~JXCSFDialogBase () override
 
void Activate () override
 
bool Deactivate () override
 
const JStringGetPath () const
 
const JStringGetFilter () const
 
bool HiddenVisible () const
 
JDirInfoGetDirInfo () const
 
- Public Member Functions inherited from JXModalDialogDirector
 JXModalDialogDirector (const bool allowResizing=false)
 
 ~JXModalDialogDirector () override
 
JXButtonGetOKButton () const
 
JXButtonGetCancelButton () const
 
void SetButtons (JXButton *okButton, JXButton *cancelButton)
 
bool DoDialog ()
 
void EndDialog (const bool success)
 
void Activate () override
 
bool Deactivate () override
 
bool Close () override
 
- Public Member Functions inherited from JXWindowDirector
 JXWindowDirector (JXDirector *supervisor)
 
 ~JXWindowDirector () override
 
void Activate () override
 
bool Deactivate () override
 
void Suspend () override
 
void Resume () override
 
JXWindowGetWindow () const
 
JXDisplayGetDisplay () const
 
virtual const JStringGetName () const
 
virtual bool GetMenuIcon (const JXImage **icon) const
 
virtual bool NeedsSave () const
 
- Public Member Functions inherited from JXDirector
 JXDirector (JXDirector *supervisor)
 
 ~JXDirector () override
 
bool IsClosing () const
 
bool IsActive () const
 
bool IsSuspended () const
 
bool HasSubdirectors () const
 
bool GetSubdirectors (const JPtrArray< JXDirector > **list) const
 
- Public Member Functions inherited from JBroadcaster
 JBroadcaster ()
 
virtual ~JBroadcaster ()
 
JBroadcasteroperator= (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 const JStringGetState ()
 
static void SetState (const JString &state)
 
static void ReadOldState (std::istream &input)
 
static bool IsCharacterInWord (const JUtf8Character &c)
 

Protected Member Functions

 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)
 
virtual void AdjustSizings ()
 
virtual void UpdateDisplay ()
 
JXDirTableGetFileBrowser () const
 
JXPathInputGetPathInput () const
 
JXInputFieldGetFilterInput () const
 
JXNewDirButtonGetNewDirButton () const
 
bool GoToItsPath ()
 
void AdjustFilter ()
 
void RestoreState ()
 
void SaveState () const
 
void DoNotSaveCurrentPath ()
 
void Receive (JBroadcaster *sender, const Message &message) override
 
- Protected Member Functions inherited from JXModalDialogDirector
bool OKToDeactivate () override
 
bool Cancelled () const
 
void Receive (JBroadcaster *sender, const Message &message) override
 
- Protected Member Functions inherited from JXDirector
JXDirectorGetSupervisor () const
 
bool CloseAllSubdirectors ()
 
virtual void DirectorClosed (JXDirector *theDirector)
 
- Protected Member Functions inherited from JBroadcaster
 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)
 

Detailed Description

Derived classes must call JXCSFDialogBase::SetObjects() after the
JXLayout code and then set up the extra items.  To allow further derived
classes, this code should be put in a SetObjects() function instead of
being inlined after the JXLayout code.

Constructor & Destructor Documentation

◆ ~JXCSFDialogBase()

JXCSFDialogBase::~JXCSFDialogBase ( )
override

◆ JXCSFDialogBase()

JXCSFDialogBase::JXCSFDialogBase ( const JString fileFilter)
protected

Derived classes must call SetObjects().

Member Function Documentation

◆ Activate()

void JXCSFDialogBase::Activate ( )
overridevirtual

We can't add the strings to the history menus until after ReadSetup().

The file browser must have the initial focus.

Reimplemented from JXDirector.

Reimplemented in JXSaveFileDialog.

◆ AdjustFilter()

void JXCSFDialogBase::AdjustFilter ( )
protected

◆ AdjustSizings()

void JXCSFDialogBase::AdjustSizings ( )
protectedvirtual

Adjust the sizing options for the widgets in the window after the message has been installed at the top.

Reimplemented in JXChooseFileDialog.

◆ Deactivate()

bool JXCSFDialogBase::Deactivate ( )
overridevirtual

Ignore FocusLost messages during this process.

Reimplemented from JXDirector.

◆ DoNotSaveCurrentPath()

void JXCSFDialogBase::DoNotSaveCurrentPath ( )
inlineprotected

◆ GetDirInfo()

JDirInfo * JXCSFDialogBase::GetDirInfo ( ) const
inline

◆ GetFileBrowser()

JXDirTable * JXCSFDialogBase::GetFileBrowser ( ) const
inlineprotected

◆ GetFilter()

const JString & JXCSFDialogBase::GetFilter ( ) const

◆ GetFilterInput()

JXInputField * JXCSFDialogBase::GetFilterInput ( ) const
inlineprotected

◆ GetNewDirButton()

JXNewDirButton * JXCSFDialogBase::GetNewDirButton ( ) const
inlineprotected

◆ GetPath()

const JString & JXCSFDialogBase::GetPath ( ) const

◆ GetPathInput()

JXPathInput * JXCSFDialogBase::GetPathInput ( ) const
inlineprotected

◆ GetState()

const JString & JXCSFDialogBase::GetState ( )
inlinestatic

◆ GoToItsPath()

bool JXCSFDialogBase::GoToItsPath ( )
protected

◆ HiddenVisible()

bool JXCSFDialogBase::HiddenVisible ( ) const

◆ IsCharacterInWord()

bool JXCSFDialogBase::IsCharacterInWord ( const JUtf8Character c)
static

Returns true if the given character should be considered part of a word. Our definition is [A-Za-z0-9_].

◆ ReadOldState()

void JXCSFDialogBase::ReadOldState ( std::istream &  input)
static

◆ Receive()

void JXCSFDialogBase::Receive ( JBroadcaster sender,
const Message message 
)
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.

Reimplemented in JXSaveFileDialog.

◆ RestoreState()

void JXCSFDialogBase::RestoreState ( )
protected

Read in path and filter histories and window geometry. This is not virtual because it has to apply to all derived classes.

◆ SaveState()

void JXCSFDialogBase::SaveState ( ) const
protected

Write path and filter histories and window geometry. This is not virtual because it has to apply to all derived classes.

◆ SetObjects()

void JXCSFDialogBase::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 
)
protected

◆ SetState()

void JXCSFDialogBase::SetState ( const JString state)
inlinestatic

◆ UpdateDisplay()

void JXCSFDialogBase::UpdateDisplay ( )
protectedvirtual

Derived classes can override this to perform other adjustments.

Reimplemented in JXChooseFileDialog, JXChoosePathDialog, and JXSaveFileDialog.


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