0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / samples / qt / Interface / src / Application.h
1 #ifndef APPLICATION_H
2 #define APPLICATION_H
3
4 #include "ApplicationCommon.h"
5 #include "IESample.h"
6
7 class Translate;
8
9 class IESAMPLE_EXPORT ApplicationWindow: public ApplicationCommonWindow
10 {
11     Q_OBJECT
12
13 public:
14   
15   enum { FileImportBREPId=0, FileExportBREPId=1, FileImportIGESId=2,
16          FileExportIGESId=3, FileImportSTEPId=4, FileExportSTEPId=5,
17          FileExportSTLId=6,  FileExportVRMLId=7, FileUserId };
18         
19   ApplicationWindow();
20   ~ApplicationWindow();
21
22   static QString                  getIEResourceDir();
23
24   virtual void                    updateFileActions();
25   
26 public slots:
27   void                            onImport();
28   void                            onExport();
29   void                            onExportImage();
30   virtual void                    onSelectionChanged();
31   
32 protected:
33   virtual int                     translationFormat( const QAction* );
34   virtual Translate*              createTranslator();
35
36 private:
37   void                            createTranslatePopups();
38   bool                            translate( const int, const bool );
39
40 protected:
41   QList<QAction*>                 myCasCadeTranslateActions;
42   QMenu*                          myImportPopup;
43   QMenu*                          myExportPopup;
44   QAction*                        mySeparator;
45 };
46
47 #endif
48
49