QtiPlot 0.9.8.2
ApplicationWindow.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     File                 : ApplicationWindow.h
00003     Project              : QtiPlot
00004     --------------------------------------------------------------------
00005     Copyright            : (C) 2004 - 2010 by Ion Vasilief,
00006                            (C) 2006 - june 2007 Tilman Hoener zu Siederdissen, Knut Franke
00007     Email (use @ for *)  : ion_vasilief*yahoo.fr
00008     Description          : QtiPlot's main window
00009 
00010  ***************************************************************************/
00011 
00012 /***************************************************************************
00013  *                                                                         *
00014  *  This program is free software; you can redistribute it and/or modify   *
00015  *  it under the terms of the GNU General Public License as published by   *
00016  *  the Free Software Foundation; either version 2 of the License, or      *
00017  *  (at your option) any later version.                                    *
00018  *                                                                         *
00019  *  This program is distributed in the hope that it will be useful,        *
00020  *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
00021  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
00022  *  GNU General Public License for more details.                           *
00023  *                                                                         *
00024  *   You should have received a copy of the GNU General Public License     *
00025  *   along with this program; if not, write to the Free Software           *
00026  *   Foundation, Inc., 51 Franklin Street, Fifth Floor,                    *
00027  *   Boston, MA  02110-1301  USA                                           *
00028  *                                                                         *
00029  ***************************************************************************/
00030 #ifndef APPLICATION_H
00031 #define APPLICATION_H
00032 
00033 #include <QMainWindow>
00034 #include <q3listview.h>
00035 #include <QHttp>
00036 #include <QFile>
00037 #include <QSplitter>
00038 #include <QDesktopServices>
00039 #include <QBuffer>
00040 #include <QLineEdit>
00041 #include <QMessageBox>
00042 
00043 #include <MultiLayer.h>
00044 #include <Graph.h>
00045 #include <Table.h>
00046 #include <ScriptingEnv.h>
00047 #include <Script.h>
00048 #include <TranslateCurveTool.h>
00049 
00050 #include <qwt_color_map.h>
00051 
00052 #ifdef BROWSER_PLUGIN
00053 #include <qtbrowserplugin.h>
00054 #endif
00055 
00056 #ifdef QAXSERVER
00057 #include <ActiveQt/QAxBindable>
00058 #include <ActiveQt/QAxFactory>
00059 #include <qt_windows.h>
00060 #endif
00061 
00062 class QPixmap;
00063 class QCloseEvent;
00064 class QDropEvent;
00065 class QTimerEvent;
00066 class QDragEnterEvent;
00067 class QTranslator;
00068 class QDockWidget;
00069 class QAction;
00070 class QActionGroup;
00071 class QTranslator;
00072 class QToolButton;
00073 class QShortcut;
00074 class QMenu;
00075 class QToolBar;
00076 class QAssistantClient;
00077 class QLocale;
00078 class QMdiArea;
00079 class QUndoView;
00080 class QCompleter;
00081 class QFileInfo;
00082 
00083 class Matrix;
00084 class Table;
00085 class ScalePicker;
00086 class Graph3D;
00087 class Note;
00088 class FunctionDialog;
00089 class Folder;
00090 class FolderListItem;
00091 class FolderListView;
00092 class ScriptWindow;
00093 class Plot3DDialog;
00094 class TableStatistics;
00095 class CurveRangeDialog;
00096 class LegendWidget;
00097 class ArrowMarker;
00098 class TextEditor;
00099 class AssociationsDialog;
00100 class ScriptEdit;
00101 class ExportDialog;
00102 class Grid;
00103 class ImportExportPlugin;
00104 
00134 class ApplicationWindow: public QMainWindow, public scripted
00135 #ifdef BROWSER_PLUGIN
00136     , public QtNPBindable
00137 #endif
00138 #ifdef QAXSERVER
00139     , public QAxBindable
00140 #endif
00141 {
00142     Q_OBJECT
00143 
00144 #ifdef BROWSER_PLUGIN
00145     Q_CLASSINFO("ClassID", "{2e5b2715-46b2-4831-ba9b-6a3b195d5ec8}")
00146     Q_CLASSINFO("InterfaceID", "{94581136-3c0c-46cc-97a1-066061356d43}")
00147     Q_CLASSINFO("EventsID", "{8c191b77-1894-45c7-9d6b-201dede95410}")
00148 
00149     Q_CLASSINFO("MIME", "application/x-qtiplot")
00150 #endif
00151 
00152 public:
00153     ApplicationWindow(bool factorySettings = false);
00154     ApplicationWindow(const QStringList& l);
00155     ~ApplicationWindow();
00156 
00157     enum ShowWindowsPolicy{HideAll, ActiveFolder, SubFolders};
00158     enum WindowType{NoWindow, TableWindow, MatrixWindow, MultiLayerWindow, NoteWindow, Plot3DWindow};
00159     enum MatrixToTableConversion{Direct, XYZ, YXZ};
00160     enum EndLineChar{LF, CRLF, CR};
00161     enum Analysis{NoAnalysis, Integrate, Diff, FitLinear, FitGauss, FitLorentz, FitSigmoidal, FitSlope};
00162     enum LaTeXCompiler{MathTran, Local};
00163 
00164     FolderListView *lv, *folders;
00165     QDockWidget *logWindow;
00166 
00171     QString generateUniqueName(const QString& name, bool increment = true);
00172     void saveFitFunctions(const QStringList& lst);
00173 
00175 
00176     void loadCustomActions();
00177     void reloadCustomActions();
00178     void removeCustomAction(QAction *);
00179     void addCustomAction(QAction *, const QString& parentName, int index = -1);
00180     QList<QAction *> customActionsList(){return d_user_actions;};
00181     QList<QMenu *> customizableMenusList();
00182 
00183     void reloadCustomMenus();
00184     QMenu* addCustomMenu(const QString& title, const QString& parentName);
00185     void removeCustomMenu(const QString& title);
00186     QList<QMenu *> customMenusList(){return d_user_menus;};
00188 
00189     QList<QMenu *> menusList();
00190     QList<QToolBar *> toolBarsList();
00191 
00192     MdiSubWindow *activeWindow(WindowType type = NoWindow);
00193     void setActiveWindow(MdiSubWindow *w){d_active_window = w;};
00194     QMdiArea* workspace(){return d_workspace;};
00195 
00196     int matrixUndoStackSize(){return d_matrix_undo_stack_size;};
00197     void setMatrixUndoStackSize(int size);
00198 
00199     QString endOfLine();
00200     static QString guessEndOfLine(const QString& sample);
00201     bool autoUpdateTableValues(){return d_auto_update_table_values;};
00202     void setAutoUpdateTableValues(bool on = true);
00203 
00204     QCompleter* completer(){return d_completer;};
00205     void enableCompletion(bool on = true);
00206     void addWindowsListToCompleter();
00207 
00208     QLocale clipboardLocale(){return d_clipboard_locale;};
00209     void setClipboardLocale(const QLocale& locale){d_clipboard_locale = locale;};
00210 
00211     QTextEdit *resultsLog(){return results;};
00212 #ifdef SCRIPTING_CONSOLE
00213     QTextEdit *scriptingConsole(){return console;};
00214 #endif
00215 
00216     static QString imageFilter();
00217     static QString getFileName(QWidget *parent = 0, const QString & caption = QString(),
00218         const QString & dir = QString(), const QString & filter = QString(),
00219         QString * selectedFilter = 0, bool save = true, bool confirmOverwrite = true);
00220 
00221     static void memoryAllocationError();
00222     QColor readColorFromProject(const QString& name);
00223 
00224     void enableMdiArea(bool on = true);
00225     bool isMdiAreaEnabled(){return d_mdi_windows_area;};
00226 
00227     void displayInfo(const QString& text){info->setText(text);};
00228     QLineEdit *infoLineEdit(){return info;};
00229 
00230     QList<QColor> indexedColors(){return d_indexed_colors;};
00231     void setIndexedColors(const QList<QColor>& lst){d_indexed_colors = lst;};
00232 
00233     QList<int> indexedSymbols(){return d_symbols_list;};
00234     void setIndexedSymbols(const QList<int>& lst){d_symbols_list = lst;};
00235 
00236     QStringList indexedColorNames(){return d_indexed_color_names;};
00237     void setIndexedColorNames(const QStringList& lst){d_indexed_color_names = lst;};
00238 
00239     void connectScriptEditor(ScriptEdit *);
00240 
00242 
00243     ImportExportPlugin* exportPlugin(const QString& suffix);
00244     ImportExportPlugin* importPlugin(const QString& fileName);
00246 
00247     bool isFileReadable(const QString&);
00248 
00249 public slots:
00251 
00252     void open();
00253     ApplicationWindow* open(const QString& fn, bool factorySettings = false, bool newProject = true);
00254     ApplicationWindow* openProject(const QString& fn, bool factorySettings = false, bool newProject = true);
00255     ApplicationWindow* importOPJ(const QString& fn, bool factorySettings = false, bool newProject = true);
00256     void closeProject();
00257 
00265     ApplicationWindow * plotFile(const QString& fn);
00266 
00273     ApplicationWindow * loadScript(const QString& fn, bool execute = false, bool noGui = false);
00274 
00275     QList<MdiSubWindow *> windowsList();
00276     QStringList windowsNameList();
00277     void updateWindowLists(MdiSubWindow *w);
00281     void cascade();
00282 
00283     void saveProjectAs(const QString& fileName = QString(), bool compress = false);
00284     bool saveProject(bool compress = false);
00285     void saveWindowAs(const QString& fileName = QString(), bool compress = false);
00286     bool saveWindow(MdiSubWindow *w, const QString& fileName = QString(), bool compress = false);
00287 
00289     void modifiedProject();
00291     void savedProject();
00293     void modifiedProject(MdiSubWindow *w);
00295 
00297 
00298     void setDefaultOptions();
00299     void readSettings();
00300     void saveSettings();
00301     void setSaveSettings(bool autoSaving, int min);
00302     void changeAppStyle(const QString& s);
00303     void changeAppFont(const QFont& f);
00304     void updateAppFonts();
00305     void setAppColors(const QColor& wc,const QColor& pc,const QColor& tpc, bool force = false);
00306 
00307     void initWindow();
00309 
00311 
00312 
00313     MultiLayer* newGraph(const QString& caption = tr("Graph"));
00314     MultiLayer* multilayerPlot(int c, int r, int style, const MultiLayer::AlignPolicy& align = MultiLayer::AlignLayers);
00315     MultiLayer* multilayerPlot(Table* w, const QStringList& colList, int style, int startRow = 0, int endRow = -1);
00317     MultiLayer* multilayerPlot(const QString& caption, int layers = 1, int rows = 1, int cols = 1);
00318     MultiLayer* waterfallPlot();
00319     MultiLayer* waterfallPlot(Table *t, const QStringList& list);
00320     void connectMultilayerPlot(MultiLayer *g);
00321     void addLayer();
00322     void addInsetLayer(bool curves = false);
00323     void addInsetCurveLayer();
00324     void deleteLayer();
00325     void extractGraphs();
00326     void extractLayers();
00327 
00329     MultiLayer* plotSpectrogram(Matrix *m, Graph::CurveType type);
00330     MultiLayer* plotGrayScale(Matrix *m = 0);
00331     MultiLayer* plotContour(Matrix *m = 0);
00332     MultiLayer* plotColorMap(Matrix *m = 0);
00333     MultiLayer* plotImage(Matrix *m = 0);
00334     MultiLayer* plotImageProfiles(Matrix *m = 0);
00335 
00337     void autoArrangeLayers();
00338     void initMultilayerPlot(MultiLayer* g, const QString& name);
00339     void plot2VerticalLayers();
00340     void plot2HorizontalLayers();
00341     void plot4Layers();
00342     void plotStackedLayers();
00343     void plotStackedHistograms();
00344 
00345     void plotStackSharedAxisLayers();
00346     void plotVerticalSharedAxisLayers();
00347     void plotHorizontalSharedAxisLayers();
00348     void plotSharedAxesLayers();
00349     void plotCustomLayout(bool sharedAxes = false);
00350     void plotCustomLayoutSharedAxes(){plotCustomLayout(true);};
00352 
00354 
00355     Graph3D* newPlot3D(const QString& title = QString());
00356     Graph3D* plotXYZ(Table* table,const QString& zColName, int type);
00358 
00360 
00361     Graph3D* plotSurface(const QString& formula, double xl, double xr,
00362                        double yl, double yr, double zl, double zr, int columns = 40, int rows = 30);
00363     Graph3D* plotParametricSurface(const QString& xFormula, const QString& yFormula,
00364                         const QString& zFormula, double ul, double ur, double vl, double vr,
00365                         int columns, int rows, bool uPeriodic, bool vPeriodic);
00366 
00367     void connectSurfacePlot(Graph3D *plot);
00368     void newSurfacePlot();
00369     void editSurfacePlot();
00370     void remove3DMatrixPlots(Matrix *m);
00371     void updateMatrixPlots(Matrix *);
00372     void add3DData();
00373     void change3DData();
00374     void change3DData(const QString& colName);
00375     void change3DMatrix();
00376     void change3DMatrix(const QString& matrix_name);
00377     void insertNew3DData(const QString& colName);
00378     void add3DMatrixPlot();
00379     void insert3DMatrixPlot(const QString& matrix_name);
00380 
00381     void plot3DWireframe();
00382     void plot3DHiddenLine();
00383     void plot3DPolygons();
00384     void plot3DWireSurface();
00385 
00386     Graph3D* plot3DMatrix(Matrix *m = 0, int style = 5);
00387 
00388     void plot3DRibbon();
00389     void plot3DScatter();
00390     void plot3DTrajectory();
00391     void plot3DBars();
00393 
00395 
00396     MultiLayer * newFunctionPlot(QStringList &formulas, double start, double end, int points = 100, const QString& var = "x", int type = 0);
00397 
00398     FunctionDialog* functionDialog();
00399     FunctionDialog* showFunctionDialog(Graph * g, int curve);
00400     void addFunctionCurve();
00401     void clearLogInfo();
00402     void updateFunctionLists(int type, QStringList &formulas);
00403     void updateSurfaceFuncList(const QString& s);
00405 
00407 
00408 
00409     Matrix* newMatrix(int rows = 32, int columns = 32);
00411     Matrix* newMatrix(const QString& caption, int r, int c);
00412     Matrix* matrix(const QString& name);
00413     Matrix* convertTableToMatrix();
00414     Matrix* tableToMatrix(Table* t);
00415     Matrix* tableToMatrixRegularXYZ(Table* t = 0, const QString& colName = QString::null);
00416 #ifdef HAVE_ALGLIB
00417     void convertTableToMatrixRandomXYZ();
00418     void expandMatrix();
00419     void shrinkMatrix();
00420     void smoothMatrix();
00421     void showMatrixResamplingDialog(bool shrink = false);
00422 #endif
00423     void showBinMatrixDialog();
00424     void initMatrix(Matrix* m, const QString& caption);
00425     void transposeMatrix();
00426     void invertMatrix();
00427     void matrixDeterminant();
00428     void flipMatrixVertically();
00429     void flipMatrixHorizontally();
00430     void rotateMatrix90();
00431     void rotateMatrixMinus90();
00432     void viewMatrixImage();
00433     void viewMatrixTable();
00434     void exportMatrix(const QString& exportFilter = QString::null);
00435     void setMatrixDefaultScale();
00436     void setMatrixGrayScale();
00437     void setMatrixRainbowScale();
00438     void viewMatrixColumnRow();
00439     void viewMatrixXY();
00440     void matrixDirectFFT();
00441     void matrixInverseFFT();
00443 
00445 
00446 
00447     Table* newTable();
00448 
00449     // getCurrent... functions for python interface
00450     Table* currentTable();
00451     MultiLayer* currentPlot();
00452     Note* currentNote();
00453     Matrix* currentMatrix();
00454 
00456     Table* newTable(const QString& caption,int r, int c);
00457     Table* newTable(int r, int c, const QString& name = QString(),const QString& legend = QString());
00467     Table* newHiddenTable(const QString& name, const QString& label, int r, int c, const QString& text=QString());
00468     Table* table(const QString& name);
00469     Table* convertMatrixToTableDirect();
00470     Table* convertMatrixToTableXYZ();
00471     Table* convertMatrixToTableYXZ();
00472     Table* matrixToTable(Matrix* m, MatrixToTableConversion conversionType = Direct);
00473     QList<MdiSubWindow *> tableList();
00475     bool hasTable();
00477     QStringList tableNames();
00478 
00479     void connectTable(Table* w);
00480     void initTable(Table* w, const QString& caption);
00481     void customTable(Table* w);
00482     Table* importOdfSpreadsheet(const QString& = QString::null, int sheet = -1);
00483 
00484     Table* importExcel(const QString& = QString::null, int sheet = -1);
00485 #ifdef Q_OS_WIN
00486     bool isExcelInstalled(){return d_has_excel;};
00487 #endif
00488 
00489     void exportExcel();
00490     void exportOds();
00491 
00492     Table* importDatabase(const QString& = QString::null, int sheet = -1);
00493     Table* importWaveFile();
00494     void importASCII(const QString& fileName = QString::null);
00495     void importASCII(const QStringList& files, int import_mode, const QString& local_column_separator, int local_ignored_lines, bool local_rename_columns,
00496         bool local_strip_spaces, bool local_simplify_spaces, bool local_import_comments,
00497         QLocale local_separators, const QString& local_comment_string, bool import_read_only, int endLineChar,
00498         const QList<int>& colTypes = QList<int>(), const QStringList& colFormats = QStringList());
00499     void exportAllTables(const QString& dir, const QString& filter, const QString& sep, bool colNames, bool colComments, bool expSelection);
00500 
00502     void recalculateTable();
00503 
00504     TableStatistics *newTableStatistics(Table *base, int type, QList<int>, int start = 0, int end = -1, const QString &caption = QString::null);
00506 
00508 
00509     void setPreferences(Graph* g);
00510     void setGraphDefaultSettings(bool autoscale,bool scaleFonts,bool resizeLayers,bool antialiasing);
00511     void setArrowDefaultSettings(double lineWidth,  const QColor& c, Qt::PenStyle style,
00512                                 int headLength, int headAngle, bool fillHead);
00513 
00514     void plotL();
00515     void plotP();
00516     void plotLP();
00517     void plotPie();
00518     void plotVerticalBars();
00519     void plotHorizontalBars();
00520     void plotStackBar();
00521     void plotStackColumn();
00522     void plotArea();
00523     void plotVertSteps();
00524     void plotHorSteps();
00525     void plotSpline();
00526     void plotVerticalDropLines();
00527     MultiLayer* plotHistogram();
00528     MultiLayer* plotHistogram(Matrix *m);
00529     void plotVectXYXY();
00530     void plotVectXYAM();
00531     void plotBox();
00532     void plotDoubleYAxis();
00533     void zoomRectanglePlot();
00534     QString stemPlot(Table *t = 0, const QString& colName = QString(), int power = 0, int startRow = 0, int endRow = -1);
00535     Note *newStemPlot();
00536 
00538     bool validFor3DPlot(Table *table);
00540     bool validFor2DPlot(Table *table, Graph::CurveType type);
00542     MultiLayer* generate2DGraph(Graph::CurveType type);
00544 
00546 
00547     void intensityTable();
00548     void pixelLineProfile();
00549     void loadImage();
00550     void loadImage(const QString& fn);
00551     Matrix* importImage(const QString& = QString(), bool newWindow = false);
00553 
00555 
00556     void exportLayer();
00557     void exportGraph(const QString& exportFilter = QString::null);
00558     void exportAllGraphs();
00559 #if QT_VERSION >= 0x040500
00560     void exportPresentationODF();
00561 #endif
00562     void exportPDF();
00563     void print();
00564     void printPreview();
00565     void setPrintPreviewOptions(QPrinter *);
00566     void printAllPlots();
00568 
00569     QStringList columnsList(Table::PlotDesignation plotType = Table::All);
00570 
00571     void undo();
00572     void redo();
00573 
00575 
00576     MdiSubWindow* clone(MdiSubWindow* w = 0);
00577     void rename();
00578     void renameWindow();
00579 
00581     void renameWindow(Q3ListViewItem *item, int, const QString &s);
00582 
00584     bool setWindowName(MdiSubWindow *w, const QString &text);
00585 
00586     void maximizeWindow(Q3ListViewItem * lbi = 0);
00587     void maximizeWindow(MdiSubWindow *w);
00588     void minimizeWindow(MdiSubWindow *w = 0);
00589 
00590     void updateWindowStatus(MdiSubWindow* );
00591 
00592     bool hidden(QWidget* window);
00593     void closeActiveWindow();
00594     void closeWindow(MdiSubWindow* window);
00595 
00597     void removeWindowFromLists(MdiSubWindow* w);
00598 
00599     void hideWindow(MdiSubWindow* window);
00600     void hideWindow();
00601     void hideActiveWindow();
00602     void activateWindow();
00603     void activateWindow(MdiSubWindow *);
00605 
00607     static QMessageBox* about(bool dialog = true);
00609     static QString versionString();
00610     void removeCurves(const QString& name);
00611     QStringList dependingPlots(const QString& caption);
00612     QStringList depending3DPlots(Matrix *m);
00613     QStringList multilayerDependencies(QWidget *w);
00614 
00615     void saveAsTemplate(MdiSubWindow* w = 0, const QString& = QString());
00616     void openTemplate();
00617     MdiSubWindow* openTemplate(const QString& fn);
00618 
00619     QString windowGeometryInfo(MdiSubWindow *w);
00620     static void restoreWindowGeometry(ApplicationWindow *app, MdiSubWindow *w, const QString s);
00621     void restoreApplicationGeometry();
00622     void resizeActiveWindow();
00623     void resizeWindow();
00624 
00626 
00627     void setListView(const QString& caption,const QString& view);
00628     void renameListViewItem(const QString& oldName,const QString& newName);
00629     void setListViewDate(const QString& caption,const QString& date);
00630     QString listViewDate(const QString& caption);
00631     void setListViewSize(const QString& caption,const QString& size);
00632     void setListViewLabel(const QString& caption,const QString& label);
00634 
00635     void updateColNames(const QString& oldName, const QString& newName);
00636     void updateTableNames(const QString& oldName, const QString& newName);
00637     void changeMatrixName(const QString& oldName, const QString& newName);
00638     void updateCurves(Table *t, const QString& name);
00639 
00640     void showTable(Table *, const QString& curve);
00641     void showTable(int i);
00642 
00643     void addColToTable();
00644     void cutSelection();
00645     void copySelection();
00646     void copyMarker();
00647     void pasteSelection();
00648     void clearSelection();
00649     void copyActiveLayer();
00650 
00651     void newProject();
00652 
00654 
00655     Matrix* openMatrix(ApplicationWindow* app, const QStringList &flist);
00656     Table* openTable(ApplicationWindow* app, const QStringList &flist);
00657     TableStatistics* openTableStatistics(const QStringList &flist);
00658     Graph* openGraph(ApplicationWindow* app, MultiLayer *plot, const QStringList &list);
00659 
00660     void openRecentProject(int index);
00662 
00664 
00665     void sortSelection();
00666     void sortActiveTable();
00667     void normalizeSelection();
00668     void normalizeActiveTable();
00669     void correlate();
00670     void autoCorrelate();
00671     void convolute();
00672     void deconvolute();
00673     void clearTable();
00674     void goToRow();
00675     void goToColumn();
00676     void moveTableRowUp();
00677     void moveTableRowDown();
00678     void adjustColumnWidth();
00679     void showChiSquareTestDialog();
00680     void showStudentTestDialog(bool twoSamples = false);
00681     void showTwoSampleStudentTestDialog(){return showStudentTestDialog(true);};
00682     void testNormality();
00683 #ifdef HAVE_TAMUANOVA
00684     void showANOVADialog(bool twoWay = false);
00685     void showTwoWayANOVADialog(){return showANOVADialog(true);};
00686 #endif
00687 
00688 
00690 
00691     void graphSelectionChanged(SelectionMoveResizer *);
00692     void lowerActiveEnrichment();
00693     void raiseActiveEnrichment(bool = true);
00694     void newLegend();
00695     void addTimeStamp();
00696     void drawLine();
00697     void drawArrow();
00698     void drawPoints();
00699     void addText();
00700     void addTexFormula();
00701     void addRectangle();
00702     void addEllipse();
00703     void addImage();
00704     void zoomIn();
00705     void zoomOut();
00706     void magnify(int mode = 0);
00707     void setAutoScale();
00708     void showRangeSelectors();
00709     void showCursor();
00710     void showScreenReader();
00711     void pickPointerCursor();
00712     void disableTools();
00713     void pickDataTool( QAction* action );
00714 
00715     void updateLog(const QString& result);
00717 
00719 
00720     void deleteFitTables();
00721     void fitLinear();
00722     void fitSigmoidal();
00723     void fitGauss();
00724     void fitLorentz();
00725     void fitMultiPeak(int profile);
00726     void fitMultiPeakGauss();
00727     void fitMultiPeakLorentz();
00728     void fitSlope();
00730 
00732 
00733     void integrate();
00734     void differentiate();
00735     void analysis(Analysis operation);
00736     void analyzeCurve(Graph *g, QwtPlotCurve *c, Analysis operation);
00737     void showDataSetDialog(Analysis operation);
00739 
00740     void addErrorBars();
00741     void movePoints(bool wholeCurve = false);
00742     void removePoints();
00743 
00745 
00746     void closeEvent( QCloseEvent*);
00747     void timerEvent ( QTimerEvent *e);
00748     void dragEnterEvent( QDragEnterEvent* e );
00749     void dropEvent( QDropEvent* e );
00750     void customEvent( QEvent* e);
00752 
00754 
00755     void showFindDialogue();
00757     void showPlotDialog(int curveKey = -1);
00758     QDialog* showScaleDialog();
00759     QDialog* showPlot3dDialog();
00760     AxesDialog* showScalePageFromAxisDialog(int axisPos);
00761     AxesDialog* showAxisPageFromAxisDialog(int axisPos);
00762     void showAxisDialog();
00763     void showGridDialog();
00764     void showGeneralPlotDialog();
00765     void showResults(bool ok);
00766     void showResults(const QString& s, bool ok=true);
00767     void showEnrichementDialog();
00768     void showLineDialog();
00769     void showTitleDialog();
00770     ExportDialog* showExportASCIIDialog();
00771     void showCurvesDialog();
00772     void showCurveRangeDialog();
00773     CurveRangeDialog* showCurveRangeDialog(Graph *g, int curve);
00774     AssociationsDialog* showPlotAssociations(int curve);
00775 
00776     void showAxisTitleDialog();
00777     void showColumnOptionsDialog();
00778     void showRowsDialog();
00779     void showDeleteRowsDialog();
00780     void showColsDialog();
00781     void showColMenu(int c);
00782     void showColumnValuesDialog();
00783     void showExtractDataDialog();
00784 
00785     void showGraphContextMenu();
00786     void showTableContextMenu(bool selection);
00787     void showWindowContextMenu();
00788     void customWindowTitleBarMenu(MdiSubWindow *w, QMenu *menu);
00789     void showCurveContextMenu(QwtPlotItem *);
00790     void showCurvePlotDialog();
00791     void showCurveWorksheet();
00792     void showCurveWorksheet(Graph *g, int curveIndex);
00793     void showWindowPopupMenu(Q3ListViewItem *it, const QPoint &p, int);
00794 
00796     void showListViewSelectionMenu(const QPoint &p);
00797 
00799     void showListViewPopupMenu(const QPoint &p);
00800 
00801     void showScriptWindow(bool parent = true);
00802     void showMoreWindows();
00803     void showMarkerPopupMenu();
00804     void showHelp();
00805     static void showStandAloneHelp();
00806     void chooseHelpFolder();
00807     void showPlotWizard();
00808     void showFitPolynomDialog();
00809     void showFrequencyCountDialog();
00810     void showIntegrationDialog();
00811     void showInterpolationDialog();
00812     void showExpGrowthDialog();
00813     void showExpDecayDialog();
00814     void showExpDecayDialog(int type);
00815     void showTwoExpDecayDialog();
00816     void showExpDecay3Dialog();
00817     void showRowStatistics();
00818     void showColStatistics();
00819     void showFitDialog();
00820     void showLayerDialog();
00821     void showPreferencesDialog();
00822     void showMatrixDialog();
00823     void showMatrixSizeDialog();
00824     void showMatrixValuesDialog();
00825     void showSmoothSavGolDialog();
00826     void showSmoothFFTDialog();
00827     void showSmoothAverageDialog();
00828     void showSmoothLowessDialog();
00829     void showSmoothDialog(int m);
00830     void showFilterDialog(int filter);
00831     void lowPassFilterDialog();
00832     void highPassFilterDialog();
00833     void bandPassFilterDialog();
00834     void bandBlockFilterDialog();
00835     void showFFTDialog();
00836     void showColorMapDialog();
00838 
00839     void baselineDialog();
00840     void subtractReferenceData();
00841     void subtractStraightLine();
00842     void translateCurveHor();
00843     void translateCurve(TranslateCurveTool::Direction direction = TranslateCurveTool::Vertical);
00844 
00846     void removeCurve();
00847     void hideCurve();
00848     void hideOtherCurves();
00849     void showAllCurves();
00850     void setCurveFullRange();
00851 
00852     void setAscValues();
00853     void setRandomValues();
00854     void setNormalRandomValues();
00855     void setXCol();
00856     void setYCol();
00857     void setZCol();
00858     void setXErrCol();
00859     void setYErrCol();
00860     void setLabelCol();
00861     void disregardCol();
00862     void setReadOnlyCol();
00863     void setReadOnlyColumns();
00864     void setReadWriteColumns();
00865     void swapColumns();
00866     void moveColumnRight();
00867     void moveColumnLeft();
00868     void moveColumnFirst();
00869     void moveColumnLast();
00870 
00871     void updateConfirmOptions(bool askTables, bool askMatrixes, bool askPlots2D, bool askPlots3D, bool askNotes);
00872 
00874 
00875     void toggle3DAnimation(bool on = true);
00877     void togglePerspective(bool on = true);
00879     void resetRotation();
00881     void fitFrameToLayer();
00882     void setFramed3DPlot();
00883     void setBoxed3DPlot();
00884     void removeAxes3DPlot();
00885     void removeGrid3DPlot();
00886     void setHiddenLineGrid3DPlot();
00887     void setLineGrid3DPlot();
00888     void setPoints3DPlot();
00889     void setCrosses3DPlot();
00890     void setCones3DPlot();
00891     void setBars3DPlot();
00892     void setFilledMesh3DPlot();
00893     void setEmptyFloor3DPlot();
00894     void setFloorData3DPlot();
00895     void setFloorIso3DPlot();
00896     void setFloorGrid3DPlot(bool on);
00897     void setCeilGrid3DPlot(bool on);
00898     void setRightGrid3DPlot(bool on);
00899     void setLeftGrid3DPlot(bool on);
00900     void setFrontGrid3DPlot(bool on);
00901     void setBackGrid3DPlot(bool on);
00902     void pickPlotStyle( QAction* action );
00903     void pickCoordSystem( QAction* action);
00904     void pickFloorStyle( QAction* action);
00905     void custom3DActions(QMdiSubWindow *w);
00906     void custom3DGrids(int grids);
00908 
00909     void updateRecentProjectsList(const QString& fn = QString::null);
00910 
00912     void receivedVersionFile(bool error);
00914     void searchForUpdates();
00915     void showDonationDialog();
00917     void showSupportPage();
00919     void showDonationsPage();
00921     void showHomePage();
00923     void showForums();
00925     void showBugTracker();
00927     void downloadManual();
00929     void downloadTranslation();
00931     void showDemoVersionMessage();
00932     void showProVersionMessage();
00933 
00934     void parseCommandLineArguments(const QStringList& args);
00935     void createLanguagesList();
00936     void switchToLanguage(int param);
00937     void switchToLanguage(const QString& locale);
00938 
00939     bool alreadyUsedName(const QString& label);
00940     bool projectHas2DPlots();
00941 
00943     MdiSubWindow* window(const QString& name);
00944 
00946     QStringList matrixNames();
00947 
00949 
00950 
00951     Note* newNote(const QString& caption = QString());
00952     Note* openNote(ApplicationWindow* app, const QStringList &flist);
00953     void saveNoteAs();
00954     void showNoteLineNumbers(bool show = true);
00955     void increaseNoteIndent();
00956     void decreaseNoteIndent();
00957     void noteFindDialogue();
00958     void noteFindNext();
00959     void noteFindPrev();
00960     void noteReplaceDialogue();
00961     void renameCurrentNoteTab();
00962     void addNoteTab();
00963     void closeNoteTab();
00964     void execute();
00965     void executeAll();
00966     void evaluate();
00967     void commentSelection();
00968     void uncommentSelection();
00970 
00972 
00973 
00974     Folder* currentFolder(){return current_folder;};
00976     void addFolder();
00977     Folder* addFolder(QString name, Folder* parent = NULL);
00979     void deleteFolder();
00980 
00982     bool deleteFolder(Folder *f);
00983 
00985     void deleteSelectedItems();
00987     void hideSelectedWindows();
00989     void showSelectedWindows();
00990 
00992     void desactivateFolders();
00993 
00995     bool changeFolder(Folder *newFolder, bool force = false);
00996 
00998     void folderItemChanged(Q3ListViewItem *it);
01000     void folderItemDoubleClicked(Q3ListViewItem *it);
01001 
01003 
01009     void showFolderPopupMenu(Q3ListViewItem *it, const QPoint &p, bool fromFolders);
01010 
01012     void showFolderPopupMenu(Q3ListViewItem *it, const QPoint &p, int);
01013 
01015     void startRenameFolder();
01016 
01018     void startRenameFolder(Q3ListViewItem *item);
01019 
01021     void renameFolder(Q3ListViewItem *it, int col, const QString &text);
01022 
01024     void showAllFolderWindows();
01025 
01027     void hideAllFolderWindows();
01028 
01030     void hideFolderWindows(Folder *f);
01031 
01033     void folderProperties();
01034 
01036     void windowProperties();
01037 
01039     void projectProperties();
01040 
01042     void appendProject();
01044     Folder* appendProject(const QString& file_name, Folder* parentFolder = 0);
01045     void saveAsProject();
01046     void saveFolderAsProject(Folder *f);
01047     void saveFolder(Folder *folder, const QString& fn, bool compress = false);
01048 
01050     void addFolderListViewItem(Folder *f);
01051 
01053     void addListViewItem(MdiSubWindow *w);
01054 
01056     void setShowWindowsPolicy(int p);
01057 
01059     Folder* projectFolder();
01060 
01062     void find(const QString& s, bool windowNames, bool labels, bool folderNames,
01063               bool caseSensitive, bool partialMatch, bool subfolders);
01064 
01066     void dragFolderItems(QList<Q3ListViewItem *> items){draggedItems = items;};
01067 
01069     void dropFolderItems(Q3ListViewItem *dest);
01070 
01072 
01076     void moveFolder(FolderListItem *src, FolderListItem *dest);
01078 
01082     bool copyFolder(Folder *src, Folder *dest);
01083 
01084     void foldersMenuActivated( int id );
01086 
01088 
01089 
01090     void scriptError(const QString &message, const QString &scriptName, int lineNumber);
01092     void executeNotes();
01094     void showScriptingLangDialog();
01096     void restartScriptingEnv();
01098     void scriptPrint(const QString &text);
01100     bool setScriptingLanguage(const QString &lang, bool force=false);
01101 
01102     void scriptsDirPathChanged(const QString& path);
01104 
01105     void showToolBarsMenu();
01106     void setFormatBarFont(const QFont &);
01107     void setFormatBarColor(const QColor&);
01108 
01109 signals:
01110     void modified();
01111 
01112 private:
01114 
01115     void init(bool factorySettings = false);
01116     void initCompleter();
01117     void createActions();
01118     void initMainMenu();
01119     void initToolBars();
01120     void initPlot3DToolBar();
01121     void initPlot3D(Graph3D *plot);
01122     void insertTranslatedStrings();
01123     void translateActionsStrings();
01125     virtual QMenu * createPopupMenu(){return NULL;};
01126     void updateCompleter(const QString& windowName, bool remove = false, const QString& newName = QString::null);
01127     QMessageBox::StandardButton showSaveProjectMessage();
01128     QString getSaveProjectName(const QString& fileName, bool *compress = 0, int scope = 0);
01129     void goToParentFolder();
01130     bool isProjectFile(const QString& fn);
01131     void initSearchForUpdates();
01132 
01133 private slots:
01134     void addColumnNameToCompleter(const QString& colName, bool remove = false);
01135     void removeColumnNameFromCompleter(const QString& colName){addColumnNameToCompleter(colName, true);};
01136 
01137     void disableActions();
01138     void customColumnActions();
01139     void disableToolbars();
01140     void customToolBars(QMdiSubWindow* w);
01141     void customMenu(QMdiSubWindow* w);
01142     void windowActivated(QMdiSubWindow *w);
01143     void custom2DPlotTools(MultiLayer *);
01144     void updateExplorerWindowLayout(Qt::DockWidgetArea);
01145 
01146     void analysisMenuAboutToShow();
01147     void scriptingMenuAboutToShow();
01148     void fileMenuAboutToShow();
01149     void editMenuAboutToShow();
01150     void matrixMenuAboutToShow();
01151     void plotMenuAboutToShow();
01152     void plotDataMenuAboutToShow();
01153     void tableMenuAboutToShow();
01154     void windowsMenuAboutToShow();
01155     void windowsMenuActivated( int id );
01156 
01158 
01159     void enableTextEditor(Graph *g);
01160     void setFontSize(int);
01161     void setFontFamily(const QFont &);
01162     void setItalicFont(bool);
01163     void setBoldFont(bool);
01164     void insertSuperscript();
01165     void insertSubscript();
01166     void underline();
01167     void insertGreekSymbol();
01168     void insertGreekMajSymbol();
01169     void insertMathSymbol();
01170     void setTextColor();
01172 
01173     void showCustomActionDialog();
01174     void performCustomAction(QAction *);
01175 
01176     void hideSelectedColumns();
01177     void showAllColumns();
01178     void closedLastCopiedLayer(){lastCopiedLayer = NULL;};
01179 
01180     void increasePrecision();
01181     void decreasePrecision();
01182 
01183 #ifdef SCRIPTING_PYTHON
01184     void openQtDesignerUi();
01185     void executeStartupScripts();
01186 #endif
01187 
01188 // TODO: a lot of this stuff should be private
01189 public:
01190     bool d_show_table_paste_dialog;
01191     double d_stats_significance_level;
01192     bool d_stats_result_table;
01193     bool d_stats_result_log;
01194     bool d_stats_result_notes;
01195     bool d_stats_confidence;
01196     bool d_stats_power;
01197     bool d_stats_output;
01198     bool d_descriptive_stats;
01199     bool d_confirm_modif_2D_points;
01200     bool d_ask_web_connection;
01201     bool d_open_last_project;
01202     int d_curve_max_antialising_size;
01203     bool d_disable_curve_antialiasing;
01204     bool d_force_muParser;
01205     bool d_keep_aspect_ration;
01206     QPrinter::PaperSize d_print_paper_size;
01207     QPrinter::Orientation d_printer_orientation;
01208     bool d_muparser_c_locale;
01209     Graph::LegendDisplayMode d_graph_legend_display;
01210     Graph::AxisTitlePolicy d_graph_axis_labeling;
01211     bool d_synchronize_graph_scales;
01212     int d_latex_compiler;
01213     QString d_latex_compiler_path;
01214     QString d_java_path;
01215     QString d_soffice_path;
01216     QString d_jodconverter_path;
01218     QString d_open_project_filter;
01220     int d_frame_geometry_unit;
01222     int d_layer_geometry_unit;
01223     int d_layer_canvas_width, d_layer_canvas_height;
01224     int d_notes_tab_length;
01225     QFont d_notes_font;
01227     EndLineChar d_eol;
01229     bool d_in_place_editing;
01231     bool d_completion;
01233     bool d_note_line_numbers;
01234     QString d_python_config_folder;
01236     QString d_startup_scripts_folder;
01237     QString d_translations_folder;
01239     bool d_opening_file;
01241     bool d_is_appending_file;
01242     QString customActionsDirPath;
01243     bool d_matrix_tool_bar, d_file_tool_bar, d_table_tool_bar, d_column_tool_bar, d_edit_tool_bar;
01244     bool d_plot_tool_bar, d_plot3D_tool_bar, d_display_tool_bar, d_format_tool_bar, d_notes_tool_bar;
01245     bool d_backup_files;
01246     WindowType d_init_window_type;
01247     QRect d_script_win_rect, d_app_rect;
01248     bool d_script_win_on_top;
01249     bool d_inform_rename_table;
01250     QString d_export_col_separator;
01251     bool d_export_col_names, d_export_table_selection, d_export_col_comment;
01253     QString d_image_export_filter, d_export_ASCII_file_filter;
01254     double d_scale_fonts_factor;
01255     bool d_export_transparency;
01256     int d_export_quality;
01257     int d_export_vector_resolution, d_export_bitmap_resolution, d_export_size_unit;
01258     QSizeF d_export_raster_size;
01259     bool d_export_color;
01260     bool d_export_escape_tex_strings;
01261     bool d_export_tex_font_sizes;
01262     int d_3D_export_text_mode, d_3D_export_sort;
01264     QLocale d_clipboard_locale;
01266     QLocale d_ASCII_import_locale;
01268     EndLineChar d_ASCII_end_line;
01270     QString d_ASCII_file_filter, d_ASCII_comment_string;
01271     bool d_ASCII_import_comments, d_ASCII_import_read_only, d_ASCII_import_preview;
01272     int d_ASCII_import_mode, d_preview_lines;
01273     int d_ASCII_import_first_row_role;
01274     QSize d_import_ASCII_dialog_size;
01276     bool d_show_current_folder;
01277     bool d_scale_plots_on_print, d_print_cropmarks;
01278     bool d_show_table_comments;
01279     bool d_extended_plot_dialog;
01280     bool d_extended_import_ASCII_dialog;
01281     bool d_extended_export_dialog;
01282     bool d_extended_open_dialog;
01283     bool generateUniformFitPoints;
01284     bool generatePeakCurves;
01285     QColor peakCurvesColor;
01286     bool d_multi_peak_messages;
01288     QSize d_add_curves_dialog_size;
01289 
01291     bool fit_scale_errors;
01292 
01294     int fitPoints;
01295 
01297     bool d_2_linear_fit_points;
01298 
01299     bool pasteFitResultsToPlot;
01300 
01302     bool writeFitResultsToLog;
01303 
01305     int fit_output_precision;
01306 
01308     int d_decimal_digits;
01309 
01311     Folder *current_folder;
01313     ShowWindowsPolicy show_windows_policy;
01314     enum {MaxRecentProjects = 10};
01316     int d_file_version;
01317 
01318     Grid *d_default_2D_grid;
01319 
01320     QColor d_rect_default_background;
01321     QBrush d_rect_default_brush;
01322     QColor workspaceColor, panelsColor, panelsTextColor;
01323     QColor d_graph_background_color, d_graph_canvas_color, d_graph_border_color, d_canvas_frame_color;
01324     int d_graph_background_opacity, d_graph_canvas_opacity, d_graph_border_width;
01325     QString appStyle, workingDir;
01326 
01328     QString templatesDir;
01329     bool autoScaleFonts, autoResizeLayers, autoSearchUpdates;
01330     bool confirmCloseTable, confirmCloseMatrix, confirmClosePlot2D, confirmClosePlot3D;
01331     bool confirmCloseFolder, confirmCloseNotes, d_confirm_overwrite;
01332     bool titleOn, autoSave, autoscale2DPlots, antialiasing2DPlots;
01334 
01335 
01336     QVector<bool> d_show_axes;
01338     QVector<bool> d_show_axes_labels;
01340     bool drawBackbones;
01342     int d_graph_tick_labels_dist;
01344     int d_graph_axes_labels_dist;
01346     int axesLineWidth;
01348     int majTicksStyle, minTicksStyle, legendFrameStyle, autoSaveTime, canvasFrameWidth;
01349     QColor legendBackground, legendTextColor, defaultArrowColor;
01350     int defaultArrowHeadLength, defaultArrowHeadAngle, d_legend_default_angle, d_symbol_style;
01351     double defaultArrowLineWidth, defaultCurveLineWidth, defaultSymbolEdge;
01352     bool defaultArrowHeadFill, d_fill_symbols, d_indexed_symbols;
01353     int defaultCurveBrush, defaultCurveAlpha, d_curve_line_style;
01354     Qt::PenStyle defaultArrowLineStyle;
01355     QPen d_frame_widget_pen;
01356     int majTicksLength, minTicksLength, defaultPlotMargin;
01357     int defaultCurveStyle, defaultSymbolSize;
01358     QFont appFont;
01359     QFont tableTextFont, tableHeaderFont, plotAxesFont, plotLegendFont, plotNumbersFont, plotTitleFont;
01360     QColor tableBkgdColor, tableTextColor, tableHeaderColor;
01361     QString projectname,columnSeparator, helpFilePath, appLanguage;
01362     QString configFilePath, fitPluginsPath, fitModelsPath, asciiDirPath, imagesDirPath, scriptsDirPath;
01363     int ignoredLines, savingTimerId, recentMenuID;
01364     bool renameColumns, strip_spaces, simplify_spaces;
01365     QStringList recentProjects;
01366     bool saved;
01367     QStringList locales;
01368     QStringList d_recent_functions; //user-defined functions;
01369     QStringList xFunctions, yFunctions, rFunctions, thetaFunctions; // user functions for parametric and polar plots
01370     QStringList surfaceFunc; //user-defined surface functions;
01371     QStringList d_param_surface_func; //user-defined parametric surface functions;
01373     QStringList renamedTables;
01374 
01376 
01377     FrameWidget *d_enrichement_copy;
01378     ArrowMarker *d_arrow_copy;
01380 
01382     bool autoSearchUpdatesRequest;
01383 
01385     QString defaultScriptingLang;
01386 
01388     QColor d_comment_highlight_color, d_class_highlight_color, d_numeric_highlight_color;
01389     QColor d_keyword_highlight_color, d_function_highlight_color, d_quotation_highlight_color;
01390 
01392 
01393     bool d_3D_smooth_mesh, d_3D_legend, d_3D_orthogonal, d_3D_autoscale;
01394     int d_3D_resolution, d_3D_projection;
01395     QFont d_3D_title_font, d_3D_numbers_font, d_3D_axes_font;
01396     QwtLinearColorMap d_3D_color_map;
01397     QColor d_3D_mesh_color;
01398     QColor d_3D_axes_color;
01399     QColor d_3D_numbers_color;
01400     QColor d_3D_labels_color;
01401     QColor d_3D_background_color;
01402     QColor d_3D_grid_color, d_3D_minor_grid_color;
01403     bool d_3D_minor_grids, d_3D_major_grids;
01404     int d_3D_major_style, d_3D_minor_style;
01405     double d_3D_major_width, d_3D_minor_width;
01406 
01407     void setPlot3DOptions();
01409 
01410 private:
01411 #ifdef Q_OS_WIN
01412     void detectExcel();
01413 #endif
01414     void loadPlugins();
01415     QList<ImportExportPlugin *> d_import_export_plugins;
01416 
01417     bool d_mdi_windows_area;
01418     MdiSubWindow *d_active_window;
01419     TextEditor *d_text_editor;
01420     // Flag telling if table values should be automatically recalculated when values in a column are modified.
01421     bool d_auto_update_table_values;
01422     int d_matrix_undo_stack_size;
01423 
01425     int convertOldToNewColorIndex(int cindex);
01426 
01428     QList<Q3ListViewItem *> draggedItems;
01429 
01431     QHttp *http;
01433     QBuffer version_buffer;
01434 
01435     Graph *lastCopiedLayer;
01436     QSplitter *explorerSplitter;
01437 
01438     QAssistantClient *assistant;
01439     ScriptWindow *scriptWindow;
01440     QTranslator *appTranslator, *qtTranslator;
01441     QDockWidget *explorerWindow, *undoStackWindow;
01442     QTextEdit *results;
01443 #ifdef SCRIPTING_CONSOLE
01444     QDockWidget *consoleWindow;
01445     QTextEdit *console;
01446 #endif
01447     QMdiArea *d_workspace;
01448 
01449     QToolBar *fileTools, *plotTools, *tableTools, *columnTools, *plot3DTools, *displayBar, *editTools, *plotMatrixBar;
01450     QToolBar *formatToolBar, *noteTools;
01451     QToolButton *btnResults;
01452     QWidgetList *hiddenWindows;
01453     QLineEdit *info;
01455     QCompleter *d_completer;
01456 
01457     QMenu *windowsMenu, *foldersMenu, *view, *graphMenu, *fileMenu, *format, *edit, *recent;
01458     QMenu *help, *plot2DMenu, *analysisMenu, *multiPeakMenu;
01459     QMenu *matrixMenu, *plot3DMenu, *plotDataMenu, *tablesDepend, *scriptingMenu;
01460     QMenu *tableMenu, *fillMenu, *normMenu, *newMenu, *exportPlotMenu, *smoothMenu, *filterMenu, *decayMenu, *importMenu;
01461 
01462     QAction *actionEditCurveRange, *actionCurveFullRange, *actionShowAllCurves, *actionHideCurve, *actionHideOtherCurves;
01463     QAction *actionRemoveCurve, *actionShowCurveWorksheet, *actionShowCurvePlotDialog;
01464     QAction *actionNewProject, *actionAppendProject, *actionNewNote, *actionNewTable, *actionNewFunctionPlot;
01465     QAction *actionNewSurfacePlot, *actionNewMatrix, *actionNewGraph, *actionNewFolder;
01466     QAction *actionOpen, *actionLoadImage, *actionSaveProject, *actionSaveProjectAs, *actionImportImage;
01467     QAction *actionLoad, *actionUndo, *actionRedo, *actionImportSound;
01468     QAction *actionImportDatabase, *actionOpenOds;
01469     QAction *actionExportExcel, *actionExportOds, *actionOpenExcel;
01470     QAction *actionCopyWindow, *actionShowAllColumns, *actionHideSelectedColumns;
01471     QAction *actionCutSelection, *actionCopySelection, *actionPasteSelection, *actionClearSelection;
01472     QAction *actionShowExplorer, *actionShowLog, *actionAddLayer, *actionShowLayerDialog, *actionAutomaticLayout;
01473 #ifdef SCRIPTING_CONSOLE
01474     QAction *actionShowConsole;
01475 #endif
01476 #ifdef SCRIPTING_PYTHON
01477     QAction *actionOpenQtDesignerUi, *actionCommentSelection, *actionUncommentSelection;
01478 #endif
01479     QAction *actionSwapColumns, *actionMoveColRight, *actionMoveColLeft, *actionMoveColFirst, *actionMoveColLast, *actionShowScriptWindow;
01480     QAction *actionExportGraph, *actionExportAllGraphs, *actionPrint, *actionPrintAllPlots, *actionShowExportASCIIDialog;
01481     QAction *actionExportPDF, *actionReadOnlyCol, *actionStemPlot;
01482     QAction *actionCloseAllWindows, *actionCloseProject, *actionClearLogInfo, *actionShowPlotWizard, *actionShowConfigureDialog;
01483     QAction *actionShowCurvesDialog, *actionAddErrorBars, *actionAddFunctionCurve, *actionUnzoom, *actionNewLegend, *actionAddImage, *actionAddText;
01484     QAction *actionPlotL, *actionPlotP, *actionPlotLP, *actionPlotVerticalDropLines, *actionPlotSpline;
01485     QAction *actionPlotVertSteps, *actionPlotHorSteps, *actionPlotVerticalBars, *actionStackBars, *actionStackColumns;
01486     QAction *actionPlotHorizontalBars, *actionPlotArea, *actionPlotPie, *actionPlotVectXYAM, *actionPlotVectXYXY;
01487     QAction *actionPlotHistogram, *actionPlotStackedHistograms, *actionPlot2VerticalLayers, *actionPlot2HorizontalLayers, *actionPlot4Layers, *actionPlotStackedLayers;
01488     QAction *actionPlot3DRibbon, *actionPlot3DBars, *actionPlot3DScatter, *actionPlot3DTrajectory;
01489     QAction *actionPlotDoubleYAxis, *actionAddInsetLayer, *actionAddInsetCurveLayer;
01490     QAction *actionShowColStatistics, *actionShowRowStatistics, *actionShowIntDialog, *actionIntegrate;
01491     QAction *actionDifferentiate, *actionFitLinear, *actionFitSlope, *actionShowFitPolynomDialog;
01492     QAction *actionShowExpDecayDialog, *actionShowTwoExpDecayDialog, *actionShowExpDecay3Dialog;
01493     QAction *actionFitExpGrowth, *actionFitSigmoidal, *actionFitGauss, *actionFitLorentz, *actionShowFitDialog;
01494     QAction *actionShowAxisDialog, *actionShowTitleDialog;
01495     QAction *actionShowColumnOptionsDialog, *actionShowColumnValuesDialog, *actionShowColsDialog, *actionShowRowsDialog;
01496     QAction *actionTableRecalculate, *actionExtractGraphs, *actionExtractLayers;
01497     QAction *actionAbout, *actionShowHelp, *actionChooseHelpFolder;
01498     QAction *actionRename, *actionCloseWindow;
01499     QAction *actionConvertTableDirect, *actionConvertTableBinning, *actionConvertTableRegularXYZ;
01500 #ifdef HAVE_ALGLIB
01501     QAction *actionConvertTableRandomXYZ, *actionExpandMatrix, *actionShrinkMatrix, *actionSmoothMatrix;
01502 #endif
01503     QAction *actionAddColToTable, *actionDeleteLayer, *actionInterpolate;
01504     QAction *actionResizeActiveWindow, *actionHideActiveWindow;
01505     QAction *actionShowMoreWindows, *actionPixelLineProfile, *actionIntensityTable;
01506     QAction *actionShowLineDialog, *actionShowTextDialog;
01507     QAction *actionActivateWindow, *actionMinimizeWindow, *actionMaximizeWindow, *actionHideWindow, *actionResizeWindow;
01508     QAction *actionEditSurfacePlot, *actionAdd3DData;
01509     QAction *actionMatrixDeterminant, *actionSetMatrixProperties, *actionConvertMatrixXYZ, *actionConvertMatrixYXZ;
01510     QAction *actionSetMatrixDimensions, *actionConvertMatrixDirect, *actionSetMatrixValues, *actionTransposeMatrix, *actionInvertMatrix;
01511     QAction *actionPlot3DWireFrame, *actionPlot3DHiddenLine, *actionPlot3DPolygons, *actionPlot3DWireSurface;
01512     QAction *actionColorMap, *actionContourMap, *actionGrayMap;
01513     QAction *actionDeleteFitTables, *actionShowGridDialog, *actionTimeStamp;
01514     QAction *actionSmoothSavGol, *actionSmoothFFT, *actionSmoothAverage, *actionSmoothLowess, *actionFFT;
01515     QAction *actionLowPassFilter, *actionHighPassFilter, *actionBandPassFilter, *actionBandBlockFilter;
01516     QAction *actionSortTable, *actionSortSelection, *actionNormalizeSelection;
01517     QAction *actionNormalizeTable, *actionConvolute, *actionDeconvolute, *actionCorrelate, *actionAutoCorrelate;
01518     QAction *actionTranslateHor, *actionTranslateVert, *actionSetAscValues, *actionSetRandomValues, *actionSetRandomNormalValues;
01519     QAction *actionSetXCol, *actionSetYCol, *actionSetZCol, *actionSetLabelCol, *actionDisregardCol, *actionSetXErrCol, *actionSetYErrCol;
01520     QAction *actionBoxPlot, *actionMultiPeakGauss, *actionMultiPeakLorentz, *actionCheckUpdates;
01521     QAction *actionDonate, *actionHomePage, *actionDownloadManual, *actionTechnicalSupport, *actionTranslations;
01522     QAction *actionHelpForums, *actionHelpBugReports;
01523     QAction *actionShowPlotDialog, *actionShowScaleDialog, *actionOpenTemplate, *actionSaveTemplate, *actionSaveWindow;
01524     QAction *actionNextWindow, *actionPrevWindow;
01525     QAction *actionScriptingLang, *actionRestartScripting, *actionClearTable, *actionGoToRow, *actionGoToColumn;
01526     QAction *actionNoteExecute, *actionNoteExecuteAll, *actionNoteEvaluate, *actionSaveNote, *actionFrequencyCount;
01527     QAction *actionOneSampletTest, *actionTwoSampletTest, *actionShapiroWilk, *actionChiSquareTest;
01528     QAction *actionAnimate, *actionPerspective, *actionFitFrame, *actionResetRotation;
01529     QAction *actionDeleteRows, *actionDrawPoints, *actionAddZoomPlot;
01530     QAction *btnCursor, *btnSelect, *btnPicker, *btnRemovePoints, *btnMovePoints, *actionDragCurve;
01531     QAction *btnZoomIn, *btnZoomOut, *btnPointer, *btnLine, *btnArrow;
01532     QAction *actionFlipMatrixVertically, *actionFlipMatrixHorizontally, *actionRotateMatrix;
01533     QAction *actionViewMatrixImage, *actionViewMatrix, *actionExportMatrix, *actionMatrixDefaultScale;
01534     QAction *actionMatrixGrayScale, *actionMatrixRainbowScale, *actionMatrixCustomScale, *actionRotateMatrixMinus;
01535     QAction *actionMatrixXY, *actionMatrixColumnRow, *actionImagePlot, *actionToolBars, *actionImageProfilesPlot;
01536     QAction *actionMatrixFFTDirect, *actionMatrixFFTInverse;
01537     QAction *actionFontBold, *actionFontItalic, *actionFontBox, *actionFontSize, *actionTextColor;
01538     QAction *actionSuperscript, *actionSubscript, *actionUnderline, *actionGreekSymbol, *actionCustomActionDialog;
01539     QAction *actionGreekMajSymbol, *actionMathSymbol;
01540     QAction *Box, *Frame, *None;
01541     QAction *front, *back, *right, *left, *ceil, *floor, *floordata, *flooriso, *floornone;
01542     QAction *wireframe, *hiddenline, *polygon, *filledmesh, *pointstyle, *barstyle, *conestyle, *crossHairStyle;
01543     QAction *actionShowUndoStack, *actionShowNoteLineNumbers, *actionAddFormula, *actionAddRectangle, *actionAddEllipse;
01544     QActionGroup *coord, *floorstyle, *grids, *plotstyle, *dataTools;
01545     QAction *actionMagnify, *actionFindWindow, *actionWaterfallPlot, *actionMagnifyHor, *actionMagnifyVert;
01546     QAction *actionMoveRowUp, *actionMoveRowDown, *actionAdjustColumnWidth;
01547 #if QT_VERSION >= 0x040500
01548     QAction *actionPresentationODF;
01549 #endif
01550     QAction *actionRenameNoteTab, *actionAddNoteTab, *actionCloseNoteTab;
01551     QAction *actionIncreaseIndent, *actionDecreaseIndent, *actionFind, *actionFindNext, *actionFindPrev, *actionReplace;
01552     QAction *actionIncreasePrecision, *actionDecreasePrecision, *actionPrintPreview;
01553     QAction *actionVertSharedAxisLayers, *actionHorSharedAxisLayers, *actionSharedAxesLayers, *actionStackSharedAxisLayers;
01554     QAction *actionCustomSharedAxisLayers, *actionCustomLayout, *actionExtractTableData, *actionSubtractLine, *actionSubtractReference;
01555     QAction *actionRaiseEnrichment, *actionLowerEnrichment, *actionBaseline;
01556 
01557     QList<QAction *> d_user_actions;
01558     QUndoView *d_undo_view;
01559     QList<QMenu *> d_user_menus;
01560 
01561     QList<QColor> d_indexed_colors;
01562     QStringList d_indexed_color_names;
01563     QList<int> d_symbols_list;
01564 #ifdef HAVE_TAMUANOVA
01565     QAction *actionOneWayANOVA, *actionTwoWayANOVA;
01566 #endif
01567 #ifdef Q_OS_WIN
01568     bool d_has_excel;
01569 #endif
01570 };
01571 #endif