Pool Video Switch v2
Software video switch for distributed remote display in a lecture environment
Macros | Enumerations | Functions
mainwindow.cpp File Reference
#include "mainwindow.h"
#include <QSvgRenderer>
#include <QPainter>
#include <QImage>
#include <QMessageBox>
#include <QCloseEvent>
#include <QDialogButtonBox>
#include <QScreen>
#include "../serverapp/serverapp.h"
#include "../clicklabel/clicklabel.h"
#include "../sessionnamewindow/sessionnamewindow.h"
#include "../connectionframe/connectionframe.h"
#include "../helpwindow/helpwindow.h"
#include "../reloadroomwindow/reloadroomwindow.h"
#include "../net/listenserver.h"
#include "../net/client.h"
#include "../net/discoverylistener.h"
#include "../../shared/settings.h"
#include "../util/platform/screensaver.h"
#include "ui_mainwindow.h"
+ Include dependency graph for mainwindow.cpp:

Go to the source code of this file.

Macros

#define sStrTutorNdef   MainWindow::tr("No tutor defined.")
 
#define sStrTutorOffline   MainWindow::tr("Tutor is offline.")
 
#define sStrSourceNdef   MainWindow::tr("Please select a projection source.")
 
#define sStrSourceOffline   MainWindow::tr("The projection source is offline.")
 
#define sStrDestNdef   MainWindow::tr("Please select a projection destination.")
 
#define sStrDestOffline   MainWindow::tr("The projection destination is offline.")
 
#define sStrSourceDestSame   MainWindow::tr("Selected projection target is tutor.")
 
#define sStrNoDestAv   MainWindow::tr("No projection destination available.")
 
#define GRID(X, Y)   (grid[((X) * _tilesY) + (Y)])
 

Enumerations

enum  AspectStatus { GRID_OK, GRID_TOO_WIDE, GRID_TOO_TALL }
 

Functions

static int distance (QPoint a, QPoint b)
 Squared euclidean distance (why is this not implemented in QPoint?) More...
 
AspectStatus checkAspectRatio (const QSize &frameSize, const QSize &gridSize)
 check the difference in the aspect ratio between the frame size and the grid size. More...
 

Macro Definition Documentation

#define GRID (   X,
 
)    (grid[((X) * _tilesY) + (Y)])
#define sStrDestNdef   MainWindow::tr("Please select a projection destination.")

Definition at line 47 of file mainwindow.cpp.

#define sStrDestOffline   MainWindow::tr("The projection destination is offline.")

Definition at line 48 of file mainwindow.cpp.

#define sStrNoDestAv   MainWindow::tr("No projection destination available.")

Definition at line 50 of file mainwindow.cpp.

#define sStrSourceDestSame   MainWindow::tr("Selected projection target is tutor.")

Definition at line 49 of file mainwindow.cpp.

#define sStrSourceNdef   MainWindow::tr("Please select a projection source.")

Definition at line 45 of file mainwindow.cpp.

#define sStrSourceOffline   MainWindow::tr("The projection source is offline.")

Definition at line 46 of file mainwindow.cpp.

#define sStrTutorNdef   MainWindow::tr("No tutor defined.")

Definition at line 43 of file mainwindow.cpp.

#define sStrTutorOffline   MainWindow::tr("Tutor is offline.")

Definition at line 44 of file mainwindow.cpp.

Enumeration Type Documentation

Enumerator
GRID_OK 
GRID_TOO_WIDE 
GRID_TOO_TALL 

Definition at line 424 of file mainwindow.cpp.

Function Documentation

AspectStatus checkAspectRatio ( const QSize &  frameSize,
const QSize &  gridSize 
)

check the difference in the aspect ratio between the frame size and the grid size.

The parameters in here are hand-adjusted. Feel free to make it more or less sensitive.

Definition at line 431 of file mainwindow.cpp.

+ Here is the caller graph for this function:

static int distance ( QPoint  a,
QPoint  b 
)
static

Squared euclidean distance (why is this not implemented in QPoint?)

Definition at line 211 of file mainwindow.cpp.

+ Here is the caller graph for this function: