14 #ifndef _QtFileDialog_H_
15 #define _QtFileDialog_H_
18 #if QT_VERSION < 0x040000
19 #include <qfiledialog.h>
21 #include <q3filedialog.h>
106 static bool isDocSuffix (
const std::string & suffix );
111 static bool isFitsSuffix (
const std::string & suffix );
116 static bool isRootSuffix (
const std::string & suffix );
120 static bool isTextSuffix (
const std::string & suffix );
132 static bool isFitsFile (
const std::string & filename );
166 #endif // _QtFileDialog_H_
void openRootTuple(const std::string &filename, QWidget *parent)
Opens a ROOT DataSource file.
static bool isFitsFile(const std::string &filename)
Returns true if the file filename is a FITS file.
static bool isFitsSuffix(const std::string &suffix)
Returns true if suffix is one corresponding to FITS DataSource file.
void checkDuplicateLabels(const DataSource *source, QWidget *)
Checks for duplicate column labels in the DataSource source.
static bool isTextSuffix(const std::string &suffix)
Returns true if suffix is one corresponding to text NTuple file.
static const std::string & createExportFilter()
Creates a filter for exporting DataSource to file.
static const std::string & getDocSuffix()
Returns the suffix for a document.
static const std::string s_data_suffix
The file name suffix used for the application's text data source files.
static const std::string & getTextSuffix()
Returns the suffix for a text data source files.
A class to handle various file types.
void saveTextTuple(const std::string &filename, QWidget *parent)
Save a text file.
static std::string s_open_filter
The open file filter.
void openFitsTuple(const std::string &filename, QWidget *parent)
Opens a FITS DataSource file.
static const std::string & createBrowseFilter()
Creates the open file filter.
static const std::string s_doc_suffix
The file name suffix used for the application's document files.
void saveFitsTuple(const std::string &filename, QWidget *parent)
Save a FITS file.
QtFileDialog()
The constructor.
static bool isDocSuffix(const std::string &suffix)
Returns true if suffix is one corresponding to document file.
static const std::string & createDocumentFilter()
Creates a filter for saving a document.
static std::string getExportTupleFilename(QWidget *widget)
Returns a filename for exporting a DataSource.
static bool isZippedFitsSuffix(const std::string &suffix)
Returns true if the file filename is a compressed FITS file.
static const std::string & createOpenFilter()
Creates the open file filter.
static bool isRootSuffix(const std::string &suffix)
Returns true if suffix is one corresponding to ROOT DataSource files.
static void openTextTuple(const std::string &filename)
Opens a text NTuple file.
Base class for DataSource.