78 lines
1.8 KiB
C++
78 lines
1.8 KiB
C++
#ifndef Menu_Menu_h__
|
|
#define Menu_Menu_h__
|
|
|
|
#include <map>
|
|
#include <vector>
|
|
|
|
// Qt
|
|
#pragma comment(lib, "QtCore4")
|
|
#pragma comment(lib, "QtGui4")
|
|
|
|
#include <QtCore/qcoreapplication.h>
|
|
|
|
#include <maya/MQtUtil.h>
|
|
#include <QtGui/qwidget.h>
|
|
#include <QtGui/qapplication.h>
|
|
#include <QtGui/qdialog.h>
|
|
#include <QtGui/qpushbutton.h>
|
|
#include <QtGui/qboxlayout.h>
|
|
#include <QtGui/qformlayout.h>
|
|
#include <QtCore/qthread.h>
|
|
#include <QtCore/qpointer.h>
|
|
#include <QtCore/qlist.h>
|
|
#include <QtGui/qlistwidget.h>
|
|
#include <QtUiTools/quiloader.h>
|
|
#include <QtCore/qfile.h>
|
|
#include <QtGui/qlabel.h>
|
|
#include <QtGui/qcheckbox.h>
|
|
#include <QtGui/qradiobutton.h>
|
|
#include <QtGui/qfiledialog.h>
|
|
#include <QtGui/qlineedit.h>
|
|
#include <QtGui/qgroupbox.h>
|
|
#include <QtGui/qlayoutitem.h>
|
|
#include <QtGui/qtabwidget.h>
|
|
|
|
#include "MayaIncludes.h"
|
|
#include "Export.h"
|
|
|
|
class Menu : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
Menu(QDialog* dialog);
|
|
~Menu();
|
|
|
|
private slots:
|
|
void ExportPathClicked(bool);
|
|
void AddClipClicked(bool);
|
|
void RemoveClipClicked(bool);
|
|
void ExportAll(bool);
|
|
void CancelClicked(bool);
|
|
|
|
private:
|
|
Menu();
|
|
std::vector<QLineEdit*> m_AnimationClipName;
|
|
std:: vector<QLineEdit*> m_StartFrameLines;
|
|
std::vector<QLineEdit*> m_EndFrameLines;
|
|
std::vector<QHBoxLayout*> layouts;
|
|
QVBoxLayout* m_ClipLayout;
|
|
|
|
QPushButton* m_BrowseButton = nullptr;
|
|
QPushButton* m_ExportAllButton = nullptr;
|
|
QPushButton* m_CancelButton = nullptr;
|
|
QPushButton* m_AddClipsButton = nullptr;
|
|
QPushButton* m_RemoveClipsButton = nullptr;
|
|
|
|
QCheckBox* m_ExportSelectedButton = nullptr;
|
|
QCheckBox* m_ExportAnimationsButton = nullptr;
|
|
QCheckBox* m_ExportMaterialButton = nullptr;
|
|
QCheckBox* m_IsCollision = nullptr;
|
|
|
|
QLineEdit* m_ExportPath = nullptr;
|
|
QFileDialog* m_FileDialog = nullptr;
|
|
QDialog* m_DialogPointer = nullptr;
|
|
|
|
Export m_Export;
|
|
};
|
|
|
|
#endif |