Itasca C++ Interface
|
Interface describing ALL input support the kernel needs to receive from whatever interface is driving it. More...
#include <ikernelinput.h>
Classes | |
struct | KeyInfo |
Public Member Functions | |
virtual ITextInput * | getITextInput ()=0 |
Returns a pointer to ITextInput, the standard default text input. | |
virtual KeyInfo | getKey ()=0 |
Returns a key. This function blocks, and it may throw a 'quit' exception. | |
virtual uint32 | prompt (const string &message, const string &options, const string &keys, uint32 ok, uint32 cancel)=0 |
virtual string | getUIName () const =0 |
Returns the name of the UI input device, e.g. "FLAC3D Console". This functions does not throw exceptions. | |
virtual bool | autoTestMode () const =0 |
Returns true if system is in test mode. This functions does not throw exceptions. | |
virtual string | getHelpFileFrontPage () const =0 |
Returns the name of the front page of the help file. | |
virtual string | getDocDirectory () const =0 |
Returns the name of the directory of the doc files which could be code dependent. | |
virtual void | poll (bool suppressException=false, bool skipTimingTest=false)=0 |
Allows GUI to interrupt if necessary. Quit exception if suppressExeption is false. | |
virtual bool | hasBeenInterrupted ()=0 |
virtual bool | hasBeenSafeInterrupted ()=0 |
virtual IGUIInput * | getIGUIInput ()=0 |
virtual UndoConnect | getUndoConnect ()=0 |
virtual string | getProjectPath () const =0 |
Returns TRUE if the last string input from ITextInput::getInput() was marked as the start of an undo block. | |
Interface describing ALL input support the kernel needs to receive from whatever interface is driving it.
Centralized pipe for all input the kernel needs from outside the kernel process itself. This includes input from the user interface, as well as (eventually) input from the file system, from sockets, and interprocess communication.
This class is a strict singleton - so all input from outside should (theoretically) go through here first. ingroup utility
|
pure virtual |
GUI Input elements Returns a pointer IGUIInput, the interface to graphics user interface input functionality. It may return null.
|
pure virtual |
Returns TRUE if the last string input from ITextInput::getInput() was marked as the start of an undo block.
Return the project directory
|
pure virtual |
Fills obj and slotsignal with the signal and slot to connect undoAvailable signals to (uses Qt:queuedConnection) - UNDO support Undo Avail signal has signature function(bool). PlaybackStartSignal has signature function(bool,double);
|
pure virtual |
Polls as well as checks if GUI has indicated kernel should stop immediately even if left in an invalid state. May throw quit exception, returns false (interrupt exception)
|
pure virtual |
Poll as well as checks if GUI has indicated kernel should stop at the next safe location. May throw quit exception, returns true (interrupt exception)
|
pure virtual |
Prompt for user input. This function blocks, and it may throw a 'quit' exception.
message | the message that will be displayed to the user |
options | list of messages |
keys | list of keys allowed to be entered by the user |
ok | OK return code |
cancel | CANCEL returns code |