~ubuntu-branches/ubuntu/precise/mp3diags/precise

« back to all changes in this revision

Viewing changes to src/SessionEditorDlgImpl.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-09-05 10:48:57 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090905104857-48aob98yoibqarh0
Tags: 0.99.05.033-0ubuntu1
New upstream release (FFe granted LP: #423812).

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
    m_pDirectoriesT->header()->setStretchLastSection(false); m_pDirectoriesT->header()->setResizeMode(0, QHeaderView::ResizeToContents);
52
52
 
53
53
    m_bOpenLastSession = true;
 
54
 
 
55
    { QAction* p (new QAction(this)); p->setShortcut(QKeySequence("F1")); connect(p, SIGNAL(triggered()), this, SLOT(onHelp())); addAction(p); }
 
56
 
 
57
    QPalette grayPalette (m_pBackupE->palette());
 
58
    grayPalette.setColor(QPalette::Base, grayPalette.color(QPalette::Disabled, QPalette::Window));
 
59
    m_pBackupE->setPalette(grayPalette);
 
60
    m_pFileNameE->setPalette(grayPalette);
54
61
}
55
62
 
56
63
 
64
71
    m_pDontCreateBackupRB->setChecked(true);
65
72
    m_pScanAtStartupCkB->setChecked(true);
66
73
 
 
74
    m_pFileNameE->setToolTip("Here you need to specify the name of a \"settings file\"\n\nThis is supposed to be a file that doesn't already exist. You don't need to set\nit up. MP3 Diags will store its settings in this file.\n\nSimply click on the button at the right to choose the name of the settings file.");
 
75
 
67
76
    if (!bFirstTime)
68
77
    {
69
78
        m_pOpenLastCkB->hide();
109
118
    m_pDirModel->setDirs(vstrCheckedDirs, vstrUncheckedDirs, m_pDirectoriesT);
110
119
 
111
120
    QTimer::singleShot(1, this, SLOT(onShow()));
112
 
 
113
 
    { QAction* p (new QAction(this)); p->setShortcut(QKeySequence("F1")); connect(p, SIGNAL(triggered()), this, SLOT(onHelp())); addAction(p); }
114
121
}
115
122
 
116
123
 
158
165
        m_strIniFile = convStr(qstrFile);
159
166
        if (m_strIniFile.empty())
160
167
        {
161
 
            QMessageBox::critical(this, "Error", "You need to specify the name of the settings file.");
 
168
            QMessageBox::critical(this, "Error", "You need to specify the name of the settings file.\n\nThis is supposed to be a file that doesn't already exist. You don't need to set it up, but just to pick a name for it. MP3 Diags will store its settings in this file.");
 
169
            on_m_pFileNameB_clicked();
162
170
            return;
163
171
        }
164
172
    }