void ConfigWidget::makeConnections()
{
    // networkPage Connections
    connect(networkPage, SIGNAL(ipChanged(QString)), udpClient, SLOT(setOtherNodeAddress(QString)));
    connect(networkPage, SIGNAL(portChanged(int)), udpClient, SLOT(setOtherNodePort(int)));

    // settingsPage Connections
    connect(settingsPage, SIGNAL(connectClicked()), udpClient, SLOT(startSocket()));
    connect(settingsPage, SIGNAL(sendClicked(QString)), udpClient, SLOT(sendUserCommand(QString)));
    connect(settingsPage, SIGNAL(disconnectClicked()), udpClient, SLOT(stopSocket()));
    connect(settingsPage, SIGNAL(configFileSelected(QString)), ConfigFileHandler::instance(), SLOT(handleFile(QString)));

    // consolePage Connections
    connect(consolePage, SIGNAL(startClicked()), this, SLOT(startConsoleStream()));
    connect(consolePage, SIGNAL(stopClicked()), this, SLOT(stopConsoleStream()));

    // ConfigFileHandler Connections
    connect(ConfigFileHandler::instance(), SIGNAL(commandFromFile(QString)), udpClient, SLOT(sendUserCommand(QString)));

    // udpClient Connection
    connect(udpClient, SIGNAL(dataReplyReceived(QString)), settingsPage, SLOT(addToViewer(QString)));
    connect(udpClient, SIGNAL(connectionChanged(bool)), networkPage, SLOT(adjustToConnection(bool)));
    connect(udpClient, SIGNAL(connectionChanged(bool)), settingsPage, SLOT(adjustToConnection(bool)));
    connect(udpClient, SIGNAL(connectionChanged(bool)), consolePage, SLOT(adjustToConnection(bool)));
}
Ejemplo n.º 2
0
Chat::Chat(QWidget *parent)
: QDialog(parent), ui(new Ui_Chat)
{
    //! [Construct UI]
    ui->setupUi(this);

#if defined (Q_OS_SYMBIAN) || defined(Q_OS_WINCE) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)
    setWindowState(Qt::WindowFullScreen);
#endif

    connect(ui->quitButton, SIGNAL(clicked()), this, SLOT(accept()));
    connect(ui->connectButton, SIGNAL(clicked()), this, SLOT(connectClicked()));
    connect(ui->sendButton, SIGNAL(clicked()), this, SLOT(sendClicked()));
    //! [Construct UI]

    //! [Create Chat Server]
    server = new ChatServer(this);
    connect(server, SIGNAL(clientConnected(QString)), this, SLOT(clientConnected(QString)));
    connect(server, SIGNAL(clientDisconnected(QString)), this, SLOT(clientDisconnected(QString)));
    connect(server, SIGNAL(messageReceived(QString,QString)),
            this, SLOT(showMessage(QString,QString)));
    connect(this, SIGNAL(sendMessage(QString)), server, SLOT(sendMessage(QString)));
    server->startServer();
    //! [Create Chat Server]

    //! [Get local device name]
    localName = QBluetoothLocalDevice().name();
    //! [Get local device name]
}
Ejemplo n.º 3
0
Chat::Chat(QWidget *parent)
    : QDialog(parent),  currentAdapterIndex(0), ui(new Ui_Chat)
{
    ui->setupUi(this);

    connect(ui->quitButton, SIGNAL(clicked()), this, SLOT(accept()));
    connect(ui->connectButton, SIGNAL(clicked()), this, SLOT(connectClicked()));
    connect(ui->sendButton, SIGNAL(clicked()), this, SLOT(sendClicked()));

    localAdapters = QBluetoothLocalDevice::allDevices();
    if (localAdapters.count() < 2) {
        ui->localAdapterBox->setVisible(false);
    } else {
        //we ignore more than two adapters
        ui->localAdapterBox->setVisible(true);
        ui->firstAdapter->setText(tr("Default (%1)", "%1 = Bluetooth address").
                                  arg(localAdapters.at(0).address().toString()));
        ui->secondAdapter->setText(localAdapters.at(1).address().toString());
        ui->firstAdapter->setChecked(true);
        connect(ui->firstAdapter, SIGNAL(clicked()), this, SLOT(newAdapterSelected()));
        connect(ui->secondAdapter, SIGNAL(clicked()), this, SLOT(newAdapterSelected()));
        QBluetoothLocalDevice adapter(localAdapters.at(0).address());
        adapter.setHostMode(QBluetoothLocalDevice::HostDiscoverable);
    }

    server = new ChatServer(this);
    connect(server, SIGNAL(clientConnected(QString)), this, SLOT(clientConnected(QString)));
    connect(server, SIGNAL(clientDisconnected(QString)), this, SLOT(clientDisconnected(QString)));
    connect(server, SIGNAL(messageReceived(QString,QString)),
            this, SLOT(showMessage(QString,QString)));
    connect(this, SIGNAL(sendMessage(QString)), server, SLOT(sendMessage(QString)));
    server->startServer();

    localName = QBluetoothLocalDevice().name();
}
Ejemplo n.º 4
0
void TutorialUnitGui::on_connectButton_clicked(bool checked)
{
    if(checked)
        emit connectClicked();
    else
        emit disconnectClicked();
}
Ejemplo n.º 5
0
connectDialog::connectDialog(QWidget *parent) : QDialog(parent) {

	setupUi(this) ;

	connect(serversButton,SIGNAL(clicked()),this,SLOT(serversClicked())) ;
	connect(connectButton,SIGNAL(clicked()),this,SLOT(connectClicked())) ;
	connect(quitButton,SIGNAL(clicked()),qApp,SLOT(quit())) ;

	updateList() ;

}
Ejemplo n.º 6
0
void KonferencePart::setupLocationComboBox()
{
	m_location = new KHistoryCombo( this );
	m_location->completionObject()->setItems( KonferenceSettings::completitionList() );
	m_location->setHistoryItems( KonferenceSettings::historyList() );
	if ( !m_location->historyItems().contains( "sip://" ) )
		m_location->insertURL( KURL( "sip://" ) );
	else
		m_location->setCurrentText( "sip://" );

	connect( m_location, SIGNAL( returnPressed() ), this, SLOT( connectClicked() ) );
}
Ejemplo n.º 7
0
ConnectDialog::ConnectDialog()
	: QDialog(0)
{
	setModal(true);

	QGridLayout *layout = new QGridLayout(this);
	setLayout(layout);


	QLabel *hostLabel = new QLabel("Host", this);
	layout->addWidget(hostLabel, 0, 0);
	wHost = new QLineEdit("localhost", this);
	connect(wHost, SIGNAL(textChanged(QString)), this, SIGNAL(hostUpdated(QString)));
	layout->addWidget(wHost, 0, 1);

	QLabel *portLabel = new QLabel("Port", this);
	layout->addWidget(portLabel, 1, 0);
	wPort = new QSpinBox(this);
	wPort->setRange(0, 65535);
	wPort->setValue(7000);
	connect(wPort, SIGNAL(valueChanged(int)), this, SLOT(sendPortUpdated(int)));
	layout->addWidget(wPort, 1, 1);

	QLabel *userLabel = new QLabel("User", this);
	layout->addWidget(userLabel, 2, 0);
	wUser = new QLineEdit(this);
	connect(wUser, SIGNAL(textChanged(QString)), this, SIGNAL(userUpdated(QString)));
	layout->addWidget(wUser, 2, 1);

	QLabel *passwdLabel = new QLabel("Password", this);
	layout->addWidget(passwdLabel, 3, 0);
	wPasswd = new QLineEdit(this);
	wPasswd->setEchoMode(QLineEdit::Password);
	connect(wPasswd, SIGNAL(textChanged(QString)), this, SIGNAL(passwdUpdated(QString)));
	layout->addWidget(wPasswd, 3, 1);
	
	
	wConnect = new QPushButton("Connect");
	wConnect->setDefault(true);
	connect(wConnect, SIGNAL(clicked()), this, SIGNAL(connectClicked()));
	
	QPushButton *cancel = new QPushButton("Cancel");
	connect(cancel, SIGNAL(clicked()), this, SLOT(close()));
	
	QDialogButtonBox *buttonBox = new QDialogButtonBox(this);
	buttonBox->addButton(wConnect, QDialogButtonBox::AcceptRole);
	buttonBox->addButton(cancel, QDialogButtonBox::RejectRole);
	
	layout->addWidget(buttonBox, 4, 1);
}
ConnectionEditor::ConnectionEditor(QWidget* parent, QObject* sndr, QObject* rcvr, FormWindow* fw)
  : ConnectionEditorBase(parent, 0, true), m_formWindow(fw)
{
  if (!rcvr || rcvr == m_formWindow)
    rcvr = m_formWindow->mainContainer();
  if (!sndr || sndr == m_formWindow)
    sndr = m_formWindow->mainContainer();
  m_sender = sndr;
  m_receiver = rcvr;

  /* Create widget list */
  QStringList lst;
  lst << m_formWindow->name();
  for (QPtrDictIterator<QWidget> it(*m_formWindow->widgets()); it.current(); ++it)
  {
    if (it.current()->isVisibleTo(this) &&
        !it.current()->inherits("QLayoutWidget") &&
        !it.current()->inherits("Spacer") &&
        qstrcmp(it.current()->name(), "central widget") &&
        !m_formWindow->isMainContainer(it.current()) &&
        !lst.contains(it.current()->name()))
      lst << it.current()->name();
  }
  
  // Fill receiver combos with widget list    
//  fillWidgetList(comboReceiver, lst, m_receiver->name());
  
  // Fill receiver combos with widget and action list    
  for (QPtrListIterator<QAction> it(m_formWindow->actionList()); it.current(); ++it)
    lst << it.current()->name();
  lst.sort();
  fillWidgetList(comboReceiver, lst, m_receiver->name());
  fillWidgetList(comboSender, lst, m_sender->name());
  senderChanged(m_sender->name());
  fillConnectionsList();
  updateConnectButton();
  updateDisconnectButton();
  
  // Connections
  connect(comboSender, SIGNAL(activated(const QString&)), SLOT(senderChanged(const QString&)));
  connect(comboReceiver, SIGNAL(activated(const QString&)), SLOT(receiverChanged(const QString&)));
  connect(signalBox, SIGNAL(selectionChanged()), SLOT(updateConnectButton()));
  connect(slotBox, SIGNAL(selectionChanged()), SLOT(updateConnectButton()));
  connect(connectButton, SIGNAL(clicked()), SLOT(connectClicked()));
  connect(disconnectButton, SIGNAL(clicked()), SLOT(disconnectClicked()));
  connect(okButton, SIGNAL(clicked()), SLOT(okClicked()));
  connect(cancelButton, SIGNAL(clicked()), SLOT(cancelClicked()));
  connect(signalBox, SIGNAL(doubleClicked(QListBoxItem*)), SLOT(connectClicked()));
  connect(slotBox, SIGNAL(doubleClicked(QListBoxItem*)), SLOT(connectClicked()));
}
Ejemplo n.º 9
0
VerticalMenuWidget::VerticalMenuWidget(QWidget *parent) :
    AbstractMenuWidget(parent),
    ui(new Ui::VerticalMenuWidget)
{
    ui->setupUi(this);
    connect(ui->btnAbout,SIGNAL(clicked()),this,SIGNAL(showAbout()));
    connect(ui->btnExit,SIGNAL(clicked()),this,SIGNAL(exitClicked()));
    connect(ui->btnFiles,SIGNAL(clicked()),this,SIGNAL(showFiles()));
    connect(ui->btnArtists,SIGNAL(clicked()),this,SIGNAL(showArtists()));
    connect(ui->btnAlbums,SIGNAL(clicked()),this,SIGNAL(showAlbums()));
    connect(ui->btnConnect,SIGNAL(clicked()),this,SIGNAL(connectClicked()));
    connect(ui->btnCurrentSong,SIGNAL(clicked()),this,SIGNAL(showCurrentSong()));
    connect(ui->btnSettings,SIGNAL(clicked()),this,SIGNAL(showSettings()));
    connect(ui->btnPlaylists,SIGNAL(clicked()),this,SIGNAL(showPlaylist()));
}
Ejemplo n.º 10
0
TutorialUnitGui::TutorialUnitGui(TutorialUnit *control, GraphicsView *scene) :
    ui(new Ui::TutorialUnitGui),
    mController(control),
    mScene(scene)
{
    ui->setupUi(this);
    connect(mController, SIGNAL(connectStatusChanged(bool)), SLOT(updateStatus(bool)));
    connect(mController, SIGNAL(positionUpdated(QPointF,qreal)), SLOT(onPositionUpdate(QPointF, qreal)));
    connect(this, SIGNAL(connectClicked()), mController, SLOT(acquireHardware()));
    connect(this, SIGNAL(disconnectClicked()), mController, SLOT(releaseHardware()));
    connect(this, SIGNAL(resetSystem()), mController, SLOT(resetSetup()));
    connect(this, SIGNAL(resetSystemRandom()), mController, SLOT(resetSetupRandom()));
    scene->show();
    scene->hide();
}
Ejemplo n.º 11
0
    MatlabControlWidget::MatlabControlWidget(QWidget *_parent)
        : QWidget(_parent)
    {
        setupUi(this);
        connect(connectButton, SIGNAL(clicked()), this, SLOT(connectClicked()));
        connect(disconnectButton, SIGNAL(clicked()), this, SIGNAL(requestDisconnect()));
        connect(setPathButton, SIGNAL(clicked()), this, SLOT(showPathDialog()));

        pathEdit->setEnabled(false);

        QSettings settings(QApplication::organizationName(), QApplication::applicationName());
        QString lastDir = settings.value("matlab/path",  QApplication::applicationDirPath()).toString();
        pathEdit->setText(lastDir);

        setDisconnected();

    }
