53 #ifndef _CHILD_FRAME_H_INCLUDED_ 54 #define _CHILD_FRAME_H_INCLUDED_ 94 #define CHILD_FRAME_TAG (*((const unsigned int * const)"FWCF")) 99 #define CHILD_FRAME_UI_TAG ((WB_UINT32)'F' | ((WB_UINT32)'W' << 8) | ((WB_UINT32)'C' << 16) | ((WB_UINT32)'U' << 24)) 105 #define FW_FILE_NEW_MENU "IDM_FILE_NEW" 106 #define FW_FILE_CLOSE_MENU "IDM_FILE_CLOSE" 107 #define FW_FILE_OPEN_MENU "IDM_FILE_OPEN" 108 #define FW_FILE_SAVE_MENU "IDM_FILE_SAVE" 109 #define FW_FILE_SAVE_AS_MENU "IDM_FILE_SAVE_AS" 110 #define FW_FILE_SAVE_ALL_MENU "IDM_FILE_SAVE_ALL" 112 #define FW_EDIT_CUT_MENU "IDM_EDIT_CUT" 113 #define FW_EDIT_COPY_MENU "IDM_EDIT_COPY" 114 #define FW_EDIT_PASTE_MENU "IDM_EDIT_PASTE" 115 #define FW_EDIT_DELETE_MENU "IDM_EDIT_DELETE" 116 #define FW_EDIT_SELECT_ALL_MENU "IDM_EDIT_SELECT_ALL" 117 #define FW_EDIT_SELECT_NONE_MENU "IDM_EDIT_SELECT_NONE" 118 #define FW_EDIT_UNDO_MENU "IDM_EDIT_UNDO" 119 #define FW_EDIT_REDO_MENU "IDM_EDIT_REDO" 120 #define FW_EDIT_PROPERTIES_MENU "IDM_EDIT_PROPERTIES" 122 #define FW_FILE_NEW_ACCEL "Ctrl+N" 123 #define FW_FILE_CLOSE_ACCEL "Ctrl+F4" 124 #define FW_FILE_OPEN_ACCEL "Ctrl+O" 125 #define FW_FILE_SAVE_ACCEL "Ctrl+S" 126 #define FW_FILE_SAVE_AS_ACCEL "Ctrl+Shift+S" 127 #define FW_FILE_SAVE_ALL_ACCEL "Ctrl+Shift+L" 129 #define FW_EDIT_CUT_ACCEL "Ctrl+X" 130 #define FW_EDIT_COPY_ACCEL "Ctrl+C" 131 #define FW_EDIT_PASTE_ACCEL "Ctrl+V" 132 #define FW_EDIT_SELECT_ALL_ACCEL "Ctrl+A" 133 #define FW_EDIT_SELECT_NONE_ACCEL "Ctrl+Shift+A" 134 #define FW_EDIT_UNDO_ACCEL "Ctrl+Z" 135 #define FW_EDIT_REDO_ACCEL "Ctrl+Shift+Z" 136 #define FW_EDIT_PROPERTIES_ACCEL "Alt+Enter" 175 int FWInitChildFrame(WBChildFrame *pChildFrame, WBFrameWindow *pOwner, WB_FONTC pFont, 298 int iRowHeight,
int iColWidth);
391 #endif // __cplusplus 393 #endif // _CHILD_FRAME_H_INCLUDED_ void * WBGetWindowData(Window wID, int iIndex)
Gets the data associated with this window and the specified index.
void FWSetChildFrameContextMenuID(WBChildFrame *pChildFrame, int nID)
Function to assign the context menu ID (from the menu resource) to a Child Frame.
structure for managing menu callbacks
void FWChildFrameStatusChanged(WBChildFrame *pChildFrame)
Notify Child Frame to update status text in Frame Window.
void FWSetChildFrameMenu(WBChildFrame *pChildFrame, const char *szFocusMenu)
Function to assign the menu resource to a Child Frame.
void FWChildFrameRecalcLayout(WBChildFrame *pChildFrame)
Child frame notification callback (called by frame window)
static __inline__ WBChildFrame * FWGetChildFrameStruct(Window wID)
Obtain the associated WBChildFrame structure pointer for a Window ID.
void FWSetChildFrameMenuHandlers(WBChildFrame *pChildFrame, const WBFWMenuHandler *pHandlerArray)
Function to assign menu handlers to a Child Frame.
void FWSetChildFrameDisplayName(WBChildFrame *pChildFrame, const char *szDisplayName)
Assign the display name.
#define CHILD_FRAME_TAG
TAG for the WBChildFrame structure.
void FWSetChildFrameScrollInfo(WBChildFrame *pChildFrame, int iRow, int iMaxRow, int iCol, int iMaxCol, int iRowHeight, int iColWidth)
Set the X,Y extent for the child frame (notifies everything)
void FWDestroyChildFrame(WBChildFrame *pChildFrame)
Destroy an Child Frame.
A 'C++'-like object for managing text, that can be overridden for custom behavior.
unsigned int ulTag
tag indicating I'm a 'Child Frame' window
int(* WBWinEvent)(Window wID, XEvent *pEvent)
event callback function type for window events
int FWChildFrameEvent(Window wID, XEvent *pEvent)
Default event handler for Child Frame window.
int FWChildFrameQueryClose(WBChildFrame *pChildFrame)
Returns if it's safe to close the child frame; prompts user as needed.
void FWSetChildFrameExtent(WBChildFrame *pChildFrame, int iXExtent, int iYExtent)
Set the X,Y extent for the child frame (notifies everything)
Structure that defines a Child Frame within a Frame Window.
Frame Window API functions and definitions.
void FWSetChildFrameImageAtom(WBChildFrame *pChildFrame, Atom aImage)
Assign the image atom for the child frame. the image appears in the tab associated with the child fra...