You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tellico/src/importdialog.h

73 lines
2.1 KiB

/***************************************************************************
copyright : (C) 2003-2006 by Robby Stephenson
email : robby@periapsis.org
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of version 2 of the GNU General Public License as *
* published by the Free Software Foundation; *
* *
***************************************************************************/
#ifndef IMPORTDIALOG_H
#define IMPORTDIALOG_H
#include "translators/translators.h"
#include "datavectors.h"
#include <kdialogbase.h>
#include <kurl.h>
class TQRadioButton;
class TQCheckBox;
class TQShowEvent;
namespace Tellico {
namespace Import {
class Importer;
typedef TQMap<Import::Format, TQString> FormatMap;
}
/**
* @author Robby Stephenson
*/
class ImportDialog : public KDialogBase {
Q_OBJECT
public:
ImportDialog(Import::Format format, const KURL::List& urls, TQWidget* parent, const char* name);
~ImportDialog();
Data::CollPtr collection();
TQString statusMessage() const;
Import::Action action() const;
static TQString fileFilter(Import::Format format);
static Import::Target importTarget(Import::Format format);
static TQString startDir(Import::Format format);
static Import::FormatMap formatMap();
static bool formatImportsText(Import::Format format);
static Import::Importer* importer(Import::Format format, const KURL::List& urls);
static Data::CollPtr importURL(Import::Format format, const KURL& url);
protected:
virtual void slotOk();
private slots:
void slotUpdateAction();
private:
Data::CollPtr m_coll;
Import::Importer* m_importer;
TQRadioButton* m_radioAppend;
TQRadioButton* m_radioReplace;
TQRadioButton* m_radioMerge;
};
} // end namespace
#endif