/usr/include/qgis/qgsencodingfiledialog.h is in libqgis-dev 1.7.4+1.7.5~20120320-1.1+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | /***************************************************************************
qgsencodingfiledialog.h - File dialog which queries the encoding type
--------------------------------------
Date : 16-Feb-2005
Copyright : (C) 2005 by Marco Hugentobler
email : marco.hugentobler@autoform.ch
***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#ifndef QGSENCODINGFILEDIALOG_H
#define QGSENCODINGFILEDIALOG_H
#include <QFileDialog>
class QComboBox;
class QPushButton;
/** \ingroup gui
* A file dialog which lets the user select the preferred encoding type for a data provider.
**/
class GUI_EXPORT QgsEncodingFileDialog: public QFileDialog
{
Q_OBJECT
public:
QgsEncodingFileDialog( QWidget * parent = 0,
const QString & caption = QString(), const QString & directory = QString(),
const QString & filter = QString(), const QString & encoding = QString() );
~QgsEncodingFileDialog();
/**Returns a string describing the chosen encoding*/
QString encoding() const;
/* Adds a 'Cancel All' button for the user to click */
void addCancelAll();
/* Returns true if the user clicked 'Cancel All' */
bool cancelAll();
public slots:
void saveUsedEncoding();
void pbnCancelAll_clicked();
private:
/**Box to choose the encoding type*/
QComboBox* mEncodingComboBox;
/* The button to click */
QPushButton *mCancelAllButton;
/* Set if user clicked 'Cancel All' */
bool mCancelAll;
};
#endif
|