Aquila  2.0 prealpha
Cognitive Robotics Architecture
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Slots | Signals | Public Member Functions | Public Attributes | List of all members
MainWindow Class Reference

#include <mainWindow.h>

Inheritance diagram for MainWindow:

Classes

struct  Server
 

Public Slots

bool addModule ()
 Adds a new module instance to a new tab.
 
bool addModule ()
 

Signals

void quitting ()
 
void quitting ()
 

Public Member Functions

 MainWindow (QWidget *parent=0, QString aquilaVersion=0, QString hostName=0, QString yarpVersion=0)
 Constructor.
 
 ~MainWindow ()
 Destructor.
 
void createViewMenu ()
 Creates view menu.
 
void createToolsMenu ()
 Creates tools menu.
 
void createHelpMenu ()
 Creates help menu.
 
void showProgressBar ()
 Shows progress bar.
 
void hideProgressBar ()
 Hides progress bar.
 
void probeServers (bool useRemoteServers)
 Probes available servers.
 
void addLocalModules (QStringList requestedModule)
 Adds requested local modules.
 
void addRemoteModules (QVector< Server > requestedModules)
 Adds requested remote modules.
 
void setProgressBarValue (int currentValue)
 Sets progress bar value.
 
bool progressBarVisible ()
 
bool addModule (QString module, QString server)
 Adds a new module instance to a new tab.
 
 MainWindow (QWidget *parent=0, QString aquilaVersion=0, QString hostName=0, QString yarpVersion=0)
 
 ~MainWindow ()
 
void createViewMenu ()
 
void createToolsMenu ()
 
void createHelpMenu ()
 
void showProgressBar ()
 
void hideProgressBar ()
 
void probeServers (bool useRemoteServers)
 
void addLocalModules (QStringList requestedModule)
 
void addRemoteModules (QVector< Server > requestedModules)
 
void setProgressBarValue (int currentValue)
 
bool progressBarVisible ()
 
bool addModule (QString module, QString server)
 

Public Attributes

Ui::MainWindow * ui
 
ModuleGenerator moduleGenerator
 
TabWidgettabWidget
 

Constructor & Destructor Documentation

MainWindow::MainWindow ( QWidget *  parent = 0,
QString  aquilaVersion = 0,
QString  hostName = 0,
QString  yarpVersion = 0 
)

Constructor.

Parameters
[in]parent- MainWindow parent
[in]aquilaVersion- Aquila version
[in]hostName- local host name
[in]yarpVersion- minimum YARP version required
MainWindow::~MainWindow ( )

Destructor.

MainWindow::MainWindow ( QWidget *  parent = 0,
QString  aquilaVersion = 0,
QString  hostName = 0,
QString  yarpVersion = 0 
)
MainWindow::~MainWindow ( )

Member Function Documentation

void MainWindow::addLocalModules ( QStringList  requestedModules)

Adds requested local modules.

Parameters
[in]requestedModules- requested local modules
void MainWindow::addLocalModules ( QStringList  requestedModule)
bool MainWindow::addModule ( QString  module,
QString  server 
)

Adds a new module instance to a new tab.

Parameters
[in]module- name of module executable
[in]server- name of server running module
Note
developer: update this part with any new modules that you wish to add
bool MainWindow::addModule ( QString  module,
QString  server 
)
bool MainWindow::addModule ( )
slot

Adds a new module instance to a new tab.

Note
This function is called once the addTab button in the new tab dialog was pressed.
Returns
true on success
bool MainWindow::addModule ( )
slot
void MainWindow::addRemoteModules ( QVector< Server requestedModules)

Adds requested remote modules.

Parameters
[in]requestedModules- requested remote modules
void MainWindow::addRemoteModules ( QVector< Server requestedModules)
void MainWindow::createHelpMenu ( )

Creates help menu.

void MainWindow::createHelpMenu ( )
void MainWindow::createToolsMenu ( )

Creates tools menu.

void MainWindow::createToolsMenu ( )
void MainWindow::createViewMenu ( )

Creates view menu.

void MainWindow::createViewMenu ( )
void MainWindow::hideProgressBar ( )

Hides progress bar.

void MainWindow::hideProgressBar ( )
void MainWindow::probeServers ( bool  useRemoteServers)

Probes available servers.

Parameters
[in]useRemoteServers- if on, probe remote servers
Note
This function detects all servers on a local network and are running Aquila server
named as /aquila/server/ID where ID can be anything between 0 and MAX_SERVERS.
Once a server is found, this function will probe it and will look for compiled modules.
void MainWindow::probeServers ( bool  useRemoteServers)
bool MainWindow::progressBarVisible ( )
bool MainWindow::progressBarVisible ( )
void MainWindow::quitting ( )
signal
void MainWindow::quitting ( )
signal
void MainWindow::setProgressBarValue ( int  currentValue)

Sets progress bar value.

Parameters
[in]currentValue- new progress bar value
void MainWindow::setProgressBarValue ( int  currentValue)
void MainWindow::showProgressBar ( )

Shows progress bar.

void MainWindow::showProgressBar ( )

Member Data Documentation

ModuleGenerator MainWindow::moduleGenerator
TabWidget * MainWindow::tabWidget
Ui::MainWindow * MainWindow::ui

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