Public Member Functions

InstallationEditor Class Reference
[Editors]

Editor for installations. More...

#include <projecteditor.h>

Inheritance diagram for InstallationEditor:
Inheritance graph
[legend]
Collaboration diagram for InstallationEditor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 InstallationEditor (QWidget *parent=0)

Detailed Description

Editor for installations.


Constructor & Destructor Documentation

InstallationEditor::InstallationEditor ( QWidget parent = 0  )  [inline]

                                            : MappedBaseEditor(parent) {
        setObjectName("InstallationEditor");
        setWindowTitle("Installation editor");

        //set source
        setTable("tbl_installations", "inst_type", Qt::AscendingOrder);

        // widget setup
        QLabel *type = new QLabel("&Type*:", this);
        QLabel *desc = new QLabel("&Description*:", this);
        QLineEdit *typeEdit = new QLineEdit(this);
        QTextEdit *descEdit = new QTextEdit(this);
        type->setBuddy(typeEdit);
        desc->setBuddy(descEdit);

        // add widgets
        addWidget(type, 0, 0, 1, 1);
        addWidget(typeEdit, 0, 1, 1, 1, "inst_type");
        addWidget(desc, 1, 0, 1, 1);
        addWidget(descEdit, 2, 0, 1, 2, "inst_desc", "plainText");

        // setup connections
        connect(typeEdit, SIGNAL(textChanged(QString)), this, SLOT(updateButtons()));
        connect(descEdit, SIGNAL(textChanged()), this, SLOT(updateButtons()));

        // update changes
        select();
    }


The documentation for this class was generated from the following file: