16 #ifndef CanvasWindow_H
17 #define CanvasWindow_H
23 #if QT_VERSION < 0x040000
164 std::string getSaveDocFilename ();
167 void setTitleFileName (
const std::string & name );
174 bool setFilenameFromDialog ();
180 bool areDataSourcesSaved ();
197 virtual void windowActivationChange (
bool oldActive );
217 virtual void filePrint ();
225 virtual void fileSaveAll();
231 virtual void fileSaveAllAs();
237 virtual void editClear ();
239 virtual void editCopy ();
243 virtual void editCut ();
248 virtual void editDelete ();
250 virtual void editPaste ();
254 virtual void editReTile ();
258 virtual void editReTilePage ();
262 virtual void editSelectAll ();
266 virtual void editUndo ();
268 virtual void fileExportTextTuple ();
272 virtual void fileCreateNTuple ();
276 virtual void helpHelp ();
280 virtual void helpAbout ();
284 virtual void aboutQt ();
289 virtual void viewLock ();
294 virtual void viewUnlock ();
298 virtual void viewShowInspector ();
302 virtual void viewShowPlotTable ();
306 virtual void viewShowPickTable ();
311 void previousView ();
320 virtual void setZoomMode (
bool on );
324 virtual void settingCanvas ();
328 virtual void settingPrinter ();
332 virtual void settingFonts ();
336 virtual void setFitter (
QAction * );
340 virtual void openRecentFile (
QAction * );
343 virtual void viewZoomIn();
346 virtual void viewZoomOut();
350 virtual void viewZoomReset();
353 virtual void viewAddPage();
357 virtual void setCutMode (
QAction * );
361 virtual void groupView ();
365 virtual void ungroupView ();
368 virtual void defaultToolbar ();
374 #if QT_VERSION < 0x040000
376 const char * name = 0,
377 Qt::WFlags fl = Qt::WType_TopLevel );
391 static void resetFontSize ();
394 void initFromFile (
const std::string & filename );
403 void inhibitClose (
bool yes =
true );
408 void setAllowClose (
bool yes =
true );
419 virtual bool closeNoPrompt ();
425 void setChanged (
bool flag =
true );
434 void updateActions ();
437 virtual void fileNew();
447 virtual void fileSaveAs ();
451 virtual void fileSaveSelectedImages ();
456 virtual void fileSaveSelectedImages(
const std::string & filename );
459 void saveAs (
const std::string & filename );
462 void saveAllAs (
const std::string & filename );
470 const std::string &
type);
475 const std::string &
type,
476 const std::string & text);
483 std::pair<double, double> addTextDisplayAt (
PlotterBase * plotter,
484 const std::string &
type,
485 const std::string & text,
486 double xrel,
double yrel);
489 void addFuncDisplay (
PlotterBase * plotter,
const std::string & name );
495 void addPlotDisplay (
PlotterBase * plotter,
bool select );
512 const std::vector < const ViewBase * > & views ();
516 void fillPlotterList ( std::vector < PlotterBase * > & plotter_list );
524 void setIntervalEnabled (
bool yes =
true );
536 void savePlotAsImage (
const PlotterBase * plotter,
537 const std::string & filename );
547 const std::string & filename );
550 void setAllSelected (
bool flag =
true );
553 void setSelected (
QtView * view );
556 const std::vector<double> & mouseEventData();
560 void print (
const std::string & filename );
565 void setPlotMatrix (
unsigned int columns,
unsigned int rows );
569 const QString & getAppKey ()
const;
573 void setAddedSelected (
bool yes );
577 NTuple * getPickTable ()
const;
586 void autosaveSettings ();
592 virtual void fileBrowse();
596 virtual void fileExit ();
602 virtual void fileOpen ();
608 #endif // CanvasWindow_H
CanvasView * m_canvas_view
The CanvasView object which is the central widget.
The file created from CanvasWindowBase.ui with the Qt uic tool.
QString m_changed
The changed status part of the window title.
This class implements additional FigureEditor functionality particular to QtView objects.
#define MDL_QTHIPPOPLOT_API
The base class for the CanvasWindow class.
The base class for the PlotterBase hierarchy.
CanvasView * m_browsed_canvas
The CanvasView object that is being browsed.
bool m_filenameExists
True if filename has been assigned, false if not.
PyArray_TYPES type(numeric::array arr)
A class to handle various file types.
A derived class of PlotTableBase class which is generated by the Qt designer.
bool m_inhibit_close
A flag set to true if the CanvasWindow should not accept a close event.
The class of derived from ViewBase and QCanvasRectangle for drawing on a QCanvas. ...
bool m_hasChanged
The current changed status.
QString m_prefix
The prefix part of the window title.
A DataSource class implemented with std::vector<double> to store the column data. ...
std::string m_filename
The file name part of the window title.
XmlController * m_xml_controller
The controller object capable of serializing the canvas contents as XML and serializing them...
bool m_allow_close
A flag set to true to allow the window to close without prompting the user.
A base class that is the interface between GUI and the XML serialization and deserialization.
QtFileDialog * m_file_dialog
The open file dialog for this window.
A concrete window class that contains the canvas and responds to menu item and tool bar events from t...
static PlotTable * s_plot_table
The singleton instance of PlotTable.