예제 #1
0
 private void changeText() {
   if (project != null) {
     ui.btnAdd.setText(QCoreApplication.translate("ProjectDataView", "Save", null));
   } else {
     ui.btnAdd.setText(QCoreApplication.translate("ProjectDataView", "Add", null));
   }
 }
 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
예제 #3
0
 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
 @Override
 public void onAudioBuffer(final AudioBufferStatus status, final int occupied, final int total) {
   audioBufferOccupied = occupied;
   audioBufferTotal = total;
   switch (status) {
     case REGULAR:
       audioBufferInUse = true;
       if (audioBufferStatus.equals(AudioBufferStatus.FLUSHING)) {
         // End of flush
         QCoreApplication.invokeLater(audioBufferFlushEnd);
       }
       break;
     case FLUSHING:
       audioBufferInUse = true;
       QCoreApplication.invokeLater(audioBufferFlushStart);
       break;
     case DESTROYED:
       audioBufferInUse = false;
       QCoreApplication.invokeLater(audioBufferClosed);
       break;
   }
   audioBufferStatus = status;
 }
예제 #5
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
예제 #6
0
  private void setFields() {
    if (project != null) {
      if (GuiController.getInstance().canModifyProject()) {
        ui.btnAdd.setVisible(true);
        ui.btnAdd.setText(QCoreApplication.translate("ProjectDataView", "Save", null));

        ui.txtDescription.setText(project.getDescription());
        ui.txtDescription.setEnabled(true);

        ui.txtProjectnumber.setText(project.getProjectIdentifier());
        ui.txtProjectnumber.setEnabled(false);

        ui.txtPlannedTime.setValue(project.getPlannedTime());
        ui.txtPlannedTime.setEnabled(true);

        ui.txtPlannedTime.setValue(project.getPlannedTime());
        ui.txtPlannedTime.setEnabled(true);

        ui.checkBox.setChecked(!project.isActive());
        ui.checkBox.setEnabled(true);
        try {
          ComboBoxData.createProjectManagerComboBox(
              ui.cmbProjectManager, project.getProjectManager());
        } catch (WaktuException e) {
          errorMessage.emit(e.getMessage());
        }

      } else {
        ui.btnAdd.setVisible(false);

        ui.txtDescription.setText(project.getDescription());
        ui.txtDescription.setEnabled(false);

        ui.txtProjectnumber.setText(project.getProjectIdentifier());
        ui.txtProjectnumber.setEnabled(false);

        ui.txtPlannedTime.setValue(project.getPlannedTime());
        ui.txtPlannedTime.setEnabled(false);

        ui.txtPlannedTime.setValue(project.getPlannedTime());
        ui.txtPlannedTime.setEnabled(false);

        ui.checkBox.setChecked(!project.isActive());
        ui.checkBox.setEnabled(false);
        try {
          ComboBoxData.createProjectManagerComboBox(
              ui.cmbProjectManager, project.getProjectManager());
        } catch (WaktuException e) {
          errorMessage.emit(e.getMessage());
        }
        ui.cmbProjectManager.setEnabled(false);
      }
    } else {
      ui.btnAdd.setVisible(true);

      ui.txtDescription.setEnabled(true);
      ui.txtProjectnumber.setEnabled(true);
      ui.txtPlannedTime.setEnabled(true);
      ui.txtPlannedTime.setEnabled(true);
      ui.checkBox.setEnabled(true);
      ui.cmbProjectManager.setEnabled(true);
      try {
        ComboBoxData.createProjectManagerComboBox(ui.cmbProjectManager, null);
      } catch (WaktuException e) {
        errorMessage.emit(e.getMessage());
      }
    }
  }