JX Application Framework
|
#include <JXDirectSaveSource.h>
Static Public Member Functions | |
static void | Init (JXWindow *window, const JString &fileName) |
![]() | |
static void | SkipScrollSetup (std::istream &input) |
![]() | |
static void | DebugExpandToFitContent (const bool horiz) |
static void | DebugExpandToFitContentExtras (const bool noop, const bool overlap) |
Protected Member Functions | |
void | HandleMouseDown (const JPoint &pt, const JXMouseButton button, const JSize clickCount, const JXButtonStates &buttonStates, const JXKeyModifiers &modifiers) override |
void | DNDInit (const JPoint &pt, const JXButtonStates &buttonStates, const JXKeyModifiers &modifiers) override |
Atom | GetDNDAction (const JXContainer *target, const JXButtonStates &buttonStates, const JXKeyModifiers &modifiers) override |
void | HandleDNDResponse (const JXContainer *target, const bool dropAccepted, const Atom action) override |
![]() | |
void | Draw (JXWindowPainter &p, const JRect &rect) override |
void | ApertureResized (const JCoordinate dw, const JCoordinate dh) override |
![]() | |
bool | ScrollForDrag (const JPoint &pt) |
bool | ScrollForWheel (const JXMouseButton button, const JXKeyModifiers &modifiers) |
bool | ScrollForWheel (const JXMouseButton button, const JXKeyModifiers &modifiers, JXScrollbar *hScrollbar, JXScrollbar *vScrollbar) |
void | SetHorizStepSize (const JCoordinate hStep) |
void | SetHorizPageStepContext (const JCoordinate hPageContext) |
void | SetVertStepSize (const JCoordinate vStep) |
void | SetVertPageStepContext (const JCoordinate vPageContext) |
void | SetHorizJumpToScrolltabModifiers (const bool ctrl, const bool meta) |
void | SetVertJumpToScrolltabModifiers (const bool ctrl, const bool meta) |
void | DrawBorder (JXWindowPainter &p, const JRect &frame) override |
void | HandleMouseDown (const JPoint &pt, const JXMouseButton button, const JSize clickCount, const JXButtonStates &buttonStates, const JXKeyModifiers &modifiers) override |
void | BoundsMoved (const JCoordinate dx, const JCoordinate dy) override |
void | BoundsResized (const JCoordinate dw, const JCoordinate dh) override |
void | ApertureMoved (const JCoordinate dx, const JCoordinate dy) override |
void | ApertureResized (const JCoordinate dw, const JCoordinate dh) override |
void | HandleDNDScroll (const JPoint &pt, const JXMouseButton scrollButton, const JXKeyModifiers &modifiers) override |
void | Receive (JBroadcaster *sender, const Message &message) override |
![]() | |
JXWidget (JXContainer *enclosure, const HSizingOption hSizing, const VSizingOption vSizing, const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h) | |
void | WantInput (const bool wantInput, const bool wantTab=false, const bool wantModifiedTab=false) |
virtual void | HandleFocusEvent () |
virtual void | HandleUnfocusEvent () |
virtual void | HandleWindowFocusEvent () |
virtual void | HandleWindowUnfocusEvent () |
void | UnlockBounds () |
void | SetBounds (const JCoordinate w, const JCoordinate h) |
void | AdjustBounds (const JCoordinate dw, const JCoordinate dh) |
void | DrawBackground (JXWindowPainter &p, const JRect &frame) override |
bool | AcceptDrag (const JPoint &pt, const JXMouseButton button, const JXKeyModifiers &modifiers) override |
JXDragPainter * | CreateDragInsidePainter () |
JXDragPainter * | CreateDragOutsidePainter () |
bool | GetDragPainter (JXDragPainter **p) const |
bool | GetDragPainter (JPainter **p) const |
void | DeleteDragPainter () |
void | BoundsMoved (const JCoordinate dx, const JCoordinate dy) override |
void | EnclosingBoundsMoved (const JCoordinate dx, const JCoordinate dy) override |
void | BoundsResized (const JCoordinate dw, const JCoordinate dh) override |
void | EnclosingBoundsResized (const JCoordinate dw, const JCoordinate dh) override |
void | FTCAdjustSize (const JCoordinate dw, const JCoordinate dh) override |
bool | BeginDND (const JPoint &pt, const JXButtonStates &buttonStates, const JXKeyModifiers &modifiers, JXSelectionData *data, JXDNDManager::TargetFinder *targetFinder=nullptr) |
virtual void | GetSelectionData (JXSelectionData *data, const JString &id) |
virtual void | DNDFinish (const bool isDrop, const JXContainer *target) |
virtual void | DNDCompletelyFinished () |
virtual void | GetDNDAskActions (const JXButtonStates &buttonStates, const JXKeyModifiers &modifiers, JArray< Atom > *askActionList, JPtrArray< JString > *askDescriptionList) |
bool | WillAllowUnboundedScrolling () const |
void | ShouldAllowUnboundedScrolling (const bool allow) |
![]() | |
JXContainer (JXWindow *window, JXContainer *enclosure) | |
JXContainer (JXDisplay *display, JXWindow *window, JXContainer *enclosure) | |
void | TurnOnBufferedDrawing () |
void | DrawAll (JXWindowPainter &p, const JRect &frameG) |
virtual void | HandleMouseEnter () |
virtual void | HandleMouseHere (const JPoint &pt, const JXKeyModifiers &modifiers) |
virtual void | HandleMouseLeave () |
virtual void | HandleMouseDrag (const JPoint &pt, const JXButtonStates &buttonStates, const JXKeyModifiers &modifiers) |
virtual void | HandleMouseUp (const JPoint &pt, const JXMouseButton button, const JXButtonStates &buttonStates, const JXKeyModifiers &modifiers) |
virtual bool | HitSamePart (const JPoint &pt1, const JPoint &pt2) const |
virtual bool | WillAcceptDrop (const JArray< Atom > &typeList, Atom *action, const JPoint &pt, const Time time, const JXWidget *source) |
virtual void | HandleDNDEnter () |
virtual void | HandleDNDHere (const JPoint &pt, const JXWidget *source) |
virtual void | HandleDNDLeave () |
virtual void | HandleDNDDrop (const JPoint &pt, const JArray< Atom > &typeList, const Atom action, const Time time, const JXWidget *source) |
bool | DispatchClientMessage (const XClientMessageEvent &clientMessage) |
virtual bool | HandleClientMessage (const XClientMessageEvent &clientMessage) |
void | NotifyBoundsMoved (const JCoordinate dx, const JCoordinate dy) |
void | NotifyBoundsResized (const JCoordinate dw, const JCoordinate dh) |
virtual bool | IncludeInFTC () const |
virtual bool | NeedsInternalFTC () const |
virtual JCoordinate | GetFTCMinContentSize (const bool horizontal) const |
virtual JRect | GetFrameForFTC () const |
bool | GetEnclosedObjects (JPtrArrayIterator< JXContainer > **iter) const |
void | DeleteEnclosedObjects () |
void | ShowCursor () |
void | HideCursor () |
void | SetDefaultCursor (const JCursorIndex index) |
void | DispatchCursor (const JPoint &ptG, const JXKeyModifiers &modifiers) |
virtual void | AdjustCursor (const JPoint &pt, const JXKeyModifiers &modifiers) |
void | DisplayCursor (const JCursorIndex index) |
JXCursorAnimator * | CreateCursorAnimator () |
JXCursorAnimator * | GetCursorAnimator () const |
void | AnimateCursor () const |
void | RemoveCursorAnimator () |
void | ActivateCursor (const JPoint &ptG, const JXKeyModifiers &modifiers) |
void | DeactivateCursor () |
std::ostream & | GetFTCLog () const |
virtual bool | StealMouse (const int eventType, const JPoint &ptG, const JXMouseButton button, const unsigned int state) |
![]() | |
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) |
Additional Inherited Members | |
![]() | |
enum | HSizingOption { kFixedLeft , kFixedRight , kHElastic } |
enum | VSizingOption { kFixedTop , kFixedBottom , kVElastic } |
![]() | |
static const JUtf8Byte * | kGotFocus = "GotFocus::JXWidget" |
static const JUtf8Byte * | kLostFocus = "LostFocus::JXWidget" |
Displays a file icon that the user can drag to a file manager and thereby save.
JXDirectSaveSource::JXDirectSaveSource | ( | JXSaveFileDialog * | dialog, |
JXInputField * | nameInput, | ||
JXContainer * | enclosure, | ||
const HSizingOption | hSizing, | ||
const VSizingOption | vSizing, | ||
const JCoordinate | x, | ||
const JCoordinate | y, | ||
const JCoordinate | w, | ||
const JCoordinate | h | ||
) |
|
override |
|
overrideprotectedvirtual |
This is called when DND is initiated.
Reimplemented from JXWidget.
|
overrideprotectedvirtual |
This is called repeatedly on the drag source so the drop action can be changed based on the current target, buttons, and modifier keys.
If the drop target is not within the same application, target is nullptr.
The default is to return the default action: copy.
Reimplemented from JXWidget.
|
overrideprotectedvirtual |
This is called on the source when the target indicates whether or not it will accept the drop. If !dropAccepted, the action is undefined. If the drop target is not within the same application, target is nullptr.
The default implementation is to display the appropriate default cursor provided by JXDNDManager.
Note that part of the cursor should always be the standard arrow. This way, the user will feel like they really are dragging something.
Reimplemented from JXWidget.
|
overrideprotectedvirtual |
Reimplemented from JXContainer.