Monitor
MainWindow Class Reference

Main window. More...

Inheritance diagram for MainWindow:
Collaboration diagram for MainWindow:

Public Member Functions

 MainWindow ()
 
void AdjustControls ()
 
void OnCommandReceivedEvent (string header, string data, byte[] buffer)
 

Protected Member Functions

void OnDeleteEvent (object sender, DeleteEventArgs a)
 
void OnQuitActionActivated (object sender, EventArgs e)
 
void OnShowLogWindowActionActivated (object sender, EventArgs e)
 
void OnButtonServerConnectionClicked (object sender, EventArgs e)
 
void OnButtonRobotActivationClicked (object sender, EventArgs e)
 
void OnButtonMouvClicked (object sender, EventArgs e)
 
void OnCheckButtonCameraOnClicked (object sender, EventArgs e)
 
void OnCheckButtonRobotPositionClicked (object sender, EventArgs e)
 
void OnDrawingAreaCameraExposeEvent (object o, ExposeEventArgs args)
 
void DetectArena ()
 
void OnButtonAskArenaClicked (object sender, EventArgs e)
 

Private Types

enum  SystemState { SystemState.NotConnected, SystemState.ServerConnected, SystemState.RobotConnected }
 

Private Member Functions

void ChangeState (SystemState newState)
 
void MessagePopup (MessageType type, ButtonsType buttons, string title, string message)
 
void OnBatteryTimerElapsed (object sender, System.Timers.ElapsedEventArgs e)
 

Private Attributes

DestijlCommandManager cmdManager
 
Pixbuf drawingareaCameraPixbuf
 
SystemState systemState = SystemState.NotConnected
 
System.Timers.Timer batteryTimer
 

Detailed Description

Main window.

Definition at line 10 of file MonitorUI.cs.

Member Enumeration Documentation

◆ SystemState

enum MainWindow.SystemState
strongprivate
Enumerator
NotConnected 
ServerConnected 
RobotConnected 

Definition at line 15 of file MonitorUI.cs.

Constructor & Destructor Documentation

◆ MainWindow()

MainWindow.MainWindow ( )

Definition at line 25 of file MonitorUI.cs.

Member Function Documentation

◆ AdjustControls()

void MainWindow.AdjustControls ( )

Definition at line 42 of file MonitorUI.cs.

◆ ChangeState()

void MainWindow.ChangeState ( SystemState  newState)
private

Definition at line 54 of file MonitorUI.cs.

◆ DetectArena()

void MainWindow.DetectArena ( )
protected

Definition at line 467 of file MonitorUI.cs.

◆ MessagePopup()

void MainWindow.MessagePopup ( MessageType  type,
ButtonsType  buttons,
string  title,
string  message 
)
private

Definition at line 120 of file MonitorUI.cs.

◆ OnBatteryTimerElapsed()

void MainWindow.OnBatteryTimerElapsed ( object  sender,
System.Timers.ElapsedEventArgs  e 
)
private

Definition at line 343 of file MonitorUI.cs.

◆ OnButtonAskArenaClicked()

void MainWindow.OnButtonAskArenaClicked ( object  sender,
EventArgs  e 
)
protected

Definition at line 496 of file MonitorUI.cs.

◆ OnButtonMouvClicked()

void MainWindow.OnButtonMouvClicked ( object  sender,
EventArgs  e 
)
protected

Definition at line 319 of file MonitorUI.cs.

◆ OnButtonRobotActivationClicked()

void MainWindow.OnButtonRobotActivationClicked ( object  sender,
EventArgs  e 
)
protected

Definition at line 264 of file MonitorUI.cs.

◆ OnButtonServerConnectionClicked()

void MainWindow.OnButtonServerConnectionClicked ( object  sender,
EventArgs  e 
)
protected

Definition at line 194 of file MonitorUI.cs.

◆ OnCheckButtonCameraOnClicked()

void MainWindow.OnCheckButtonCameraOnClicked ( object  sender,
EventArgs  e 
)
protected

Definition at line 379 of file MonitorUI.cs.

◆ OnCheckButtonRobotPositionClicked()

void MainWindow.OnCheckButtonRobotPositionClicked ( object  sender,
EventArgs  e 
)
protected

Definition at line 402 of file MonitorUI.cs.

◆ OnCommandReceivedEvent()

void MainWindow.OnCommandReceivedEvent ( string  header,
string  data,
byte []  buffer 
)

Definition at line 140 of file MonitorUI.cs.

◆ OnDeleteEvent()

void MainWindow.OnDeleteEvent ( object  sender,
DeleteEventArgs  a 
)
protected

Definition at line 131 of file MonitorUI.cs.

◆ OnDrawingAreaCameraExposeEvent()

void MainWindow.OnDrawingAreaCameraExposeEvent ( object  o,
ExposeEventArgs  args 
)
protected

Definition at line 426 of file MonitorUI.cs.

◆ OnQuitActionActivated()

void MainWindow.OnQuitActionActivated ( object  sender,
EventArgs  e 
)
protected

Definition at line 179 of file MonitorUI.cs.

◆ OnShowLogWindowActionActivated()

void MainWindow.OnShowLogWindowActionActivated ( object  sender,
EventArgs  e 
)
protected

Definition at line 187 of file MonitorUI.cs.

Member Data Documentation

◆ batteryTimer

System.Timers.Timer MainWindow.batteryTimer
private

Definition at line 23 of file MonitorUI.cs.

◆ cmdManager

DestijlCommandManager MainWindow.cmdManager
private

Definition at line 12 of file MonitorUI.cs.

◆ drawingareaCameraPixbuf

Pixbuf MainWindow.drawingareaCameraPixbuf
private

Definition at line 13 of file MonitorUI.cs.

◆ systemState

SystemState MainWindow.systemState = SystemState.NotConnected
private

Definition at line 22 of file MonitorUI.cs.


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