[TModalStack] [Index] [TOADBase]

Class TOADBase


File: <toad/toadbase.hh>

Super Classes

Attributes

public static int argc
public static char **argv
public static bool bSimulatedAutomaticGrab
public static bold_font
public static TDialogEditor *dialog_editor
public static TWindow *dialog_editor_window
public static Display *display
public static TWindow *edited_window
public static char **envv
public static _TOAD_GC gc
public static XContext nClassContext
public static int screen
public static TWindow *twMainWindow
public static TWindow *wndTopPopup
public static Atom xaWMDeleteWindow
public static Atom xaWMMotifHints
public static Atom xaWMSaveYourself

Methods

Bell
public static void Bell(int volume = 0, int frequency=-1)
Rings the bell on the keyboard if possible. The specified volume is relative to the base volume for the keyboard.
Close
public static void Close()
DefaultFont
public static TFont & DefaultFont()
DialogEditEnabled
public static bool DialogEditEnabled()
DispatchMessage
public static void DispatchMessage(XEvent&)
DoModal
public static void DoModal(TWindow *wnd)
Create window `wnd' as a modal window and return when `wnd' is being closed.
DoModeless
public static void DoModeless(TWindow *wnd)
EndAllModal
public static void EndAllModal()
EndAllModeless
public static void EndAllModeless()
EndDialog
public static void EndDialog(TWindow*)
public static void EndDialog(TWindow *)
ExecutableName
public static const string & ExecutableName()
ExecutablePath
public static const string & ExecutablePath()
Flush
public static void Flush()
Send all stored event to the X Server.
FocusWindow
public static TWindow * FocusWindow()
GetMessage
public static bool GetMessage(XEvent&)
GetMousePos
public static void GetMousePos(int*, int*)
Returns the position of the mouse pointer relative to the root window. (Root window is the whole screen background.)
GetScreenHeight
public static int GetScreenHeight()
Returns the height of the screen in pixels.
GetScreenWidth
public static int GetScreenWidth()
Returns the width of the screen in pixels.
HandleMessage
public static bool HandleMessage()
Wait when the message queue is empty until a new message arrives and handle one message. Returns `false' when `PostQuitMessage(..)' has been called.
InitColor
public static void InitColor()
InitGadgets
public static void InitGadgets()
InitIO
public static void InitIO(int)
InitThreads
public static void InitThreads()
LockPaintQueue
public static void LockPaintQueue()
MessageBox
public static unsigned MessageBox(TWindow* parent, const string& title, const string &text, ulong type, TBitmap *bmp= ((void *)0), EWindowPlacement placement=PLACE_PARENT_CENTER)
public static unsigned MessageBox(TWindow * parent, const string& title, const string &text, ulong type, TBitmap *bmp= ((void *)0), EWindowPlacement placement=PLACE_PARENT_CENTER)
This function creates and displays a modal dialog that contains a text, an icon and pushbuttons.

The following values define type and can be joined by the '|' operator:

MB_ICONEXCLAMATION
MB_ICONHAND
MB_ICONSTOP
MB_ICONINFORMATION
MB_ICONQUESTION
MB_ABORTRETRYIGNORE
MB_OK
MB_OKCANCEL
MB_RETRYCANCEL
MB_YESNO
MB_YESNOCANCEL
MB_DEFBUTTON1 The 1st button is the default button, which is the default setting.
MB_DEFBUTTON2 The 2nd button is the default button.
MB_DEFBUTTON3 The 3rd button is the default button.

Possible return values are: IDACCEPT, IDABORT, IDOK, IDRETRY, IDYES, IDNO, IDCANCEL and IDIGNORE.

Open
public static bool Open(int argc, char *argv[], char *envv[])
PeekMessage
public static bool PeekMessage()
Returns `true' when the message queue is not empty.
PlaceWindow
public static void PlaceWindow(TWindow *window, EWindowPlacement how, TWindow *parent= ((void *)0))
PlaceWindow is intended to place top level windows, e.g. dialog windows.
There are several modes of operation:
  • PLACE_PARENT_CENTER
    Center window over `parent'.
  • PLACE_PARENT_RANDOM
    Randomly place window over `parent'.
  • PLACE_SCREEN_CENTER
    Place window in the middle of the screen.
  • PLACE_SCREEN_RANDOM
    Place window randomly on the screen.
  • PLACE_MOUSE_POINTER
    Place window under the mouse pointer.
  • PLACE_PULLDOWN
    Place window under the parent.
  • PLACE_TOOLTIP
    Place window near the parent.
When you use the `PARENT_' types and `parent' is NULL, the function will try the applications first window and when there is none, the whole screen.
PopModal
public static void PopModal(TWindow *wnd)
PostQuitMessage
public static void PostQuitMessage(int)
Stop the toplevel event queue.
The toplevel event queue is the one you've called from ToadMain with 'Run()'. The other event queues, invoked by TDialog.DoModal() will terminate also.
PushModal
public static void PushModal(TWindow *wnd)
RemoveAllIntMsg
public static void RemoveAllIntMsg()
RemoveMessage
public static void RemoveMessage(void*)
Call `check(void*)' for all actions in the message queue being derived from `TSignalNodeCheck'.
This is used to disable pending messages from `TSignal.DelayedTrigger'.
Run
public static int Run(TWindow *wnd, int argc=0, char** argv= ((void *)0), char** envv= ((void *)0))
Please don't use this.
Use 'int TWindow.Run()' instead.
Note: It's the old entry point into TOAD message loop and might be removed some day.
Select
public static void Select()
SendMessage
public static void SendMessage(TAction*)
Add a new message/action to the message queue.
This is one of the rare thread safe methods in TOAD.
SetDefaultFont
public static void SetDefaultFont(TFont*)
SetDialogEditEnabled
public static void SetDialogEditEnabled(bool)
SetDialogEditor
public static void SetDialogEditor(TDialogEditor *de)
SetFocusWindow
public static void SetFocusWindow(TWindow* wnd)
public static void SetFocusWindow(TWindow * wnd)
SetMousePos
public static void SetMousePos(int, int)
Sets the position of the mouse pointer relative to the root window. (Root window is the whole screen background.)
TOADBase
public virtual ~TOADBase()
UnlockPaintQueue
public static void UnlockPaintQueue()

This page was generated with Stupid -- Another stupid C++ to HTML generator
Written 1998,99 by The Wizards of Zilog
Copyright © 1998,99 by the TOAD Project