|
00084 {
00085 actionSegment = new QAction(tr( "Segment"),Key_F1 , this);
00086 actionSegment->setIconSet(QPixmap::fromMimeSource( "src/interface/icones/segment.png"));
00087 actionSegment->setStatusTip(tr( "Dessiner un segment"));
00088 connect(actionSegment,SIGNAL(activated()), this,SLOT( slotDrawSegment()));
00089
00090 actionCircle = new QAction(tr( "Cercle"),Key_F2 , this);
00091 actionCircle->setIconSet(QPixmap::fromMimeSource( "src/interface/icones/cercle.png"));
00092 actionCircle->setStatusTip(tr( "Dessiner un cercle"));
00093 connect(actionCircle,SIGNAL(activated()), this,SLOT( slotDrawCircle()));
00094
00095 actionBezier = new QAction(tr( "Bézier"),Key_F3 , this);
00096 actionBezier->setIconSet(QPixmap::fromMimeSource( "src/interface/icones/bezier.png"));
00097 actionBezier->setStatusTip(tr( "Dessiner une courbe de Bézier"));
00098 connect(actionBezier,SIGNAL(activated()), this,SLOT( slotDrawBezier()));
00099
00100 actionBSpline = new QAction(tr( "BSpline"),Key_F4 , this);
00101 actionBSpline->setIconSet(QPixmap::fromMimeSource( "src/interface/icones/bspline.png"));
00102 actionBSpline->setStatusTip(tr( "Dessiner une BSpline"));
00103 connect(actionBSpline,SIGNAL(activated()), this,SLOT( slotDrawBSpline()));
00104
00105 actionNew = new QAction(tr( "Nouveau"),tr( "Ctrl+N"), this);
00106 actionNew->setIconSet(QPixmap::fromMimeSource( "src/interface/icones/nouveau.png"));
00107 actionNew->setStatusTip(tr( "Creation d'un nouveau document"));
00108 connect(actionNew,SIGNAL(activated()), this,SLOT( slotNew()));
00109
00110 actionOpen = new QAction(tr( "Ouvrir"),tr( "Ctrl+O"), this);
00111 actionOpen->setIconSet(QPixmap::fromMimeSource( "src/interface/icones/ouvrir.png"));
00112 actionOpen->setStatusTip(tr( "Ouverture d'un document existant"));
00113 connect(actionOpen,SIGNAL(activated()), this,SLOT( slotOpen()));
00114
00115 actionSave = new QAction(tr( "Enregistrer"),tr( "Ctrl+S"), this);
00116 actionSave->setIconSet(QPixmap::fromMimeSource( "src/interface/icones/sauver.png"));
00117 connect(actionSave,SIGNAL(activated()), this,SLOT( slotSave()));
00118
00119 actionSaveAs = new QAction(tr( "Enregistrer sous..."),tr( ""), this);
00120 actionSaveAs->setIconSet(QPixmap::fromMimeSource( "src/interface/icones/sauver.png"));
00121 connect(actionSaveAs,SIGNAL(activated()), this,SLOT( slotSaveAs()));
00122
00123 actionQuit = new QAction(tr( "Quitter"),tr( "Ctrl+Q"), this);
00124 connect(actionQuit,SIGNAL(activated()), this,SLOT(close()));
00125
00126 actionImportVRML = new QAction( "VRML",tr( ""), this);
00127 connect(actionImportVRML,SIGNAL(activated()), this,SLOT( slotImportVRML()));
00128
00129 actionExportVRML = new QAction( "VRML",tr( ""), this);
00130 connect(actionExportVRML,SIGNAL(activated()), this,SLOT( slotExportVRML()));
00131
00132 actionImportPGN = new QAction( "PGN",tr( ""), this);
00133 connect(actionImportPGN,SIGNAL(activated()), this,SLOT( slotImportPGN()));
00134
00135 actionExportPGN = new QAction( "PGN",tr( ""), this);
00136 connect(actionExportPGN,SIGNAL(activated()), this,SLOT( slotExportPGN()));
00137
00138 actionSimpleExtrusion = new QAction( "Extrusion simple",Key_F9, this);
00139 connect(actionSimpleExtrusion,SIGNAL(activated()), this,SLOT( slotSimpleExtrusion()));
00140
00141 actionProfileExtrusion = new QAction( "Extrusion selon le profil",Key_F10, this);
00142 connect(actionProfileExtrusion,SIGNAL(activated()), this,SLOT( slotProfileExtrusion()));
00143
00144 actionTile = new QAction(tr( "Tile"),tr( "Ctrl+T"), this);
00145 actionTile->setIconSet(QPixmap::fromMimeSource( "src/interface/icones/tile.png"));
00146 connect(actionTile,SIGNAL(activated()), this,SLOT( slotTile()));
00147
00148 actionCascade = new QAction(tr( "Cascade"),tr( "Ctrl+D"), this);
00149 actionCascade->setIconSet(QPixmap::fromMimeSource( "src/interface/icones/cascade.png"));
00150 connect(actionCascade,SIGNAL(activated()), this,SLOT( slotCascade()));
00151
00152 changeWin = new QAction(tr( "Changement de fenêtre"),Key_Tab, this);
00153 changeWin->setIconSet(QPixmap::fromMimeSource( "src/interface/icones/change.png"));
00154 connect(changeWin,SIGNAL(activated()), this,SLOT( changeWindow()));
00155 connect(workspace,SIGNAL(windowActivated(QWidget*)), this,SLOT( updateStatusBar()));
00156
00157 clearWindow = new QAction(tr( "Effacer la fenêtre active"),Key_F5, this);
00158 clearWindow->setIconSet(QPixmap::fromMimeSource( "src/interface/icones/clear.png"));
00159 connect(clearWindow,SIGNAL(activated()), this,SLOT( clearActiveWindow()));
00160
00161 timerSimpleExtrusion = new QTimer( this, "RefreshSE" );
00162 connect(timerSimpleExtrusion, SIGNAL(timeout()), this, SLOT( slotRefreshSimpleExtrusion()));
00163
00164 timerProfileExtrusion = new QTimer( this, "RefreshPE" );
00165 connect(timerProfileExtrusion, SIGNAL(timeout()), this, SLOT( slotRefreshProfileExtrusion()));
00166
00167 actionChangeSample = new QAction(tr( "Changement d'echantillonage"), tr( ""), this);
00168 actionChangeSample->setIconSet(QPixmap::fromMimeSource( "src/interface/icones/ok.png"));
00169 connect(actionChangeSample, SIGNAL(activated()), this, SLOT( slotChangeSample())) ;
00170 }
|