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

#include <JXFileSelection.h>

Inheritance diagram for JXFileSelection:
[legend]

Public Member Functions

 JXFileSelection (JXDisplay *display, const JPtrArray< JString > &list)
 
 JXFileSelection (JXDisplay *display, JPtrArray< JString > *list)
 
 JXFileSelection (JXWidget *widget, const JUtf8Byte *id)
 
 ~JXFileSelection () override
 
bool GetData (const JPtrArray< JString > **list) const
 
void SetData (const JPtrArray< JString > &list)
 
void SetData (JPtrArray< JString > *list)
 
- Public Member Functions inherited from JXSelectionData
 JXSelectionData (JXDisplay *display)
 
 JXSelectionData (JXWidget *widget, const JUtf8Byte *id)
 
 ~JXSelectionData () override
 
JXDisplayGetDisplay () const
 
JXSelectionManagerGetSelectionManager () const
 
JXDNDManagerGetDNDManager () const
 
Atom GetDNDSelectionName () const
 
Atom GetSelectionName () const
 
Time GetStartTime () const
 
bool IsCurrent () const
 
bool GetEndTime (Time *t) const
 
void SetSelectionInfo (const Atom selectionName, const Time startTime)
 
void SetEndTime (const Time endTime)
 
const JArray< Atom > & GetTypeList () const
 
void Resolve () const
 
bool Convert (const Atom requestType, Atom *returnType, unsigned char **data, JSize *dataLength, JSize *bitsPerBlock) 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 bool GetFileList (const Atom selectionName, const Time time, JXDisplay *display, JPtrArray< JString > *fileNameList, JPtrArray< JString > *urlList)
 
static bool GetFileList (JXSelectionManager *selMgr, const Atom selectionName, const Time time, JPtrArray< JString > *fileNameList, JPtrArray< JString > *urlList)
 

Protected Member Functions

void AddTypes (const Atom selectionName) override
 
bool ConvertData (const Atom requestType, Atom *returnType, unsigned char **data, JSize *dataLength, JSize *bitsPerBlock) const override
 
- Protected Member Functions inherited from JXSelectionData
Atom AddType (const JUtf8Byte *name)
 
void AddType (const Atom type)
 
void RemoveType (const Atom type)
 
void ReceiveGoingAway (JBroadcaster *sender) override
 
- 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)
 
virtual void Receive (JBroadcaster *sender, const Message &message)
 
void SendWithFeedback (JBroadcaster *recipient, Message *message)
 
void BroadcastWithFeedback (Message *message)
 
virtual void ReceiveWithFeedback (JBroadcaster *sender, Message *message)
 

Detailed Description

text/url

Constructor & Destructor Documentation

◆ JXFileSelection() [1/3]

JXFileSelection::JXFileSelection ( JXDisplay display,
const JPtrArray< JString > &  list 
)

◆ JXFileSelection() [2/3]

JXFileSelection::JXFileSelection ( JXDisplay display,
JPtrArray< JString > *  list 
)

◆ JXFileSelection() [3/3]

JXFileSelection::JXFileSelection ( JXWidget widget,
const JUtf8Byte id 
)

◆ ~JXFileSelection()

JXFileSelection::~JXFileSelection ( )
override

Member Function Documentation

◆ AddTypes()

void JXFileSelection::AddTypes ( const Atom  selectionName)
overrideprotectedvirtual

Implements JXSelectionData.

◆ ConvertData()

bool JXFileSelection::ConvertData ( const Atom  requestType,
Atom *  returnType,
unsigned char **  data,
JSize dataLength,
JSize bitsPerBlock 
) const
overrideprotectedvirtual

Implements JXSelectionData.

◆ GetData()

bool JXFileSelection::GetData ( const JPtrArray< JString > **  list) const
inline

◆ GetFileList() [1/2]

bool JXFileSelection::GetFileList ( const Atom  selectionName,
const Time  time,
JXDisplay display,
JPtrArray< JString > *  fileNameList,
JPtrArray< JString > *  urlList 
)
static

◆ GetFileList() [2/2]

bool JXFileSelection::GetFileList ( JXSelectionManager selMgr,
const Atom  selectionName,
const Time  time,
JPtrArray< JString > *  fileNameList,
JPtrArray< JString > *  urlList 
)
static

◆ SetData() [1/2]

void JXFileSelection::SetData ( const JPtrArray< JString > &  list)

Makes a copy of the list.

◆ SetData() [2/2]

void JXFileSelection::SetData ( JPtrArray< JString > *  list)

Takes ownership of the list and its contents.


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