"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/c2bFileDialog.h" between
cb2bib-1.9.9.tar.gz and cb2bib-2.0.0.tar.gz

About: cb2Bib is a multiplatform application for rapidly extracting unformatted, or unstandardized bibliographic references from email alerts, journal Web pages, and PDF files.

c2bFileDialog.h  (cb2bib-1.9.9):c2bFileDialog.h  (cb2bib-2.0.0)
/*************************************************************************** /***************************************************************************
* Copyright (C) 2004-2018 by Pere Constans * Copyright (C) 2004-2019 by Pere Constans
* constans@molspaces.com * constans@molspaces.com
* cb2Bib version 1.9.9. Licensed under the GNU GPL version 3. * cb2Bib version 2.0.0. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution. * See the LICENSE file that comes with this distribution.
***************************************************************************/ ***************************************************************************/
#ifndef C2BFILEDIALOG_H #ifndef C2BFILEDIALOG_H
#define C2BFILEDIALOG_H #define C2BFILEDIALOG_H
#include <QFileDialog> #include <QFileDialog>
#include <QFileIconProvider>
class c2bSettings; class c2bSettings;
class fileIconProvider;
class c2bFileDialog : public QFileDialog class c2bFileDialog : public QFileDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
static QString getFilename(QWidget* parentw = 0, const QString& caption = QS static QString getFilename(QWidget* parentw = 0, const QString& caption = QS
tring(), const QString& path = QString(), tring(),
const QString& filter = QString()); const QString& path = QString(), const QString& f
static QString getOpenFilename(QWidget* parentw = 0, const QString& caption ilter = QString());
= QString(), const QString& path = QString(), static QString getOpenFilename(QWidget* parentw = 0, const QString& caption
const QString& filter = QString()); = QString(),
static QStringList getOpenFilenames(QWidget* parentw = 0, const QString& cap const QString& path = QString(), const QStrin
tion = QString(), const QString& path = QString(), g& filter = QString());
const QString& filter = QString()); static QStringList getOpenFilenames(QWidget* parentw = 0, const QString& cap
static QString getSaveFilename(QWidget* parentw = 0, const QString& caption tion = QString(),
= QString(), const QString& path = QString(), const QString& path = QString(), const Q
const QString& filter = QString()); String& filter = QString());
static QString getExistingDirectory(QWidget* parentw = 0, const QString& cap static QString getSaveFilename(QWidget* parentw = 0, const QString& caption
tion = QString(), const QString& path = QString()); = QString(),
static QString getSystemFilename(QWidget* parentw = 0, const QString& captio const QString& path = QString(), const QStrin
n = QString(), const QString& path = QString(), g& filter = QString());
const QString& filter = QString()); static QString getExistingDirectory(QWidget* parentw = 0, const QString& cap
tion = QString(),
const QString& path = QString());
static QString getSystemFilename(QWidget* parentw = 0, const QString& captio
n = QString(),
const QString& path = QString(), const QStr
ing& filter = QString());
private: private:
c2bFileDialog(QWidget* parentw, const QString& caption, const QString& fpath , const QString& ffilter); c2bFileDialog(QWidget* parentw, const QString& caption, const QString& fpath , const QString& ffilter);
~c2bFileDialog(); ~c2bFileDialog();
QString _current_file; QString _current_file;
QString fileName(const QString& path); QString fileName(const QString& path);
c2bSettings* settings; c2bSettings* settings;
#ifdef Q_OS_UNIX
fileIconProvider* fip;
#endif
static QString _caption(const QString& generic, const QString& caption); static QString _caption(const QString& generic, const QString& caption);
static QString _dirpath(const QString& path); static QString _dirpath(const QString& path);
static QString _filename(const QString& path); static QString _filename(const QString& path);
static QString _path(const QString& path); static QString _path(const QString& path);
void readSettings(); void readSettings();
void writeSettings(); void writeSettings();
private slots: private slots:
void accept(); void accept();
void selectCurrentFile(); void selectCurrentFile();
};
/***************************************************************************
Class fileIconProvider
***************************************************************************/
class fileIconProvider : public QFileIconProvider
{
public:
fileIconProvider();
~fileIconProvider();
inline QIcon icon(IconType it) const
{
return QFileIconProvider::icon(it);
}
QIcon icon(const QFileInfo& info) const;
private:
QIcon _exec_icon;
}; };
#endif #endif
 End of changes. 7 change blocks. 
47 lines changed or deleted 26 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)