Diff of /src/hugin1/ptbatcher/ProjectListBox.cpp [0f0548] .. [aacb50] Maximize Restore

  Switch to unified view

a/src/hugin1/ptbatcher/ProjectListBox.cpp b/src/hugin1/ptbatcher/ProjectListBox.cpp
...
...
179
wxString ProjectListBox::GetSelectedProject()
179
wxString ProjectListBox::GetSelectedProject()
180
{
180
{
181
    return GetText(m_selected,1);
181
    return GetText(m_selected,1);
182
}
182
}
183
183
184
Project::Target ProjectListBox::GetSelectedProjectTarget()
185
{
186
    return m_batch->GetProject(m_selected)->target;
187
};
188
184
wxString ProjectListBox::GetSelectedProjectPrefix()
189
wxString ProjectListBox::GetSelectedProjectPrefix()
185
{
190
{
186
    return GetText(m_selected,2);
191
    return GetText(m_selected,2);
187
}
192
}
188
193
...
...
258
        case 0:
263
        case 0:
259
            return wxString::Format(_T("%d"),project->id);
264
            return wxString::Format(_T("%d"),project->id);
260
        case 1:
265
        case 1:
261
            return project->path;
266
            return project->path;
262
        case 2:
267
        case 2:
263
          return project->prefix;
268
            if(project->target==Project::STITCHING)
269
            {
270
                return project->prefix;
271
            }
272
            else
273
            {
274
                return _("Assistant");
275
            };
264
        case 7:
276
        case 7:
265
            return project->GetStatusText();    //all following cases default to an empty string if file is missing
277
            return project->GetStatusText();    //all following cases default to an empty string if file is missing
266
        case 3:
278
        case 3:
267
            if(project->status!=Project::MISSING)
279
            if(project->status!=Project::MISSING)
268
                return project->modDate.FormatDate()+_T(", ")+project->modDate.FormatTime();
280
                return project->modDate.FormatDate()+_T(", ")+project->modDate.FormatTime();