Q3270
A Qt-based 3270 Terminal Emulator
Loading...
Searching...
No Matches
StatusBar Class Reference
Inheritance diagram for StatusBar:

Public Slots

void setEncrypted (Q3270::Encryption e)
 StatusBar::setEncrypted - change encryption status bar icon.
 
void cursorMoved (int x, int y)
 StatusBar::cursorMoved - refresh the cursor position.
 

Public Member Functions

 StatusBar (int screen_x, int screen_y)
 StatusBar::StatusBar - The 3270 status bar.
 
void setStatusInsert (Q3270::InsertOverType insert)
 StatusBar::setStatusInsert - the Insert mode text.
 
void setStatusLock (Q3270::Indicators status)
 StatusBar::setStatusXSystem - set XSystem text.
 
void setSize (const int x, const int y)
 
QRectF boundingRect () const override
 StatusBar::boundingRect.
 
void paint (QPainter *p, const QStyleOptionGraphicsItem *i, QWidget *w) override
 

Constructor & Destructor Documentation

◆ StatusBar()

StatusBar::StatusBar ( int  screen_x,
int  screen_y 
)

StatusBar::StatusBar - The 3270 status bar.

Parameters
screen_x- width of the initial bar
screen_y- height of the initial bar

StatusBar is responsible for the display of the status bar. This contains:

  • the connection state (4-A is hard-coded)
  • the security of the connection, represented by varying padlocks
  • X<clock> and X System
  • the insert status
  • the cursor position

Member Function Documentation

◆ boundingRect()

QRectF StatusBar::boundingRect ( ) const
override

StatusBar::boundingRect.

Returns
The size of the status bar, as passed at construction.

◆ cursorMoved

void StatusBar::cursorMoved ( int  x,
int  y 
)
slot

StatusBar::cursorMoved - refresh the cursor position.

Parameters
x- new cursor x position
y- new cursor y position

Called when the cursor moves, so the status bar position can be updated.

◆ setEncrypted

void StatusBar::setEncrypted ( Q3270::Encryption  encrypted)
slot

StatusBar::setEncrypted - change encryption status bar icon.

Parameters
encrypted- the encryption state
   encrypted  | Description
   ---------- | -----------
     0        | Unencrypted
     1        | Encrypted without validating certs
     2        | Encrypted

◆ setStatusInsert()

void StatusBar::setStatusInsert ( Q3270::InsertOverType  insert)

StatusBar::setStatusInsert - the Insert mode text.

Parameters
ins- Q3270::InsertMode or Q3270::OvertypeMode

Called to show the Insert status on the status line.

◆ setStatusLock()

void StatusBar::setStatusLock ( Q3270::Indicators  status)

StatusBar::setStatusXSystem - set XSystem text.

Parameters
status- Q3270::Unlocked, Q3270::SystemLock or Q3270::TerminalWait

Called when XSystem / X<clock> is to be shown or removed.


The documentation for this class was generated from the following files: