Exemple #1
0
/**
 * @brief creates a std. point box, add it to
 * the point vector, and return said point
 */
void Line::AddPoint(int x, int y) {
    QLineEdit *point = new QLineEdit();

	point->setText(QString::number(x) + QString(",") + QString::number(y));

    point->setFixedSize(75,22);
    PointVec->push_back(point);
    pointCount++;
    QString label = ("Point " + QString::number(pointCount) + ":");
    ParameterHolder->addRow(new QLabel(label),point);
    connect(point,SIGNAL(textChanged(QString)),this,SLOT(InfoChanged()));
}
Exemple #2
0
Line::Line(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Line)
{
	check = QString("initialized");

	printf("Line loading\n");
	ui->setupUi(this);

    PointVec = new std::vector<QLineEdit*>();
    pointCount = 0;
    this->BuildEditor();
    this->ConnectButtons();
    this->name = "untitled";
    this->commandAdded = false;
    this->setWindowTitle("Command");

    connect(this,SIGNAL(signal_Info_Changed()),this,SLOT(InfoChanged()));
    connect(Line_Color,SIGNAL(currentIndexChanged(int)),this,SLOT(InfoChanged()));
    connect(Line_Style,SIGNAL(currentIndexChanged(int)),this,SLOT(InfoChanged()));
    connect(Line_Width,SIGNAL(valueChanged(int)),this,SLOT(InfoChanged()));

    ui->verticalLayout->addWidget(this->CommandEditorWidget);
}
void InformationFeedback::InfoDisplay(QString temp)
{
    feedback_information_.clear();
    feedback_information_.append(temp);
    InfoChanged();
}