Logo Search packages:      
Sourcecode: qtoctave version File versions  Download package

void Main::table ( QString  text = QString()  )  [slot]

Shows Table.

Definition at line 118 of file main.cpp.

References Terminal::getOctaveConnection(), Table::setMatrix(), Table::setOctaveConnection(), and widget_activated().

Referenced by variable_list().

{
      bool ok=true;
      if(text.isEmpty())
      {
            text = QInputDialog::getText(main_window, tr("Select table"),
                  tr("Matrix name:"), QLineEdit::Normal, "", &ok);
      }
      if (ok && !text.isEmpty())
      {
            Table *table=new Table(work_space);
            connect(table, SIGNAL(widget_activated(BaseWidget *)), this, SLOT(widget_activated(BaseWidget *)));
            OctaveConnection *oc=terminal->getOctaveConnection();
            connect(work_space, SIGNAL(windowActivated(QWidget *)), table, SLOT(windowActivated(QWidget *)));
            table->setOctaveConnection(oc);
            table->setMatrix(text);
            table->setWindowTitle("Table: "+text);
            work_space->addWindow(table);
            table->show();
      }
}


Generated by  Doxygen 1.6.0   Back to index