ExportProjectDialog.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * ExportProjectDialog.h - declaration of class ExportProjectDialog which is
  3. * responsible for exporting project
  4. *
  5. * Copyright (c) 2004-2012 Tobias Doerffel <tobydox/at/users.sourceforge.net>
  6. *
  7. * This file is part of LMMS - https://lmms.io
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public
  11. * License as published by the Free Software Foundation; either
  12. * version 2 of the License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public
  20. * License along with this program (see COPYING); if not, write to the
  21. * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  22. * Boston, MA 02110-1301 USA.
  23. *
  24. */
  25. #ifndef EXPORT_PROJECT_DIALOG_H
  26. #define EXPORT_PROJECT_DIALOG_H
  27. #include <QDialog>
  28. #include <memory>
  29. #include "ui_export_project.h"
  30. #include "ProjectRenderer.h"
  31. #include "RenderManager.h"
  32. class ExportProjectDialog : public QDialog, public Ui::ExportProjectDialog
  33. {
  34. Q_OBJECT
  35. public:
  36. ExportProjectDialog( const QString & _file_name, QWidget * _parent, bool multi_export );
  37. protected:
  38. void reject( void ) override;
  39. void closeEvent( QCloseEvent * _ce ) override;
  40. private slots:
  41. void startBtnClicked( void );
  42. void updateTitleBar( int );
  43. void accept() override;
  44. void startExport();
  45. void onFileFormatChanged(int);
  46. private:
  47. QString m_fileName;
  48. QString m_dirName;
  49. QString m_fileExtension;
  50. bool m_multiExport;
  51. ProjectRenderer::ExportFileFormats m_ft;
  52. std::unique_ptr<RenderManager> m_renderManager;
  53. } ;
  54. #endif