direcs  2012-09-30
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
SettingsDialog Class Reference

The dialog for all the programm settings. More...

#include <settingsDialog.h>

List of all members.

Signals

void setMaximumSpeed (int speed)
void setMinObstacleDistance (int distance)
void setMinObstacleDistanceLaserFront (int distance)
void setMinObstacleDistanceLaserRear (int distance)
void setMotorSpeed (int motor, int speed)
void setPassageWidth (int width)
void setRobotSlot (int angle)
void setStraightForwardDeviation (int deviation)

Public Member Functions

Qt::CheckState getCheckBoxSaveSettings ()
int getSliderMaximumSpeed (void)
int getSliderMinimumSpeed (void)
int getSliderMotorSpeed (int motor)
int getSliderObstacleLaserScannerValue ()
int getSliderObstacleValue ()
int getSliderPassageWidth ()
int getSliderStraightForwardDeviationValue ()
void setCheckBoxSaveSettings (Qt::CheckState state)
void setSliderMaximumSpeed (int speed)
void setSliderMinimumSpeed (int speed)
void setSliderMotorSpeed (int motor, int value)
void setSliderObstacleLaserScannerValue (int value)
void setSliderObstacleValue (int value)
void setSliderPassageWidth (int width)
void setSliderStraightForwardDeviation (int angle)
 SettingsDialog (QWidget *parent=0)

Private Slots

void on_sliderAllMotorsSpeed_sliderReleased ()
void on_sliderMaximumSpeed_sliderReleased ()
void on_sliderMotor1Speed_sliderReleased ()
void on_sliderMotor2Speed_sliderReleased ()
void on_sliderMotor3Speed_sliderReleased ()
void on_sliderMotor4Speed_sliderReleased ()

Private Attributes

Ui::settingsDialog ui

Static Private Attributes

static const unsigned char ALLMOTORS = 90
 Motor 4 (back right)
static const unsigned char MOTOR1 = 10
static const unsigned char MOTOR2 = 20
 Motor 1 (front left)
static const unsigned char MOTOR3 = 30
 Motor 2 (front right)
static const unsigned char MOTOR4 = 40
 Motor 3 (back left)

Detailed Description

The dialog for all the programm settings.

Author:
Markus Knapp Dialog for showing the current settings or to let them change / interact with the main window.

Definition at line 35 of file settingsDialog.h.


Constructor & Destructor Documentation

SettingsDialog::SettingsDialog ( QWidget *  parent = 0)
Todo:
implement second signal for second laser!

Definition at line 23 of file settingsDialog.cpp.

Here is the call graph for this function:


Member Function Documentation

Qt::CheckState SettingsDialog::getCheckBoxSaveSettings ( )
Returns:
The state of a Qt checkBox.

Definition at line 139 of file settingsDialog.cpp.

Here is the caller graph for this function:

int SettingsDialog::getSliderMaximumSpeed ( void  )
Returns:
The slider value of the maximum speed.

Definition at line 109 of file settingsDialog.cpp.

Here is the caller graph for this function:

int SettingsDialog::getSliderMinimumSpeed ( void  )
Returns:
The slider value of the minimum speed.

Definition at line 103 of file settingsDialog.cpp.

Here is the caller graph for this function:

int SettingsDialog::getSliderMotorSpeed ( int  motor)
Returns:
The slider value of a motor speed.
Parameters:
motoris the motor number.

Definition at line 86 of file settingsDialog.cpp.

Here is the caller graph for this function:

int SettingsDialog::getSliderObstacleLaserScannerValue ( )
Returns:
The slider value of an obstacle distance for the laser scanner (when a alarm should be released).

Definition at line 121 of file settingsDialog.cpp.

Here is the caller graph for this function:

int SettingsDialog::getSliderObstacleValue ( )
Returns:
The slider value of an obstacle distance for the infrared and ultrasonic sensors (when a alarm should be released).

Definition at line 115 of file settingsDialog.cpp.

Here is the caller graph for this function:

int SettingsDialog::getSliderPassageWidth ( )
Returns:
The width of a possible robot passage in centimeters (cm) where to drive through.

Definition at line 127 of file settingsDialog.cpp.

Here is the caller graph for this function:

int SettingsDialog::getSliderStraightForwardDeviationValue ( )
Returns:
The slider value of the deviation to drive forward (deviation to 90 degrees).

Definition at line 133 of file settingsDialog.cpp.

Here is the caller graph for this function:

void SettingsDialog::on_sliderAllMotorsSpeed_sliderReleased ( )
privateslot

Definition at line 204 of file settingsDialog.cpp.

Here is the call graph for this function:

void SettingsDialog::on_sliderMaximumSpeed_sliderReleased ( )
privateslot

Definition at line 225 of file settingsDialog.cpp.

Here is the call graph for this function:

void SettingsDialog::on_sliderMotor1Speed_sliderReleased ( )
privateslot

Definition at line 161 of file settingsDialog.cpp.

Here is the call graph for this function:

void SettingsDialog::on_sliderMotor2Speed_sliderReleased ( )
privateslot

Definition at line 174 of file settingsDialog.cpp.

Here is the call graph for this function:

void SettingsDialog::on_sliderMotor3Speed_sliderReleased ( )
privateslot

Definition at line 184 of file settingsDialog.cpp.

