コード例 #1
0
ファイル: basewindow.cpp プロジェクト: Reanmachine/RKnock
void BaseWindow::insertServer(QDomElement el)
{
    ServerRecord *rec = new ServerRecord();
    rec->fromElement(el);

    this->m_servers.append(rec);

    // Create the List Item
    QListWidgetItem *item = new QListWidgetItem(rec->serverName());
    this->ui->lstServers->addItem(item);
    connect(rec, SIGNAL(serverNameUpdated(QString,QString)), this, SLOT(updateServerName(QString,QString))); // Automagic updates (I hope!)
    connect(rec, SIGNAL(knockOpen()), this, SLOT(knockOpen()));
    connect(rec, SIGNAL(knockClose()), this, SLOT(knockClose()));
}
コード例 #2
0
ファイル: basewindow.cpp プロジェクト: Reanmachine/RKnock
void BaseWindow::insertServer(QString name, QString host, QList<int> open, QList<int> close)
{
    // Build the Record
    ServerRecord *rec = new ServerRecord();
    rec->setServerName(name);
    rec->setServerHost(host);

    for(int i = 0; i < open.size(); i++)
        rec->serverOpen()->append(open.at(i));
    for(int i = 0; i < close.size(); i++)
        rec->serverClose()->append(close.at(i));

    this->m_servers.append(rec);

    // Create the List Item
    QListWidgetItem *item = new QListWidgetItem(name);
    this->ui->lstServers->addItem(item);
    connect(rec, SIGNAL(serverNameUpdated(QString,QString)), this, SLOT(updateServerName(QString,QString))); // Automagic updates (I hope!)
    connect(rec, SIGNAL(knockOpen()), this, SLOT(knockOpen()));
    connect(rec, SIGNAL(knockClose()), this, SLOT(knockClose()));
}
コード例 #3
0
 void TransformableMarkerOperatorAction::update() {
   updateServerName();
   updateFocusMarkerDimensions();
   updateFrameId();
   // updateDimensionsService();
 }