Ejemplo n.º 12
0
void PageNet::slotConnect()
{
    HWNetServersModel * model = static_cast<HWNetServersModel *>(tvServersList->model());
    QModelIndex mi = tvServersList->currentIndex();
    if(!mi.isValid())
    {
        QMessageBox serverMsg(this);
        serverMsg.setIcon(QMessageBox::Warning);
        serverMsg.setWindowTitle(QMessageBox::tr("Netgame - Error"));
        serverMsg.setText(QMessageBox::tr("Please select a server from the list"));
        serverMsg.setWindowModality(Qt::WindowModal);
        serverMsg.exec();
        return;
    }
    QString host = model->index(mi.row(), 1).data().toString();
    quint16 port = model->index(mi.row(), 2).data().toUInt();

    emit connectClicked(host, port);
}
Ejemplo n.º 13
0
ServerTester::ServerTester(QWidget *parent):
QWidget(parent),
m_connected(0)
{
    this->setWindowTitle("KBang Server Tester");
    mp_lineEditAddress = new QLineEdit;
    mp_lineEditAddress->setText("127.0.0.1");
    mp_lineEditAddress->setMaxLength(15);
    mp_lineEditAddress->setInputMask("009.009.009.009; ");
    mp_lineEditAddress->setMaximumWidth(100);
    mp_lineEditPort = new QLineEdit;
    mp_lineEditPort->setText("6543");
    mp_lineEditPort->setMaxLength(6);
    mp_lineEditPort->setMaximumWidth(40);
    QValidator *portValidator = new QIntValidator(1, 65535, this);
    mp_lineEditPort->setValidator(portValidator);

    mp_pushButtonConnect = new QPushButton;
    mp_pushButtonConnect->setText("Connect");
    mp_pushButtonConnect->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed);

    mp_layoutButtons = new QGridLayout;

    mp_layoutConnect = new QHBoxLayout;
    mp_layoutConnect->addWidget(mp_lineEditAddress);
    mp_layoutConnect->addWidget(mp_lineEditPort);
    mp_layoutConnect->addWidget(mp_pushButtonConnect);


    mp_textEditViewXml = new QTextEdit;
    mp_textEditViewXml->setReadOnly(1);
    mp_textEditViewXml->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
    mp_textEditInputXml = new QTextEdit;
    mp_textEditInputXml->setMaximumHeight(100);
    mp_pushButtonSendXml = new QPushButton;
    mp_pushButtonSendXml->setText("Send");
    mp_pushButtonSendXml->setEnabled(0);

    mp_layoutXmlInput = new QHBoxLayout;
    mp_layoutXmlInput->addWidget(mp_textEditInputXml);
    mp_layoutXmlInput->addWidget(mp_pushButtonSendXml);



    mp_layoutLeftSide = new QVBoxLayout;
    mp_layoutLeftSide->addWidget(mp_textEditViewXml);
    mp_layoutLeftSide->addLayout(mp_layoutXmlInput);

    mp_layoutRightSide = new QVBoxLayout;
    mp_layoutRightSide->addLayout(mp_layoutConnect);
    mp_layoutRightSide->addLayout(mp_layoutButtons);
    mp_layoutRightSide->addStretch();
    mp_layoutRightSide->setSizeConstraint(QLayout::SetFixedSize);
    //mp_layoutRightSide

    mp_layoutMain = new QHBoxLayout;
    mp_layoutMain->addLayout(mp_layoutLeftSide);
    mp_layoutMain->addLayout(mp_layoutRightSide);
    //mp_layoutMain->setStretchFactor(mp_layoutLeftSide, 30);
    //mp_layoutMain->setStretchFactor(mp_layoutRightSide, 10);

    setLayout(mp_layoutMain);
    show();

    QObject::connect(mp_pushButtonConnect, SIGNAL(clicked()),
                     this, SLOT(connectClicked()));

    QObject::connect(mp_pushButtonSendXml, SIGNAL(clicked()),
                     this, SLOT(sendClicked()));

    QObject::connect(&m_tcpSocket, SIGNAL(error(QAbstractSocket::SocketError)),
                     this, SLOT(tcpSocketError()));

    QObject::connect(&m_tcpSocket, SIGNAL(readyRead()),
                     this, SLOT(incomingData()));

    QObject::connect(&m_tcpSocket, SIGNAL(connected()),
                     this, SLOT(connected()));
    QObject::connect(&m_tcpSocket, SIGNAL(disconnected()),
                     this, SLOT(disconnected()));

    initButtons();
}
Ejemplo n.º 14
0
LTWindow::LTWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::LTWindow), eventData(EventData::getInstance())
{    
    ui->setupUi(this);    

    currDriver = -1;

    streamReader = new DataStreamReader(this);
    prefs = new PreferencesDialog(this);
    settings = new QSettings(F1LTCore::iniFile(), QSettings::IniFormat, this);
    loginDialog = new LoginDialog(this);
    ltFilesManagerDialog = new LTFilesManagerDialog(this);
    trackRecordsDialog = new TrackRecordsDialog(this);
    saw = new SessionAnalysisWidget();
    stw = new SessionTimesWidget();
    driverTrackerWidget = new DriverTrackerWidget();
    aboutDialog = new AboutDialog(this);
    updatesCheckerDialog = new UpdatesCheckerDialog(this);

//    ui->trackStatusWidget->setupItems();

    connect(streamReader, SIGNAL(tryAuthorize()), this, SLOT(tryAuthorize()));
    connect(streamReader, SIGNAL(authorized(QString)), this, SLOT(authorized(QString)));
    connect(streamReader, SIGNAL(eventDataChanged(const DataUpdates&)), this, SLOT(eventDataChanged(const DataUpdates&)));
    connect(streamReader, SIGNAL(driverDataChanged(int, const DataUpdates&)), this, SLOT(driverDataChanged(int, const DataUpdates&)));
    connect(streamReader, SIGNAL(dataChanged(const DataUpdates&)), this, SLOT(dataChanged(const DataUpdates&)));
    connect(streamReader, SIGNAL(sessionStarted()), this, SLOT(sessionStarted()));
    connect(streamReader, SIGNAL(authorizationError()), this, SLOT(authorizationError()));
    connect(streamReader, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(error(QAbstractSocket::SocketError)));
    connect(streamReader, SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(error(QNetworkReply::NetworkError)));
    connect(streamReader, SIGNAL(noLiveSession(bool, QString)), this, SLOT(showNoSessionBoard(bool, QString)));

    connect(updatesCheckerDialog, SIGNAL(newVersionAvailable()), this, SLOT(onNewVersionAvailable()));

    sessionTimer = new SessionTimer(this);
    connect(sessionTimer, SIGNAL(updateWeather()), this, SLOT(updateWeather()));

    connect(&SeasonData::getInstance(), SIGNAL(seasonDataChanged()), &ImagesFactory::getInstance(), SLOT(reloadGraphics()));
    connect(&SeasonData::getInstance(), SIGNAL(seasonDataChanged()), &ColorsManager::getInstance(), SLOT(calculateDefaultDriverColors()));
    connect(&SeasonData::getInstance(), SIGNAL(seasonDataChanged()), saw, SLOT(setupColors()));


    connect(prefs, SIGNAL(driversColorsChanged()), saw, SLOT(setupColors()));

    eventRecorder = new EventRecorder(sessionTimer, this);
    eventPlayer = new EventPlayer(this);

    delayWidget = new DelayWidget(this);
    connect(delayWidget, SIGNAL(delayChanged(int, int)), streamReader, SLOT(setDelay(int, int)));
    connect(delayWidget, SIGNAL(delayChanged(int, int)), sessionTimer, SLOT(setDelay(int, int)));
    connect(sessionTimer, SIGNAL(synchronizingTimer(bool)), delayWidget, SLOT(synchronizingTimer(bool)));
    connect(sessionTimer, SIGNAL(synchronizingTimer(bool)), driverTrackerWidget, SLOT(pauseTimer(bool)));

    connect(ui->messageBoardWidget, SIGNAL(connectClicked()), this, SLOT(on_actionConnect_triggered()));
    connect(ui->messageBoardWidget, SIGNAL(playClicked()), this, SLOT(on_actionOpen_triggered()));
    connect(ui->messageBoardWidget, SIGNAL(loadClicked()), this, SLOT(on_actionLT_files_data_base_triggered()));

    loadSettings();
    ColorsManager::getInstance().calculateDefaultDriverColors();
    saw->setupColors();

    delayWidgetAction = ui->mainToolBar->addWidget(delayWidget);
    delayWidgetAction->setVisible(true);

    eventPlayerAction = ui->mainToolBar->addWidget(eventPlayer);
    eventPlayerAction->setVisible(false);
    recording = false;
    playing = false;

    connectionProgress = new QProgressDialog(this);

    connect(sessionTimer, SIGNAL(timeout()), this, SLOT(timeout()));
    connect(eventRecorder, SIGNAL(recordingStopped()), this, SLOT(autoStopRecording()));
    connect(eventPlayer, SIGNAL(playClicked(int)), this, SLOT(eventPlayerPlayClicked(int)));
    connect(eventPlayer, SIGNAL(pauseClicked()), this, SLOT(eventPlayerPauseClicked()));
    connect(eventPlayer, SIGNAL(rewindToStartClicked()), this, SLOT(eventPlayerRewindToStartClicked()));
    connect(eventPlayer, SIGNAL(forwardToEndClicked()), this, SLOT(eventPlayerForwardToEndClicked()));
    connect(eventPlayer, SIGNAL(rewindClicked()), this, SLOT(eventPlayerRewindClicked()));
    connect(eventPlayer, SIGNAL(stopClicked()), this, SLOT(eventPlayerStopClicked()));
    connect(eventPlayer, SIGNAL(nextPackets(QVector<Packet>)), streamReader, SLOT(parsePackets(QVector<Packet>)));

    connect(ui->ltWidget, SIGNAL(driverSelected(int)), ui->driverDataWidget, SLOT(printDriverData(int)));
    connect(ui->ltWidget, SIGNAL(driverDoubleClicked(int)), this, SLOT(ltWidgetDriverSelected(int)));


    ui->messageBoardWidget->setVisible(false);

    QStringList args = qApp->arguments();
    if (args.size() > 1)
    {
        if (eventPlayer->loadFromFile(args.at(1)) == false)
        {
            QMessageBox::critical(this, "Error opening file!", "Could not open specified file, or the file is corrupted.");
            connectToServer();
            return;
        }
        setWindowTitle("FILT - " + args.at(1));
        ui->actionRecord->setVisible(false);
        ui->actionStop_recording->setVisible(false);
        eventPlayerAction->setVisible(true);
        delayWidgetAction->setVisible(false);

        playing = true;

        eventPlayer->startPlaying();
    }
    else
    {
    	if (settings->value("ui/auto_connect").toBool())
    		connectToServer();
    	else
    	{
    		ui->messageBoardWidget->showStartupBoard();
    		showSessionBoard(true);
    	}
    }    

}
Ejemplo n.º 15
0
void KonferencePart::setupActions()
{
	( void ) new KAction( i18n( "&Configure Konference" ), "configure", 0, this, SLOT( showConfigDialog() ), actionCollection(), "config" );

	m_connectAction = new KAction( i18n( "C&onnect" ), "connect_creating", 0, this, SLOT( connectClicked() ), actionCollection(), "connect" );
	m_cancelAction = new KAction( i18n( "&Stop connection" ), "button_cancel", 0, this, SLOT( cancelClicked() ), actionCollection(), "stop" );
	m_cancelAction->setEnabled( false );
	m_locationAction = new KWidgetAction( m_location, i18n( "&Location" ), CTRL + Key_L, this, SLOT( textEntered() ), actionCollection(), "location" );
	m_locationAction->setAutoSized( true );
}