Subversion Repositories svn1

Rev

Rev 131 | Rev 134 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 131 Rev 133
Line 36... Line 36...
36
    m1->addAction("Clear single leg start times", this, SLOT(ClearOneLegTimes()));
36
    m1->addAction("Clear single leg start times", this, SLOT(ClearOneLegTimes()));
37
    m1->addAction("Set calculated leg start", this, SLOT(setCalcLegStart()));
37
    m1->addAction("Set calculated leg start", this, SLOT(setCalcLegStart()));
38
    m1->addAction("Set ordered incremental leg start", this, SLOT(setOrderedIncLegStart()));
38
    m1->addAction("Set ordered incremental leg start", this, SLOT(setOrderedIncLegStart()));
39
    m1->addAction("Set staggered start time", this, SLOT(setStaggeredLegStart()));
39
    m1->addAction("Set staggered start time", this, SLOT(setStaggeredLegStart()));
40
    m1->addAction("Set fixed start time", this, SLOT(setFixedLegStart()));
40
    m1->addAction("Set fixed start time", this, SLOT(setFixedLegStart()));
41
 
-
 
42
 
-
 
43
 
-
 
44
 
-
 
45
}
41
}
46
 
42
 
47
MainWindow::~MainWindow()
43
MainWindow::~MainWindow()
48
{
44
{
49
    delete ui;
45
    delete ui;
50
}
46
}
51
 
47
 
-
 
48
void MainWindow::showMessage( const QString & msg, int timeout)
-
 
49
{
-
 
50
    if ( mw )
-
 
51
    {
-
 
52
        mw->ui->statusBar->showMessage(msg, timeout);
-
 
53
    }
-
 
54
}
-
 
55
 
52
void MainWindow::changeEvent(QEvent *e)
56
void MainWindow::changeEvent(QEvent *e)
53
{
57
{
54
    QMainWindow::changeEvent(e);
58
    QMainWindow::changeEvent(e);
55
    switch (e->type()) {
59
    switch (e->type()) {
56
    case QEvent::LanguageChange:
60
    case QEvent::LanguageChange:
Line 115... Line 119...
115
    bool ok;
119
    bool ok;
116
    int leg = QInputDialog::getInt(this, tr("Clear One Leg Start Time"),
120
    int leg = QInputDialog::getInt(this, tr("Clear One Leg Start Time"),
117
                                              tr("Leg:"), 0, 0, config.num_legs, 1, &ok);
121
                                              tr("Leg:"), 0, 0, config.num_legs, 1, &ok);
118
    if ( ok && leg)
122
    if ( ok && leg)
119
    {
123
    {
120
        tm_clearleg_specified(leg, FALSE, 6);
124
        tm_clearleg_specified(leg, FALSE);
121
    }
125
    }
122
}
126
}
123
 
127
 
124
void MainWindow::setCalcLegStart(void)
128
void MainWindow::setCalcLegStart(void)
125
{
129
{