Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

CanvasWindow.sip

Go to the documentation of this file.
00001 /* -*- mode: c++ -*- */
00002 
00016 class CanvasWindow : CanvasWindowBase
00017 {
00018 %TypeHeaderCode
00019 #include "qt/CanvasWindow.h"
00020 %End
00021 
00022 
00023 // private to hide from Doxygen
00024 private:
00025 
00027   virtual void closeEvent ( QCloseEvent * );
00029   virtual void resizeEvent ( QResizeEvent * );
00031   virtual void showEvent ( QShowEvent * );
00041   virtual void windowActivationChange ( bool );
00042 
00043 
00044 
00045 
00050   virtual void editClear();
00051   virtual void editCopy();
00055   virtual void editCut();
00056   virtual void editPaste();
00059   virtual void editUndo();
00063   virtual void editDelete ();
00064 
00067   virtual void editReTile ();
00070   virtual void editReTilePage ();
00073   virtual void editSelectAll ();
00074 
00075 
00076 
00077 
00080   virtual void helpAbout();
00081 
00082 
00083   virtual void fileExportTextTuple();
00084   virtual void fileImportTextTuple();
00085 //   virtual void fileNew();
00086   virtual void fileOpen();
00087  /* Implementation of functions declared in base class. */
00088 
00093   virtual void filePrint();
00094   virtual void fileQuit();
00095 //   virtual void fileSave();
00102   virtual void fileSaveAll();
00103 
00108  virtual void fileSaveAllAs();
00109  
00110 
00111 
00112 
00115   virtual void on_aboutQt_activated();
00116 
00117   virtual void viewLock();
00118 
00122   virtual void viewUnlock();
00124   virtual void viewZoomIn();
00126   virtual void viewZoomOut();
00129   virtual void viewZoomReset();
00130 
00132   virtual  void viewAddPage();
00133 
00136   virtual void viewShowInspector ();
00137 
00140   virtual void viewShowPlotTable ();
00141 
00144   virtual void viewShowPickTable ();
00145 
00146 
00147 
00148 
00149 
00152   virtual void settingCanvas ();
00153 
00156   virtual void settingPrinter ();
00157 
00160   virtual void settingFonts ();
00161 
00162 
00163 protected:
00165   virtual void hideEvent ( QHideEvent * );
00166 
00167  protected slots:
00168 
00171   virtual void on_fileExit_activated ();
00172 
00177   virtual void on_fileOpen_activated ();
00178 
00179 
00180 public:
00181 
00182 //   CanvasWindow ();
00183   CanvasWindow ( QWidget * /TransferThis/ =0,
00184                  const char * = 0, unsigned =WType_TopLevel );
00185 
00189   CanvasWindow ( const CanvasWindow & );
00190 
00191   virtual ~CanvasWindow();
00192 
00195   static void resetFontSize ();
00196 
00198   void initFromFile ( const std::string &  );
00199 
00202   void inhibitClose ( bool = true );
00203 
00204 
00205 //   bool closeNoPrompt();
00209   void setAllowClose ( bool = true );
00210 
00214   bool allowClose ();
00215 
00220   virtual bool closeNoPrompt ();
00221 
00227   void setChanged ( bool = true );
00228 
00231   void setCaption ();
00232 
00236   void updateActions ();
00237 
00239   virtual void fileNew();
00240 
00246   void fileSave ();
00247 
00249   virtual void fileSaveAs ();
00250 
00253   virtual void fileSaveSelectedImages ();
00254 
00258    virtual void fileSaveSelectedImages( const std::string & );
00259 
00260 //    /** Returns the CanvasView object.
00261 //    */
00262 //   CanvasView * getCanvasView ();
00263 
00265   void addDisplay ( PlotterBase * );
00267   void addFuncDisplay ( PlotterBase *, const std::string & )
00268     throw ( FactoryException );
00269 
00274   void addPlotDisplay ( PlotterBase *, bool );
00275   
00276 //   /** Adds a textual display to the canvas of type @a type. */
00277 //   void addTextDisplay ( PlotterBase *, 
00278 //                         const std::string & )
00279 //     throw ( FactoryException );
00280 //   /** Adds a textual display to the canvas of type @a type. This
00281 //       method is used when the text type requires additional text. */
00282 //   void addTextDisplay ( PlotterBase *, 
00283 //                      const std::string &, const std::string &  );
00284  
00285 //   /** Adds a text display at the relative position (xrel, yrel) in
00286 //        the selected item's coordinates.  This method returns the
00287 //        relative coordinates of the lower left corner as a pair of
00288 //        doubles.
00289 //    */
00290 //   std::pair<double, double> addTextDisplayAt ( PlotterBase *,
00291 //                                                 const std::string & ,
00292 //                                                 const std::string & ,
00293 //                                                 double , double );
00294 
00297   void removeDisplay ( PlotterBase * );
00299   PlotterBase * selectedPlotter ();
00300 
00303   QtView * getViewFor ( const PlotterBase * );
00304 
00305 //   /** Returns the list of ViewBase objects on the canvas. */
00306 //   const std::vector < const ViewBase * > & views ();
00307 
00308 //    /** Clears and fills @a plotter_list with all the PlotterBase
00309 //       objects on the canvas. */
00310 //   void fillPlotterList ( std::vector < PlotterBase * > &  );
00311 
00314   void setIntervalEnabled ( bool );
00316   void saveAs ( const std::string & );
00318   void saveAllAs ( const std::string & );
00329   void savePlotAsImage ( const PlotterBase *, std::string );
00337   void saveAsImage ( const PlotterBase *, std::string );
00340   void clear ();
00341  
00345   virtual void customEvent ( QCustomEvent * );
00348   void savePlotAsImageImmediate ( const PlotterBase *,
00349                                   const std::string &);
00350 
00352    void setAllSelected ( bool = true );
00353 
00355    void setSelected ( QtView * );
00356 
00358    const std::vector<double> & mouseEventData();
00359 
00362   void print ( const std::string &  );
00363 
00367   void setPlotMatrix ( unsigned int , unsigned int  );
00368 
00372   void setAddedSelected ( bool );
00373 
00374   
00375 };

Generated on Wed Sep 7 14:51:28 2005 for SiHippo by  doxygen 1.4.3