xca/widgets/ExportDialog.h
Christian Hohnstädt 68273d0a30 Switch from autotools/qmake to cmake
Why?
 - QT will switch from qmake to cmake sooner or later.
 - autotools are good for unix-ish systems, cmake also for
   macOS and Xcode as well as Windows and VS-code
 - Cross compiling the windows-binaries on linux
   is not very helpful to attract windows-centric
   developers.

Also drop qmake's xca.pro
Generate man-page and sphinx sources of commandline arguments
during build by executing xca (xcadoc.cpp).
Generating Version-patchlevel and git hash is now also
OS independent.
2021-06-01 17:48:37 +02:00

40 lines
801 B
C++

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2014 Christian Hohnstaedt.
*
* All rights reserved.
*/
#ifndef __EXPORTDIALOG_H
#define __EXPORTDIALOG_H
#include "ui_ExportDialog.h"
#include "lib/exportType.h"
class QPixmap;
class pki_base;
class ExportDialog: public QDialog, public Ui::ExportDialog
{
Q_OBJECT
protected:
QString filter;
QVector<QString> help;
public:
ExportDialog(QWidget *w, const QString &title, const QString &filt,
pki_base *pki, const QPixmap &img, QList<exportType> types,
const QString &help_ctx = QString());
static bool mayWriteFile(const QString &fname);
enum exportType::etype type();
public slots:
void on_fileBut_clicked();
void on_exportFormat_activated(int);
void on_exportFormat_highlighted(int index);
void accept();
};
#endif