rosprocessbutton.cpp
Go to the documentation of this file.
00001 #include "rosprocessbutton.h"
00002 #include <QtCore>
00003 #include <QPushButton>
00004 #include <iostream>
00005 #include <QContextMenuEvent>
00006 #include <QMenu>
00007 
00008 RosProcessButton::RosProcessButton(QWidget *parent = 0):
00009     QPushButton(parent)
00010 {
00011 }
00012 
00013 void RosProcessButton::contextMenuEvent ( QContextMenuEvent * event )
00014 {
00015     QMenu menu(this);
00016     menu.addAction("Start in terminal");
00017     menu.addAction("Kill process");
00018 
00019 
00020     connect(menu.actions()[0], SIGNAL(triggered()), this, SIGNAL(startInTerminalPushed()));
00021     connect(menu.actions()[1], SIGNAL(triggered()), this, SIGNAL(killPushed()));
00022     menu.exec(event->globalPos());
00023 }


obj_rec_gui
Author(s): AGAS/agas@uni-koblenz.de
autogenerated on Mon Oct 6 2014 02:53:43