mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
49
samples/qt/Interface/src/Application.h
Executable file
49
samples/qt/Interface/src/Application.h
Executable file
@@ -0,0 +1,49 @@
|
||||
#ifndef APPLICATION_H
|
||||
#define APPLICATION_H
|
||||
|
||||
#include "ApplicationCommon.h"
|
||||
#include "IESample.h"
|
||||
|
||||
class Translate;
|
||||
|
||||
class IESAMPLE_EXPORT ApplicationWindow: public ApplicationCommonWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
enum { FileImportBREPId=0, FileExportBREPId=1, FileImportCSFDBId=2, FileExportCSFDBId=3,
|
||||
FileImportIGESId=4, FileExportIGESId=5, FileImportSTEPId=6, FileExportSTEPId=7,
|
||||
FileExportSTLId=8, FileExportVRMLId=9 };
|
||||
|
||||
ApplicationWindow();
|
||||
~ApplicationWindow();
|
||||
|
||||
static QString getIEResourceDir();
|
||||
|
||||
virtual void updateFileActions();
|
||||
|
||||
public slots:
|
||||
void onImport();
|
||||
void onExport();
|
||||
void onExportImage();
|
||||
virtual void onSelectionChanged();
|
||||
|
||||
protected:
|
||||
virtual int translationFormat( const QAction* );
|
||||
virtual Translate* createTranslator();
|
||||
|
||||
private:
|
||||
void createTranslatePopups();
|
||||
bool translate( const int, const bool );
|
||||
|
||||
protected:
|
||||
QList<QAction*> myCasCadeTranslateActions;
|
||||
QMenu* myImportPopup;
|
||||
QMenu* myExportPopup;
|
||||
QAction* mySeparator;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user