Ejemplo n.º 1
0
RefBoxWidget::~RefBoxWidget()
{
    disconnect(Play_On_bot, SIGNAL(clicked()), this, SLOT(PlayOnPressed()));
    disconnect(Stop_bot, SIGNAL(clicked()), this, SLOT(StopPressed()));
    disconnect(Halt_bot, SIGNAL(clicked()), this, SLOT(HaltPressed()));
    disconnect(Dropped_bot, SIGNAL(clicked()), this, SLOT(DroppedBallPressed()));
    disconnect(Parking_bot, SIGNAL(clicked()), this, SLOT(ParkingPressed()));
    disconnect(Our_Kick_Off_bot, SIGNAL(clicked()), this, SLOT(OurKickOffPressed()));
    disconnect(Our_Free_Kick_bot, SIGNAL(clicked()), this, SLOT(OurFreeKickPressed()));
    disconnect(Our_Goal_Kick_bot, SIGNAL(clicked()), this, SLOT(OurGoalKickPressed()));
    disconnect(Our_Throwin_bot, SIGNAL(clicked()), this, SLOT(OurThrowinPressed()));
    disconnect(Our_Corner_Kick_bot, SIGNAL(clicked()), this, SLOT(OurCornerKickPressed()));
    disconnect(Our_Penalty_bot, SIGNAL(clicked()), this, SLOT(OurPenaltyPressed()));
    disconnect(Their_Kick_Off_bot, SIGNAL(clicked()), this, SLOT(TheirKickOffPressed()));
    disconnect(Their_Free_Kick_bot, SIGNAL(clicked()), this, SLOT(TheirFreeKickPressed()));
    disconnect(Their_Goal_Kick_bot, SIGNAL(clicked()), this, SLOT(TheirGoalKickPressed()));
    disconnect(Their_Throwin_bot, SIGNAL(clicked()), this, SLOT(TheirThrowinPressed()));
    disconnect(Their_Corner_Kick_bot, SIGNAL(clicked()), this, SLOT(TheirCornerKickPressed()));
    disconnect(Their_Penalty_bot, SIGNAL(clicked()), this, SLOT(TheirPenaltyPressed()));
    disconnect(UpdateTimer, SIGNAL(timeout()), this, SLOT(updateStateInfo()));
    disconnect(Joystick_bot, SIGNAL(clicked()), this, SLOT(JoystickPressed()));

    delete RBDialog;
    delete UpdateTimer;
}
Ejemplo n.º 2
0
void ToolBar::MakeActions()
{
	m_open_action = addAction(tr("Open"), this, SIGNAL(OpenPressed()));
	m_play_action = addAction(tr("Play"), this, SIGNAL(PlayPressed()));
	m_pause_action = addAction(tr("Pause"), this, SIGNAL(PausePressed()));
	m_stop_action = addAction(tr("Stop"), this, SIGNAL(StopPressed()));
	m_fullscreen_action = addAction(tr("Full Screen"), this, SIGNAL(FullScreenPressed()));
	m_screenshot_action = addAction(tr("Screen Shot"), this, SIGNAL(ScreenShotPressed()));

	addSeparator();

	m_paths_action = addAction(tr("Paths"), this, SIGNAL(PathsPressed()));
	m_config_action = addAction(tr("Settings"), this, SIGNAL(SettingsPressed()));
	m_controllers_action = addAction(tr("Controllers"));
	m_controllers_action->setEnabled(false);
}
Ejemplo n.º 3
0
RefBoxWidget::RefBoxWidget(QWidget *parent)
{
    setupUi(parent);

    RBDialog = new QDialog(parent);
    UpdateTimer = new QTimer();
    rosNode = new ros::NodeHandle();

    RefereeBoxInfoBodyPublisher = rosNode->advertise<msl_msgs::RefBoxCommand>("/RefereeBoxInfoBody", 2);

    /* Inicialização das comboboxes (our & their)*/

    /* conecções */

    connect(Play_On_bot, SIGNAL(clicked()), this, SLOT(PlayOnPressed()));
    connect(Stop_bot, SIGNAL(clicked()), this, SLOT(StopPressed()));
    connect(Halt_bot, SIGNAL(clicked()), this, SLOT(HaltPressed()));
    connect(Dropped_bot, SIGNAL(clicked()), this, SLOT(DroppedBallPressed()));
    connect(Parking_bot, SIGNAL(clicked()), this, SLOT(ParkingPressed()));

    // our
    connect(Our_Kick_Off_bot, SIGNAL(clicked()), this, SLOT(OurKickOffPressed()));
    connect(Our_Free_Kick_bot, SIGNAL(clicked()), this, SLOT(OurFreeKickPressed()));
    connect(Our_Goal_Kick_bot, SIGNAL(clicked()), this, SLOT(OurGoalKickPressed()));
    connect(Our_Throwin_bot, SIGNAL(clicked()), this, SLOT(OurThrowinPressed()));
    connect(Our_Corner_Kick_bot, SIGNAL(clicked()), this, SLOT(OurCornerKickPressed()));
    connect(Our_Penalty_bot, SIGNAL(clicked()), this, SLOT(OurPenaltyPressed()));

    // their
    connect(Their_Kick_Off_bot, SIGNAL(clicked()), this, SLOT(TheirKickOffPressed()));
    connect(Their_Free_Kick_bot, SIGNAL(clicked()), this, SLOT(TheirFreeKickPressed()));
    connect(Their_Goal_Kick_bot, SIGNAL(clicked()), this, SLOT(TheirGoalKickPressed()));
    connect(Their_Throwin_bot, SIGNAL(clicked()), this, SLOT(TheirThrowinPressed()));
    connect(Their_Corner_Kick_bot, SIGNAL(clicked()), this, SLOT(TheirCornerKickPressed()));
    connect(Their_Penalty_bot, SIGNAL(clicked()), this, SLOT(TheirPenaltyPressed()));

    connect(Joystick_bot, SIGNAL(clicked()), this, SLOT(JoystickPressed()));

    connect(UpdateTimer, SIGNAL(timeout()), this, SLOT(updateStateInfo()));

    UpdateTimer->start(50);
}