|
Q3270
A Qt-based 3270 Terminal Emulator
|
Public Member Functions | |
| ActiveSettings () | |
| ActiveSettings represents the currently active settings. This is literally just the various flags and values that would be written to the saved settings file. | |
| QString | getHostName () const |
| int | getHostPort () const |
| QString | getHostLU () const |
| QString | getHostAddress () const |
| ActiveSettings::getHostAddress. | |
| void | setHostAddress (const QString &hostName, int port, const QString &hostLU) |
| ActiveSettings::setHostAddress. | |
| void | setHostAddress (const QString &address) |
| ActiveSettings::setHostAddress. | |
| void | applyUserHostChange (const QString &hostName, int port, const QString &hostLU) |
| ActiveSettings::applyUserHostChange. | |
| bool | getRulerState () const |
| void | setRulerState (bool rulerOn) |
| ActiveSettings::setRulerState - hide or display the ruler. | |
| Q3270::RulerStyle | getRulerStyle () const |
| void | setRulerStyle (Q3270::RulerStyle r) |
| ActiveSettings::setRulerStyle. | |
| QString | getRulerStyleName () const |
| ActiveSettings::getRulerStyleName. | |
| void | setRulerStyleName (const QString &s) |
| ActiveSettings::setRulerStyleName. | |
| bool | getCursorBlink () const |
| void | setCursorBlink (bool blink) |
| ActiveSettings::setCursorBlink. | |
| int | getCursorBlinkSpeed () const |
| void | setCursorBlinkSpeed (int blinkSpeed) |
| ActiveSettings::setCursorBlinkSpeed. | |
| bool | getCursorColourInherit () const |
| void | setCursorColourInherit (bool inherit) |
| ActiveSettings::setCursorColourInherit. | |
| bool | getStretchScreen () const |
| void | setStretchScreen (bool stretch) |
| ActiveSettings::setStretchScreen. | |
| bool | getBackspaceStop () const |
| void | setBackspaceStop (bool backspaceStop) |
| ActiveSettings::setBackspaceStop. | |
| bool | getSecureMode () const |
| void | setSecureMode (bool secureMode) |
| ActiveSettings::setSecureMode. | |
| bool | getVerifyCerts () const |
| void | setVerifyCerts (bool verifyCerts) |
| ActiveSettings::setVerifyCerts. | |
| QFont | getFont () const |
| void | setFont (const QFont &font) |
| ActiveSettings::setFont. | |
| Q3270::FontTweak | getTweak () const |
| void | setTweak (Q3270::FontTweak tweak) |
| int | getTerminalX () const |
| int | getTerminalY () const |
| int | getTerminalModel () const |
| QString | getTerminalModelName () const |
| ActiveSettings::getTerminalModelName. | |
| void | setTerminal (int x, int y, int model) |
| ActiveSettings::setTerminal. | |
| void | setTerminal (int x, int y, const QString &modelName) |
| ActiveSettings::setTerminal. | |
| QString | getCodePage () const |
| void | setCodePage (const QString &codePage) |
| ActiveSettings::setCodePage. | |
| QString | getKeyboardThemeName () const |
| void | setKeyboardTheme (const QString &keyboardThemeName) |
| ActiveSettings::setKeyboardTheme. | |
| QString | getColourThemeName () const |
| void | setColourTheme (const QString &colourThemeName) |
| ActiveSettings::setColourTheme. | |
| QString | getSessionName () const |
| void | setSessionName (const QString &name) |
| Sets the session name. | |
| QString | getDescription () const |
| void | setDescription (const QString &description) |
| Sets the session description. | |
| ActiveSettings::ActiveSettings | ( | ) |
ActiveSettings represents the currently active settings. This is literally just the various flags and values that would be written to the saved settings file.
When a setting is changed (rather than just set back to the value it currently is), a singal is emitted. this avoids flagging a change when actually there wasn't one.
The constructor sets (my) factory setting defaults.
| void ActiveSettings::applyUserHostChange | ( | const QString & | hostName, |
| int | hostPort, | ||
| const QString & | hostLU | ||
| ) |
ActiveSettings::applyUserHostChange.
| hostName | - new host name from Preferences dialog |
| hostPort | - new port from Preferences Dialog |
| hostLU | - new LU name from Preferences Dialog |
| QString ActiveSettings::getHostAddress | ( | ) | const |
ActiveSettings::getHostAddress.
The address of the host that Q3270 is connected to. This may include a port and LU.
| QString ActiveSettings::getRulerStyleName | ( | ) | const |
ActiveSettings::getRulerStyleName.
Return the name of the ruler style (CrossHair, Horizontal, Vertical).
| QString ActiveSettings::getTerminalModelName | ( | ) | const |
ActiveSettings::getTerminalModelName.
This function returns the string format of the model name, which is stored in the config file.
| void ActiveSettings::setBackspaceStop | ( | bool | backspaceStop | ) |
ActiveSettings::setBackspaceStop.
| backspaceStop | - whether pressing backspace will allow the user to move the cursor beyond the field start. |
When backspace stop is enabled, the cursor will be prevented from continuing beyond the beginning of the start of the field. When backspace stop is disabled, and backspace is pressed, it will act like cursor left, rather than backspace.
| void ActiveSettings::setCodePage | ( | const QString & | codepage | ) |
| codepage | - the new codepage. |
Change the code page to the one specified.
| void ActiveSettings::setColourTheme | ( | const QString & | colourthemeName | ) |
ActiveSettings::setColourTheme.
| colourthemeName | - the name of the colour theme. |
The colour theme is set by name.
| void ActiveSettings::setCursorBlink | ( | bool | cursorBlink | ) |
ActiveSettings::setCursorBlink.
| cursorBlink | - true to blink the cursor, false to make it static. |
Change whether the cursor blinks or not.
| void ActiveSettings::setCursorBlinkSpeed | ( | int | cursorBlinkSpeed | ) |
ActiveSettings::setCursorBlinkSpeed.
| cursorBlinkSpeed | - the speed of the cursor blink. |
Set the speed of cursor blink. This setting has no effect if the cursor isn't set to blink.
| void ActiveSettings::setCursorColourInherit | ( | bool | cursorInherit | ) |
ActiveSettings::setCursorColourInherit.
| cursorInherit | - true to inherit the colour of the cell, false for grey |
The cursor can inherit the colour of the underlying character cell, meaning that there is some visual feedback to the user of the colour of the field in which the cursor resides, or the cursor can be a simple grey colour.
| void ActiveSettings::setDescription | ( | const QString & | desc | ) |
Sets the session description.
| desc | - The new description. |
Updates the session description and emits a signal if it changes.
| void ActiveSettings::setFont | ( | const QFont & | font | ) |
| void ActiveSettings::setHostAddress | ( | const QString & | address | ) |
ActiveSettings::setHostAddress.
| address | - target host address. |
Set the host address. Host addresses can be of the form:
| void ActiveSettings::setHostAddress | ( | const QString & | hostName, |
| int | hostPort, | ||
| const QString & | hostLU | ||
| ) |
ActiveSettings::setHostAddress.
| hostName | |
| hostPort | |
| hostLU |
Set the host address, port and LU name. Called when a session is loaded, and when the user sets the host address manually, via
| void ActiveSettings::setKeyboardTheme | ( | const QString & | keyboardThemeName | ) |
ActiveSettings::setKeyboardTheme.
| keyboardThemeName | - the name of the keyboard theme |
This setting holds the name of the keyboard theme. The KeyboardTheme class is needed because that's actually where the keyboard definitions are stored.
| void ActiveSettings::setRulerState | ( | bool | rulerState | ) |
ActiveSettings::setRulerState - hide or display the ruler.
| rulerState | - true to show the ruler, false to hide it. |
Change the state of the ruler display.
| void ActiveSettings::setRulerStyle | ( | Q3270::RulerStyle | newStyle | ) |
ActiveSettings::setRulerStyle.
| newStyle |
| Value | Ruler Style |
|---|---|
| 0 | Crosshair |
| 1 | Vertical |
| 2 | Horizontal |
Change the ruler style (crosshair, vertical, horizontal)
| void ActiveSettings::setRulerStyleName | ( | const QString & | newStyle | ) |
ActiveSettings::setRulerStyleName.
| newStyle | - a string representing the keys in enum Q3270::RulerStyle |
Change the ruler style by name (CrossHair, Horizontal, Vertical). Defaults to CrossHair if an invalid one is passed.
| void ActiveSettings::setSecureMode | ( | bool | secureMode | ) |
| void ActiveSettings::setSessionName | ( | const QString & | name | ) |
Sets the session name.
| name | - The new session name. |
Updates the session name and emits a signal if it changes.
| void ActiveSettings::setStretchScreen | ( | bool | stretch | ) |
ActiveSettings::setStretchScreen.
| stretch | - true to ignore 4:3 ratio, and fill the window, false to enforce a 4:3 ratio. |
The screen can be made to fill the application window, so that the display is stretched to fill all space in the application window. If this setting is disabled, the characters form a fixed 4:3 ratio size, and will have white space either side if the window is resized outside of a 4:3 ratio.
| void ActiveSettings::setTerminal | ( | int | x, |
| int | y, | ||
| const QString & | modelName | ||
| ) |
| x | - the number of columns for the display |
| y | - the number of rows for the display |
| modelName | - the name of the model |
This routine is used to set the terminal size; it is called by Terminal when the configuration file is read in (so that the config file stores an English name rather than just a number)
Like setTerminal(), the size parameters are ignored if the model is a standard model.
| void ActiveSettings::setTerminal | ( | int | x, |
| int | y, | ||
| int | model | ||
| ) |
| x | - the number of columns for the display |
| y | - the number of rows for the display |
| model | - the model number |
Sets the size of the 3270 display (for the alternate screen). The primary screen is always 24x80 (model 2). The setting is only changed when there is no active connection because part of the connection negotiation is to determine the screen size.
If one of the standard model types is used (2, 3, 4 or 5), the size is overridden and any size paramteres passed are ignored.
This routine is called when the Preferences dialog's OK button is clicked.
| void ActiveSettings::setVerifyCerts | ( | bool | verify | ) |
ActiveSettings::setVerifyCerts.
| verify | - true to verify certificates of hosts |
Allows for self-signed certificates