MainApplication::MainApplication(int& argc, char** argv)
:   QGuiApplication(argc, argv),
    engine_(new QQmlApplicationEngine(this)),
    currentTimeText_(0),
    giantsEventView_(0),
    sharksEventView_(0),
    caltrainTweetMsg_(0),
    settings_(0),
    tweetModel_(0),
    smTweetModel_(0),
    proxyModel_(0),
    twitterApi_(0),
    southboundTrainModel_(0),
    northboundTrainModel_(0)
{
    setUpSettings();
    setUpTweetModel();
    setUpTrains();
    setUpQml();

    setUpEventSchedules();
    setUpTwitterApi();

    // Timers go last.
    setUpTimers();
}
예제 #2
0
SendSelectionDialog::SendSelectionDialog(const U2SequenceObject* dnaso, bool _isAminoSeq, QWidget *p)
    : QDialog(p), translateToAmino(false), isAminoSeq(_isAminoSeq), extImported(false)
{
    CreateAnnotationModel ca_m;
    ca_m.hideAnnotationType = true;
    ca_m.hideAnnotationName = true;
    ca_m.hideLocation = true;
    ca_m.sequenceObjectRef = GObjectReference(dnaso);
    ca_m.sequenceLen = dnaso->getSequenceLength();
    ca_c = new CreateAnnotationWidgetController(ca_m, this);
    setupUi(this);
    new HelpButton(this, buttonBox, "17467726");
    buttonBox->button(QDialogButtonBox::Ok)->setText(tr("Search"));
    buttonBox->button(QDialogButtonBox::Cancel)->setText(tr("Cancel"));

    optionsTab->setCurrentIndex(0);
    int idx = 2;
    QWidget *wdgt;
    wdgt = ca_c->getWidget();
    layoutAnnotations->insertWidget(idx, wdgt);

    matrixComboBox->addItems(ParametersLists::blastp_matrix);

    setupDataBaseList();
    setUpSettings();
    megablastCheckBox->setEnabled(false);
    alignComboBoxes();

    connect( dataBase, SIGNAL(currentIndexChanged(int)), SLOT(sl_scriptSelected(int)) );
    QPushButton* okButton = buttonBox->button(QDialogButtonBox::Ok);
    QPushButton* cancelButton = buttonBox->button(QDialogButtonBox::Cancel);

    connect( okButton, SIGNAL(clicked()), SLOT(sl_OK()) );
    connect( cancelButton, SIGNAL(clicked()), SLOT(sl_Cancel()) );
    connect( megablastCheckBox, SIGNAL(stateChanged(int)),SLOT(sl_megablastChecked(int)) );
    connect( serviceComboBox,SIGNAL(currentIndexChanged(int)),SLOT(sl_serviceChanged(int)) );
    sl_scriptSelected( 0 );
}
예제 #3
0
파일: Model.cpp 프로젝트: gdhsnlvr/8bit
void Model::setUp() {
	setUpSettings();
	setUpCamera();
}