Files
GoldenCheetah/src/BatchExportDialog.h
Mark Liversedge 6f116ab07d File Export (part 2 of 2)
Added a function for Batch Export of current
activity history. The user can select files
to export, the target directory and format to
use.

This completes the updates to improve export
functionality.

Fixes #476.
2011-10-12 18:00:58 +01:00

81 lines
1.8 KiB
C++

/*
* Copyright (c) 2011 Mark Liversedge (liversedge@gmail.com)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc., 51
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _BatchExportDialog_h
#define _BatchExportDialog_h
#include "GoldenCheetah.h"
#include "MainWindow.h"
#include "Settings.h"
#include "Units.h"
#include "RideItem.h"
#include "RideFile.h"
#include <QtGui>
#include <QTableWidget>
#include <QProgressBar>
#include <QList>
#include <QLabel>
#include <QListIterator>
#include <QDebug>
// Dialog class to show filenames, import progress and to capture user input
// of ride date and time
class BatchExportDialog : public QDialog
{
Q_OBJECT
G_OBJECT
public:
BatchExportDialog(MainWindow *main);
QTreeWidget *files; // choose files to export
signals:
private slots:
void cancelClicked();
void okClicked();
void selectClicked();
void exportFiles();
void allClicked();
private:
MainWindow *main;
bool aborted;
QCheckBox *all;
QComboBox *format;
QLabel *formatLabel;
QPushButton *selectDir;
QLabel *dirLabel, *dirName;
QCheckBox *overwrite;
QPushButton *cancel, *ok;
int exports, fails;
QLabel *status;
};
#endif // _BatchExportDialog_h