| 1 |
////////////////////////////////////////////////////////////////////////////// |
| 2 |
////////////////////////////////////////////////////////////////////////////// |
| 3 |
// |
| 4 |
// copyright : (C) 2014 Eran Ifrah |
| 5 |
// file name : imageexportdialog.h |
| 6 |
// |
| 7 |
// ------------------------------------------------------------------------- |
| 8 |
// A |
| 9 |
// _____ _ _ _ _ |
| 10 |
// / __ \ | | | | (_) | |
| 11 |
// | / \/ ___ __| | ___| | _| |_ ___ |
| 12 |
// | | / _ \ / _ |/ _ \ | | | __/ _ ) |
| 13 |
// | \__/\ (_) | (_| | __/ |___| | || __/ |
| 14 |
// \____/\___/ \__,_|\___\_____/_|\__\___| |
| 15 |
// |
| 16 |
// F i l e |
| 17 |
// |
| 18 |
// This program is free software; you can redistribute it and/or modify |
| 19 |
// it under the terms of the GNU General Public License as published by |
| 20 |
// the Free Software Foundation; either version 2 of the License, or |
| 21 |
// (at your option) any later version. |
| 22 |
// |
| 23 |
////////////////////////////////////////////////////////////////////////////// |
| 24 |
////////////////////////////////////////////////////////////////////////////// |
| 25 |
|
| 26 |
#ifndef IMAGEEXPORTDIALOG_H |
| 27 |
#define IMAGEEXPORTDIALOG_H |
| 28 |
|
| 29 |
#include "GUI.h" // Base class: _ImageExportDialog |
| 30 |
|
| 31 |
class ImageExportDialog : public _ImageExportDialog { |
| 32 |
|
| 33 |
public: |
| 34 |
ImageExportDialog(wxWindow *parent); |
| 35 |
virtual ~ImageExportDialog(); |
| 36 |
|
| 37 |
virtual void OnOKClick(wxCommandEvent& event); |
| 38 |
virtual void OnUpdateCustomScale(wxUpdateUIEvent& event); |
| 39 |
virtual void OnBowseClick(wxCommandEvent& event); |
| 40 |
virtual void OnInit(wxInitDialogEvent& event); |
| 41 |
|
| 42 |
void SetBitmapType(const wxBitmapType& BitmapType) {this->m_BitmapType = BitmapType;} |
| 43 |
void SetPath(const wxString& Path) {this->m_Path = Path;} |
| 44 |
const wxBitmapType& GetBitmapType() const {return m_BitmapType;} |
| 45 |
const wxString& GetPath() const {return m_Path;} |
| 46 |
double GetScale() const {return m_Scale;} |
| 47 |
bool GetExportCanvas() const {return m_ExportCanvas;} |
| 48 |
|
| 49 |
protected: |
| 50 |
wxString m_Path; |
| 51 |
wxBitmapType m_BitmapType; |
| 52 |
double m_Scale; |
| 53 |
bool m_ExportCanvas; |
| 54 |
}; |
| 55 |
|
| 56 |
#endif // IMAGEEXPORTDIALOG_H |