21 #if QT_VERSION < 0x040000
24 #include <QtGui/QMouseEvent>
29 #include <msdevstudio/MSconfig.h>
35 #if QT_VERSION < 0x040000
105 mutable std::vector < const ViewBase * >
m_views;
128 #if QT_VERSION < 0x040000
131 Q3CanvasRectangle * m_drag_rect;
139 #if QT_VERSION < 0x040000
142 Q3FileDialog * m_image_dialog;
149 bool fillPickedPoint(
QMouseEvent * e, std::vector<double> & picked);
153 void fillMouseData(
const std::vector<double> & picked);
155 void updatePickTable(
QtView * qtview, std::vector<double> & picked);
157 void setPlotZoom(
const std::vector<double> & start_picked,
158 const std::vector<double> & picked);
198 void initSettings ();
202 void saveSettings ()
const;
206 void initFitterDefault ();
210 void setFitterDefault (
const std::string & name );
218 static void createImageFilters ();
223 static bool isValidImageFormat (
const std::string & suffix );
228 #if QT_VERSION < 0x040000
231 Q3FileDialog * createImageDialog ();
235 void setChanged (
bool yes =
true );
239 void addView (
QtView * view,
bool select );
243 #if QT_VERSION < 0x040000
244 void placeItems (
const std::vector < QCanvasItem * > & items );
246 void placeItems (
const std::vector < Q3CanvasItem * > & items );
251 virtual void calcDefaultSize (
QtView * view,
double aspect_ratio = 0.0);
260 void sizeAndPlace (
QtView * view );
265 std::pair<double, double> moveToPlotterAt (
const PlotterBase * plotter,
267 double x,
double y );
272 void fillSelectedWithObservers ( std::vector < const ViewBase * > & );
281 virtual void contentsMouseMoveEvent (
QMouseEvent * );
282 virtual void contentsMousePressEvent (
QMouseEvent * );
287 virtual void controlMousePressEvent ();
292 virtual void contentsMouseReleaseEvent(
QMouseEvent*);
296 #if QT_VERSION < 0x040000
298 const char * name = 0, Qt::WFlags f = 0 );
301 const char * name = 0, Qt::WFlags f = 0 );
304 void initFrom (
const std::list < ViewBase * > & views );
307 void initFromFile (
const std::string & filename );
322 #if QT_VERSION < 0x040000
325 void initDockWindows ( Q3MainWindow * mw );
333 void setFitterDefault (
const QString & name );
336 void copySelectedToPasteboard ();
340 void copyFromPasteboard ();
345 void addFromPasteboard ();
350 void deleteSelected (
bool paste );
354 void pasteViews (
const std::list < ViewBase * > & views );
357 void restoreFromSelectCopy ();
360 void setCurrentRange();
363 std::vector<double>& getCurrentRange() ;
367 void setInspector (
Inspector * inspector );
379 void notifyObservers ();
386 std::vector < PlotterBase * > getSelectedPlotters ()
const;
391 void addPlotDisplay (
PlotterBase * plotter,
bool select);
394 #if QT_VERSION < 0x040000
397 void autosaveSettings ( Q3MainWindow * mw);
405 const std::string & s,
406 const std::string & text = std::string () );
412 std::pair<double, double> addTextDisplayAt (
PlotterBase * plotter,
413 const std::string &
type,
414 const std::string & text,
415 double xrel,
double yrel);
419 void addFuncDisplay (
PlotterBase * plotter,
const std::string & s );
428 const std::vector < const ViewBase * > & selectedViews ()
const;
434 const std::vector < const ViewBase * > & views ()
const;
439 void fillPlotterList ( std::vector < PlotterBase * > & plotter_list );
448 void previousView ();
452 virtual void print ();
456 virtual void print (
const std::string & filename );
468 void setIntervalEnabled (
bool yes =
true );
471 void removeSelected ();
474 void hideSelected ();
480 void saveSelectedImages ();
483 void saveSelectedImages (
const std::string & filename );
488 const std::string & filename )
const;
496 const std::string & filename )
const;
500 void saveAs (
const std::string & filename )
const;
504 static void saveAs (
const std::vector < const ViewBase * > & views,
505 const std::string & filename );
509 static void saveAs (
const std::vector < PlotterBase * > & plotters,
510 const std::string & filename );
516 void exportTextTuple (
const std::string & suffix );
520 void showInspector ();
523 void viewShowPickTable();
527 const std::vector<double> & mouseEventData();
532 void setPlotMatrix (
unsigned int columns,
unsigned int rows );
542 void setFonts(
const QFont & font );
549 const std::string & applicationName ()
const;
553 void setAddedSelected (
bool yes );
555 void setCutMode (
int mode );
575 bool existingFileWarning (
const std::string & filename );
579 void invalidImageFormatError (
const std::string & filename );
582 void saveSelectedAsEps (
const std::string & filename );
590 void saveSelectedAsFits (
const std::string & filename );
595 void showFitsError ()
const;
601 void setVisibleNonViews (
bool visible );
610 void saveSelectedImages (
const std::string & filename,
611 bool check_existing );
615 static void toLower ( std::string & upper );
633 void savePlotAsImage (
const PlotterBase * plotter,
634 const std::string & filename );
638 void swapOrientation ();
648 #endif // CanvasView_H