Here is the call graph for this function:

void SettingsDialog::on_sliderMotor4Speed_sliderReleased ( )
privateslot

Definition at line 194 of file settingsDialog.cpp.

Here is the call graph for this function:

void SettingsDialog::setCheckBoxSaveSettings ( Qt::CheckState  state)

Checks or unckecks the SaveSettings checkbox, depending on the value read from the ini-file.

Definition at line 268 of file settingsDialog.cpp.

Here is the caller graph for this function:

void SettingsDialog::setMaximumSpeed ( int  speed)
signal

Emits the new maximum speed of the robot(s motors).

Parameters:
speedis the speed (0 - 255).

Here is the caller graph for this function:

void SettingsDialog::setMinObstacleDistance ( int  distance)
signal

This signal emits set the minimum distance, which the robot needs. Used by the infrared and ultra sonic sensors.

Parameters:
distancein centimeters
See also:
ObstacleCheckThread

Here is the caller graph for this function:

void SettingsDialog::setMinObstacleDistanceLaserFront ( int  distance)
signal

This signal emits the minimum distance, which the robot needs. Used by the laser scanner.

Parameters:
distancein centimeters
See also:
ObstacleCheckThread::setMinObstacleDistanceLaserFront

Here is the caller graph for this function:

void SettingsDialog::setMinObstacleDistanceLaserRear ( int  distance)
signal

This signal emits the minimum distance, which the robot needs. Used by the laser scanner.

Parameters:
distancein centimeters
See also:
ObstacleCheckThread::setMinObstacleDistanceLaserRear
void SettingsDialog::setMotorSpeed ( int  motor,
int  speed 
)
signal

Emits the speed of a motor.

Parameters:
motoris the motor number.
speedis the speed (0 - 255).

Here is the caller graph for this function:

void SettingsDialog::setPassageWidth ( int  width)
signal

This signal emits the passage width in centimeters (cm), where the robots has to fit through.

See also:
ObstacleCheckThread

Here is the caller graph for this function:

void SettingsDialog::setRobotSlot ( int  angle)
signal

This signal emits the angle, where the robots has to fit through.

See also:
ObstacleCheckThread
void SettingsDialog::setSliderMaximumSpeed ( int  speed)

Sets the slider maximum speed.

Parameters:
speedis the maximum speed of the motors.

Definition at line 238 of file settingsDialog.cpp.

Here is the caller graph for this function:

void SettingsDialog::setSliderMinimumSpeed ( int  speed)

Sets the slider minimum speed.

Parameters:
speedis the minimum speed of the motors.

Definition at line 232 of file settingsDialog.cpp.

Here is the caller graph for this function:

void SettingsDialog::setSliderMotorSpeed ( int  motor,
int  value 
)

Sets the slider MotorSpeed.

Parameters:
motoris the motor number.
valueis the speed of the motor.

Definition at line 145 of file settingsDialog.cpp.

Here is the caller graph for this function:

void SettingsDialog::setSliderObstacleLaserScannerValue ( int  value)

Sets the slider value of an obstacle distance for the laser scanner (when a alarm should be released).

Parameters:
valueis distance in cm.

Definition at line 250 of file settingsDialog.cpp.

Here is the caller graph for this function:

void SettingsDialog::setSliderObstacleValue ( int  value)

Sets the slider value of an obstacle distance for the infrared and ultrasonic sensors (when a alarm should be released).

Parameters:
valueis distance in cm.

Definition at line 244 of file settingsDialog.cpp.

Here is the caller graph for this function:

void SettingsDialog::setSliderPassageWidth ( int  width)

Sets the slider value of the passage width, where the robot has to fit through.

Parameters:
widthis the minimum width in centimeters (cm).

Definition at line 256 of file settingsDialog.cpp.

Here is the caller graph for this function:

void SettingsDialog::setSliderStraightForwardDeviation ( int  angle)

Sets the slider value of the deviation to drive forward (deviation to 90 degrees).

Parameters:
angleis the maximum angle in degrees.

Definition at line 262 of file settingsDialog.cpp.

Here is the caller graph for this function:

void SettingsDialog::setStraightForwardDeviation ( int  deviation)
signal

This signal emit the deviation to 90 degrees when the robot drives forward.

Parameters:
deviationis the angle in degrees.
See also:
ObstacleCheckThread

Here is the caller graph for this function:


Member Data Documentation

const unsigned char SettingsDialog::ALLMOTORS = 90
staticprivate

Motor 4 (back right)

Definition at line 210 of file settingsDialog.h.

const unsigned char SettingsDialog::MOTOR1 = 10
staticprivate

Definition at line 206 of file settingsDialog.h.

const unsigned char SettingsDialog::MOTOR2 = 20
staticprivate

Motor 1 (front left)

Definition at line 207 of file settingsDialog.h.

const unsigned char SettingsDialog::MOTOR3 = 30
staticprivate

Motor 2 (front right)

Definition at line 208 of file settingsDialog.h.

const unsigned char SettingsDialog::MOTOR4 = 40
staticprivate

Motor 3 (back left)

Definition at line 209 of file settingsDialog.h.

Ui::settingsDialog SettingsDialog::ui
private

Event handler for the "About Qt" button.

Definition at line 204 of file settingsDialog.h.


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