示例#1
0
  public void retranslateUi(QWidget Form) {
    this.expandButton.connectSlotsByName();
    this.deleteButton.connectSlotsByName();

    this.expandButton.clicked.connect(this, "big()");
    this.deleteButton.clicked.connect(this, "delete()");

    expand = false;

    this.expandButton.raise();
    this.deleteButton.raise();
    holder.lower();

    fNameLabel.setText(
        com.trolltech.qt.core.QCoreApplication.translate("Form", "First name:", null));
    lNameLabel.setText(
        com.trolltech.qt.core.QCoreApplication.translate("Form", "Last name:", null));
    tLatesLabel.setText(
        com.trolltech.qt.core.QCoreApplication.translate("Form", "Total Lates:", null));
    tAbsentLabel.setText(
        com.trolltech.qt.core.QCoreApplication.translate("Form", "Total Absents:", null));
    cStatusLabel.setText(
        com.trolltech.qt.core.QCoreApplication.translate("Form", "Current Status:", null));
    deleteButton.setText(com.trolltech.qt.core.QCoreApplication.translate("Form", " X", null));
    fname.setText(com.trolltech.qt.core.QCoreApplication.translate("Form", "TextLabel", null));
    lname.setText(com.trolltech.qt.core.QCoreApplication.translate("Form", "TextLabel", null));
    cStatus.setText(com.trolltech.qt.core.QCoreApplication.translate("Form", "TextLabel", null));
    lates.setText(com.trolltech.qt.core.QCoreApplication.translate("Form", "TextLabel", null));
    absents.setText(com.trolltech.qt.core.QCoreApplication.translate("Form", "TextLabel", null));
    expandButton.setText(com.trolltech.qt.core.QCoreApplication.translate("Form", "\\/", null));
    timeLabel.setText(com.trolltech.qt.core.QCoreApplication.translate("Form", "Timetable:", null));
    idLabel.setText(com.trolltech.qt.core.QCoreApplication.translate("Form", "Student ID:", null));
    id.setText(com.trolltech.qt.core.QCoreApplication.translate("Form", "TextLabel", null));
    curLoclabel.setText(
        com.trolltech.qt.core.QCoreApplication.translate("Form", "Current location:", null));
    curLocation.setText(
        com.trolltech.qt.core.QCoreApplication.translate("Form", "TextLabel", null));
    curclaslab.setText(
        com.trolltech.qt.core.QCoreApplication.translate("Form", "Current class:", null));
    currClass.setText(com.trolltech.qt.core.QCoreApplication.translate("Form", "TextLabel", null));

    entryLabel.setText(
        com.trolltech.qt.core.QCoreApplication.translate("Form", "Entry Time:", null));
    exitLabel.setText(com.trolltech.qt.core.QCoreApplication.translate("Form", "Exit Time:", null));
    entryTime.setText(com.trolltech.qt.core.QCoreApplication.translate("Form", "Text Label", null));
    exitTime.setText(com.trolltech.qt.core.QCoreApplication.translate("Form", "Text Label", null));
    p1.setText(com.trolltech.qt.core.QCoreApplication.translate("Form", "TextLabel", null));
    p2.setText(com.trolltech.qt.core.QCoreApplication.translate("Form", "TextLabel", null));
    p3.setText(com.trolltech.qt.core.QCoreApplication.translate("Form", "TextLabel", null));
    p4.setText(com.trolltech.qt.core.QCoreApplication.translate("Form", "TextLabel", null));
  } // retranslateUi
  public HttpServerExample(QWidget parent) {
    server = new HttpServer(this);
    if (!server.start()) {
      QMessageBox.critical(
          this, tr("HTTP Server"), tr("Unable to start the server: ") + server.errorString());
      close();
    }

    QPushButton publishButton = new QPushButton(this);
    publishButton.setText("Publish");
    editor = new QTextEdit(this);

    editor.setPlainText(
        "<h1>Server is up and running!</h1>"
            + "You should be able to view it in a normal web browser."
            + " Try this address: http://localhost:"
            + server.serverPort());

    QGridLayout layout = new QGridLayout(this);
    setLayout(layout);
    layout.addWidget(publishButton);
    layout.addWidget(editor);

    publishButton.clicked.connect(this, "publish()");

    setWindowTitle(tr("Simple HTTP Server"));
    setWindowIcon(new QIcon("classpath:com/trolltech/images/qt-logo.png"));
  }
 void retranslateUi(QWidget AnalisisForm) {
   AnalisisForm.setWindowTitle(
       com.trolltech.qt.core.QCoreApplication.translate("AnalisisForm", "Form", null));
   tableWidget.clear();
   tableWidget.setColumnCount(0);
   tableWidget.setRowCount(0);
   groupBox.setTitle(
       com.trolltech.qt.core.QCoreApplication.translate("AnalisisForm", "Acciones", null));
   pasosButton.setText(
       com.trolltech.qt.core.QCoreApplication.translate("AnalisisForm", "Pasos", null));
   completoButton.setText(
       com.trolltech.qt.core.QCoreApplication.translate("AnalisisForm", "Completo", null));
   groupBox_2.setTitle("");
   cerrarButton.setText(
       com.trolltech.qt.core.QCoreApplication.translate("AnalisisForm", "Cerrar", null));
 } // retranslateUi
示例#4
0
 public void big() {
   if (!expand) {
     holder.setFixedHeight(215);
     this.tAbsentLabel.show();
     this.tLatesLabel.show();
     this.absents.show();
     this.lates.show();
     expandButton.setText("/\\");
     expandButton.setGeometry(expandButton.x(), 170, expandButton.width(), expandButton.height());
     expand = true;
   } else {
     holder.setFixedHeight(101);
     this.tAbsentLabel.hide();
     this.tLatesLabel.hide();
     this.absents.hide();
     this.lates.hide();
     expandButton.setText("\\/");
     expandButton.setGeometry(expandButton.x(), 60, expandButton.width(), expandButton.height());
     expand = false;
   }
 }
 void retranslateUi(QDialog AboutTextRecognition) {
   textEdit.setHtml(
       com.trolltech.qt.core.QCoreApplication.translate(
           "AboutTextRecognition",
           "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
               + "<html><head><meta name=\"qrichtext\" content=\"1\" /><title>Image Viewer</title><style type=\"text/css\">\n"
               + "p, li { white-space: pre-wrap; }\n"
               + "</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
               + "<p align=\"center\" style=\" margin-top:16px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt; font-weight:600;\"><span style=\" font-size:x-large;\">TextRecognition</span></p>\n"
               + "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;\">This application was written to show the various aspects of TextRecognition library.</p></body></html>"));
   okButton.setText(
       com.trolltech.qt.core.QCoreApplication.translate("AboutTextRecognition", "OK"));
 } // retranslateUi