File indexing completed on 2024-12-22 04:17:31

0001 /***************************************************************************
0002  *                                                                         *
0003  *   copyright : (C) 2007 The University of Toronto                        *
0004  *                   netterfield@astro.utoronto.ca                         *
0005  *                                                                         *
0006  *   This program is free software; you can redistribute it and/or modify  *
0007  *   it under the terms of the GNU General Public License as published by  *
0008  *   the Free Software Foundation; either version 2 of the License, or     *
0009  *   (at your option) any later version.                                   *
0010  *                                                                         *
0011  ***************************************************************************/
0012 
0013 #ifndef EXPORTGRAPHICSDIALOG_H
0014 #define EXPORTGRAPHICSDIALOG_H
0015 
0016 #include <QDialog>
0017 
0018 #include "ui_exportgraphicsdialog.h"
0019 
0020 #include "kst_export.h"
0021 
0022 namespace Kst {
0023 
0024 class MainWindow;
0025 
0026 class ExportGraphicsDialog : public QDialog, Ui::ExportGraphicsDialog
0027 {
0028   Q_OBJECT
0029   public:
0030     explicit ExportGraphicsDialog(MainWindow *win);
0031     virtual ~ExportGraphicsDialog();
0032     bool exportAll() { return _exportAll->isChecked();}
0033 
0034   public slots:
0035     void enableWidthHeight();
0036     void OKClicked();
0037     void apply();
0038     void updateButtons();
0039     void updateFormats();
0040     void updateFilenameLabel();
0041 
0042   Q_SIGNALS:
0043     void exportGraphics(const QString &filename, const QString &format, int w, int h, int display, bool export_all, int autosave_period);
0044 
0045   private:
0046 };
0047 
0048 }
0049 
0050 #endif
0051 
0052 // vim: ts=2 sw=2 et