Logo Search packages:      
Sourcecode: qtiplot version File versions  Download package

ApplicationWindow Class Reference

#include <ApplicationWindow.h>

Inheritance diagram for ApplicationWindow:

scripted

List of all members.


Detailed Description

QtiPlot's main window.

This class contains the main part of the user interface as well as the central project management facilities.

It manages all MyWidget MDI Windows in a project, knows about their organization in Folder objects and contains the parts of the project explorer not implemented in Folder, FolderListItem or FolderListView.

Furthermore, it is responsible for displaying most MDI Windows' context menus and opening all sorts of dialogs.

Future Plans

Split out the project management part into a new Project class. If MyWidget maintains a reference to its parent Project, it should be possible to have its subclasses display their own context menus and dialogs. This is necessary for implementing new plot types or even completely new MyWidget subclasses in plug-ins. It will also make ApplicationWindow more manageable by removing those parts not directly related to the main window.

Project would also take care of basic project file reading/writing (using Qt's XML framework), but delegate most of the work to MyWidget and its subclasses. This is necessary for providing save/restore of classes implemented in plug-ins. Support for foreign formats on the other hand could go into import/export classes (which could also be implemented in plug-ins). Those would interface directly with Project and the MyWidgets it manages. Thus, in addition to supporting QtXML-based save/restore, Project, MyWidget and subclasses will also have to provide generalized save/restore methods/constructors.

Maybe split out the project explorer into a new ProjectExplorer class, depending on how much code is left in ApplicationWindow after the above reorganizations. Think about whether a Model/View approach can be used for Project/ProjectExplorer.

Definition at line 117 of file ApplicationWindow.h.


Public Types

enum  { MaxRecentProjects = 10 }
enum  ShowWindowsPolicy { HideAll, ActiveFolder, SubFolders }
enum  WindowType {
  NoWindow, TableWindow, MatrixWindow, MultiLayerWindow,
  NoteWindow
}

Public Slots

static void about ()
 Show about dialog.
void addColToTable ()
void addErrorBars ()
bool alreadyUsedName (const QString &label)
void changeMatrixName (const QString &oldName, const QString &newName)
void clearSelection ()
QStringList columnsList (Table::PlotDesignation plotType=Table::All)
void copyActiveLayer ()
void copyMarker ()
void copySelection ()
void createLanguagesList ()
void cutSelection ()
void defineErrorBars (const QString &curveName, const QString &errColumnName, int direction)
void defineErrorBars (const QString &name, int type, const QString &percent, int direction)
QStringList depending3DPlots (Matrix *m)
QStringList dependingPlots (const QString &caption)
void disregardCol ()
void downloadManual ()
 Show download page in external browser.
void downloadTranslation ()
 Show translations page in external browser.
void hideCurve ()
void hideOtherCurves ()
QStringList matrixNames ()
 Returns a list with the names of all the matrices in the project.
void moveColumnFirst ()
void moveColumnLast ()
void moveColumnLeft ()
void moveColumnRight ()
void movePoints ()
QStringList multilayerDependencies (QWidget *w)
MultiLayernewGraph (const QString &caption=tr("Graph"))
 Creates a new empty multilayer plot.
void newProject ()
MyWidgetopenTemplate (const QString &fn)
void openTemplate ()
void parseCommandLineArguments (const QStringList &args)
void pasteSelection ()
bool projectHas2DPlots ()
void receivedVersionFile (bool error)
 connected to the done(bool) signal of the http object
void redo ()
void removeCurve ()
 Removes the curve identified by a key stored in the data() of actionRemoveCurve.
void removeCurves (const QString &name)
void removePoints ()
void resizeActiveWindow ()
void resizeWindow ()
void restoreApplicationGeometry ()
void restoreWindowGeometry (ApplicationWindow *app, MyWidget *w, const QString s)
void saveAsTemplate (MyWidget *w=0, const QString &=QString())
void searchForUpdates ()
 called when the user presses the actionCheckUpdates
void setAscValues ()
void setCurveFullRange ()
void setLabelCol ()
void setRandomValues ()
void setReadOnlyCol ()
void setReadOnlyColumns ()
void setReadWriteColumns ()
void setXCol ()
void setXErrCol ()
void setYCol ()
void setYErrCol ()
void setZCol ()
void showAllCurves ()
void showBugTracker ()
 Open bug tracking system at berliOS in external browser.
void showDonationDialog ()
void showDonationsPage ()
 Open donation page in external browser.
void showForums ()
 Open forums page at berliOS in external browser.
void showHomePage ()
 Open QtiPlot homepage in external browser.
void showSupportPage ()
 Open support page in external browser.
void showTable (int i)
void showTable (const QString &curve)
void showToolBarsMenu ()
void swapColumns ()
void switchToLanguage (const QString &locale)
void switchToLanguage (int param)
void translateCurveHor ()
void translateCurveVert ()
void undo ()
void updateColNames (const QString &oldName, const QString &newName)
void updateConfirmOptions (bool askTables, bool askMatrixes, bool askPlots2D, bool askPlots3D, bool askNotes)
void updateCurves (Table *t, const QString &name)
void updateRecentProjectsList ()
void updateTableNames (const QString &oldName, const QString &newName)
static QString versionString ()
 Return a version string ("QtiPlot x.y.z").
QWidget * window (const QString &name)
 Returns a pointer to the window named "name".
QString windowGeometryInfo (MyWidget *w)
MDI Windows
void activateWindow (MyWidget *)
void activateWindow ()
MyWidgetclone (MyWidget *w=0)
void closeActiveWindow ()
void closeWindow (MyWidget *window)
bool hidden (QWidget *window)
void hideActiveWindow ()
void hideWindow ()
void hideWindow (MyWidget *window)
void maximizeWindow ()
void maximizeWindow (MyWidget *w)
void maximizeWindow (Q3ListViewItem *lbi)
void minimizeWindow ()
void minimizeWindow (MyWidget *w)
void printWindow ()
void removeWindowFromLists (MyWidget *w)
 Does all the cleaning work before actually deleting a window!
void rename ()
void renameWindow (Q3ListViewItem *item, int, const QString &s)
 Called when the user presses F2 and an item is selected in lv.
void renameWindow ()
void setWindowGeometry (int x, int y, int w, int h)
 Changes the geometry of the active MDI window.
bool setWindowName (MyWidget *w, const QString &text)
 Checks weather the new window name is valid and modifies the name.
void updateWindowStatus (MyWidget *)
Surface Plots
void add3DData ()
void add3DMatrixPlot ()
void change3DData (const QString &colName)
void change3DData ()
void change3DMatrix (const QString &matrix_name)
void change3DMatrix ()
void connectSurfacePlot (Graph3D *plot)
void customPlot3D (Graph3D *plot)
void editSurfacePlot ()
void initPlot3D (Graph3D *plot)
void insert3DMatrixPlot (const QString &matrix_name)
void insertNew3DData (const QString &colName)
void newSurfacePlot ()
void plot3DBars ()
void plot3DHiddenLine ()
Graph3Dplot3DMatrix (Matrix *m=0, int style=5)
void plot3DPolygons ()
void plot3DRibbon ()
void plot3DScatter ()
void plot3DTrajectory ()
void plot3DWireframe ()
void plot3DWireSurface ()
Graph3DplotParametricSurface (const QString &xFormula, const QString &yFormula, const QString &zFormula, double ul, double ur, double vl, double vr, int columns, int rows, bool uPeriodic, bool vPeriodic)
Graph3DplotSurface (const QString &formula, double xl, double xr, double yl, double yr, double zl, double zr, int columns=40, int rows=30)
void remove3DMatrixPlots (Matrix *m)
void setPlot3DOptions ()
void updateMatrixPlots (QWidget *)
Folders
FolderaddFolder (QString name, Folder *parent=NULL)
void addFolder ()
 Adds a new folder to the project.
void addFolderListViewItem (Folder *f)
 adds a folder list item to the list view "lv"
void addListViewItem (MyWidget *w)
 adds a widget list item to the list view "lv"
FolderappendProject (const QString &file_name, Folder *parentFolder=0)
 Open the specified project file and add it as a subfolder to the parentFolder or to the current folder if no parent folder is specified.
void appendProject ()
 Pops up a file dialog and invokes appendProject(const QString&) on the result.
bool changeFolder (Folder *newFolder, bool force=false)
 Changes the current folder. Returns true if successfull.
FoldercurrentFolder ()
 Returns a pointer to the current folder in the project.
bool deleteFolder (Folder *f)
 Ask confirmation from user, deletes the folder f if user confirms and returns true, otherwise returns false;.
void deleteFolder ()
 Deletes the current folder.
void deleteSelectedItems ()
 Deletes the currently selected items from the list view lv.
void desactivateFolders ()
 Sets all items in the folders list view to be desactivated (QPixmap = folder_closed_xpm).
void dragFolderItems (QList< Q3ListViewItem * > items)
 initializes the list of items dragged by the user
void dropFolderItems (Q3ListViewItem *dest)
 Drop the objects in the list draggedItems to the folder of the destination item.
void find (const QString &s, bool windowNames, bool labels, bool folderNames, bool caseSensitive, bool partialMatch, bool subfolders)
 used by the findDialog
void folderItemChanged (Q3ListViewItem *it)
 Changes the current folder when the user changes the current item in the QListView "folders".
void folderItemDoubleClicked (Q3ListViewItem *it)
 Changes the current folder when the user double-clicks on a folder item in the QListView "lv".
void folderProperties ()
 pops up folder information
void foldersMenuActivated (int id)
void hideAllFolderWindows ()
 forces hidding all windows in the current folder and subfolders, depending on the user's viewing policy
void hideFolderWindows (Folder *f)
 hides all windows in folder f
void hideSelectedWindows ()
 Hides the currently selected windows from the list view lv.
void moveFolder (FolderListItem *src, FolderListItem *dest)
 moves a folder item to another
FolderprojectFolder ()
 returns a pointer to the root project folder
void projectProperties ()
 pops up information about the current project
void renameFolder (Q3ListViewItem *it, int col, const QString &text)
 checks weather the new folder name is valid and modifies the name
void saveAsProject ()
void saveFolder (Folder *folder, const QString &fn, bool compress=false)
void saveFolderAsProject (Folder *f)
void setShowWindowsPolicy (int p)
 hides or shows windows in the current folder and changes the view windows policy
void showAllFolderWindows ()
 forces showing all windows in the current folder and subfolders, depending on the user's viewing policy
void showFolderPopupMenu (Q3ListViewItem *it, const QPoint &p, int)
 connected to the SIGNAL contextMenuRequested from the list views
void showFolderPopupMenu (Q3ListViewItem *it, const QPoint &p, bool fromFolders)
 creates and opens the context menu of a folder list view item
void showSelectedWindows ()
 Show the currently selected windows from the list view lv.
void startRenameFolder (Q3ListViewItem *item)
 starts renaming the selected folder by creating a built-in text editor
void startRenameFolder ()
 starts renaming the selected folder by creating a built-in text editor
void windowProperties ()
 pops up information about the selected window item
User-defined Functions
void addFunctionCurve ()
void clearLogInfo ()
void clearParamFunctionsList ()
void clearPolarFunctionsList ()
void clearSurfaceFunctionsList ()
FunctionDialogfunctionDialog ()
MultiLayernewFunctionPlot (QStringList &formulas, double start, double end, int points=100, const QString &var="x", int type=0)
void showFunctionDialog (Graph *g, int curve)
void showFunctionDialog ()
void updateFunctionLists (int type, QStringList &formulas)
void updateSurfaceFuncList (const QString &s)
Plot Tools
void addImage ()
void addText ()
void addTimeStamp ()
void disableAddText ()
void disableTools ()
void drawArrow ()
void drawLine ()
void drawPoints ()
void newLegend ()
void pickDataTool (QAction *action)
void pickPointerCursor ()
void setAutoScale ()
void showCursor ()
void showRangeSelectors ()
void showScreenReader ()
void updateLog (const QString &result)
void zoomIn ()
void zoomOut ()
Multilayer Plots
void addLayer ()
void autoArrangeLayers ()
 Rearrange the layersin order to fit to the size of the plot window.
void connectMultilayerPlot (MultiLayer *g)
void deleteLayer ()
void initMultilayerPlot (MultiLayer *g, const QString &name)
MultiLayermultilayerPlot (const QStringList &colList)
 used by the plot wizard
MultiLayermultilayerPlot (const QString &caption)
 used when restoring a plot from a project file
MultiLayermultilayerPlot (Table *w, const QStringList &colList, int style, int startRow=0, int endRow=-1)
MultiLayermultilayerPlot (int c, int r, int style)
void plot2HorizontalLayers ()
void plot2VerticalLayers ()
void plot4Layers ()
MultiLayerplotColorMap (Matrix *m=0)
MultiLayerplotContour (Matrix *m=0)
MultiLayerplotGrayScale (Matrix *m=0)
MultiLayerplotImage (Matrix *m=0)
MultiLayerplotSpectrogram (Matrix *m, Graph::CurveType type)
 Creates a new spectrogram graph.
void plotStackedHistograms ()
void plotStackedLayers ()
void polishGraph (Graph *g, int style)
Calculus
void analysis (const QString &whichFit)
void analyzeCurve (Graph *g, const QString &whichFit, const QString &curveTitle)
void differentiate ()
void showDataSetDialog (const QString &whichFit)
Settings
void applyUserSettings ()
void changeAppFont (const QFont &f)
void changeAppStyle (const QString &s)
void initWindow ()
QLocale locale ()
void readSettings ()
void saveSettings ()
void setAppColors (const QColor &wc, const QColor &pc, const QColor &tpc)
void setLocale (const QLocale &l)
void setSaveSettings (bool autoSaving, int min)
void updateAppFonts ()
Table Tools
void autoCorrelate ()
void clearTable ()
void convolute ()
void correlate ()
void deconvolute ()
void goToRow ()
void normalizeActiveTable ()
void normalizeSelection ()
void sortActiveTable ()
void sortSelection ()
Dialogs
void bandBlockFilterDialog ()
void bandPassFilterDialog ()
void chooseHelpFolder ()
void highPassFilterDialog ()
void lowPassFilterDialog ()
void showAxisDialog ()
AxesDialogshowAxisPageFromAxisDialog (int axisPos)
void showColMenu (int c)
void showColorMapDialog ()
void showColsDialog ()
void showColStatistics ()
void showColumnOptionsDialog ()
void showColumnValuesDialog ()
void showCurveContextMenu (int curveKey)
void showCurvePlotDialog ()
CurveRangeDialogshowCurveRangeDialog (Graph *g, int curve)
void showCurveRangeDialog ()
void showCurvesDialog ()
void showCurveWorksheet (Graph *g, int curveIndex)
void showCurveWorksheet ()
void showDeleteRowsDialog ()
void showExpDecay3Dialog ()
void showExpDecayDialog (int type)
void showExpDecayDialog ()
void showExpGrowthDialog ()
void showExportASCIIDialog ()
void showFFTDialog ()
void showFilterDialog (int filter)
void showFindDialogue ()
void showFitDialog ()
void showFitPolynomDialog ()
void showGeneralPlotDialog ()
void showGraphContextMenu ()
void showGridDialog ()
void showHelp ()
void showImageDialog ()
void showIntegrationDialog ()
void showInterpolationDialog ()
void showLayerDialog ()
void showLineDialog ()
void showListViewPopupMenu (const QPoint &p)
 Connected to the context menu signal from lv; it's called when there are no items selected in the list.
void showListViewSelectionMenu (const QPoint &p)
 Connected to the context menu signal from lv; it's called when there are several items selected in the list.
void showMarkerPopupMenu ()
void showMatrixDialog ()
void showMatrixSizeDialog ()
void showMatrixValuesDialog ()
void showMoreWindows ()
QDialog * showPlot3dDialog ()
void showPlotAssociations (int curve)
void showPlotDialog (int curveKey=-1)
 Show plot style dialog for the active MultiLayer / activeGraph / specified curve or the activeGraph options dialog if no curve is specified (curveKey = -1).
void showPlotWizard ()
void showPreferencesDialog ()
void showResults (const QString &s, bool ok=true)
void showResults (bool ok)
void showRightAxisTitleDialog ()
void showRowsDialog ()
void showRowStatistics ()
QDialog * showScaleDialog ()
AxesDialogshowScalePageFromAxisDialog (int axisPos)
void showScriptWindow ()
void showSmoothAverageDialog ()
void showSmoothDialog (int m)
void showSmoothFFTDialog ()
void showSmoothSavGolDialog ()
static void showStandAloneHelp ()
void showTableContextMenu (bool selection)
void showTextDialog ()
void showTitleDialog ()
void showTopAxisTitleDialog ()
void showTwoExpDecayDialog ()
void showWindowContextMenu ()
void showWindowPopupMenu (Q3ListViewItem *it, const QPoint &p, int)
void showWindowTitleBarMenu ()
void showXAxisTitleDialog ()
void showYAxisTitleDialog ()
Projects and Project Files
void cascade ()
ApplicationWindowimportOPJ (const QString &filename)
ApplicationWindowloadScript (const QString &fn, bool execute=false, bool factorySettings=false)
 Create a new project from a script file.
void modifiedProject (QWidget *w)
 Set the project status to modified and save 'w' as the last modified widget.
void modifiedProject ()
 Set the project status to modifed.
ApplicationWindowopen (const QString &fn, bool factorySettings=false)
void open ()
ApplicationWindowopenProject (const QString &fn, bool factorySettings=false)
ApplicationWindowplotFile (const QString &fn)
 Create a new project from a data file.
void savedProject ()
 Set the project status to saved (not modified).
bool saveProject (bool compress=false)
void saveProjectAs (const QString &fileName=QString(), bool compress=false)
void updateWindowLists (MyWidget *w)
QWidgetList * windowsList ()
Event Handlers
void closeEvent (QCloseEvent *)
void customEvent (QEvent *e)
void dragEnterEvent (QDragEnterEvent *e)
void dropEvent (QDropEvent *e)
void timerEvent (QTimerEvent *e)
Tables
void connectTable (Table *w)
TableconvertMatrixToTable ()
void customizeTables (const QColor &bgColor, const QColor &textColor, const QColor &headerColor, const QFont &textFont, const QFont &headerFont, bool showComments)
void customTable (Table *w)
void exportAllTables (const QString &sep, bool colNames, bool colComments, bool expSelection)
void exportASCII (const QString &tableName, const QString &sep, bool colNames, bool colComments, bool expSelection)
void importASCII (const QStringList &files, int import_mode, const QString &local_column_separator, int local_ignored_lines, bool local_rename_columns, bool local_strip_spaces, bool local_simplify_spaces, bool local_import_comments, bool update_dec_separators, QLocale local_separators, const QString &local_comment_string, bool import_read_only)
void importASCII ()
void initTable (Table *w, const QString &caption)
TablematrixToTable (Matrix *m)
TablenewHiddenTable (const QString &name, const QString &label, int r, int c, const QString &text=QString())
 Create a Table which is initially hidden; used to return the result of an analysis operation.
TablenewTable (const QString &caption, int r, int c, const QString &text)
TablenewTable (int r, int c, const QString &name=QString(), const QString &legend=QString())
TablenewTable (const QString &caption, int r, int c)
 Used when loading a table from a project file.
TablenewTable (const QString &fname, const QString &sep, int lines, bool renameCols, bool stripSpaces, bool simplifySpaces, bool importComments, const QString &commentString, bool readOnly)
 Used when importing an ASCII file.
TablenewTable ()
 Creates an empty table.
TableStatisticsnewTableStatistics (Table *base, int type, QList< int >, const QString &caption=QString::null)
void recalculateTable ()
 recalculate selected cells of current table
Tabletable (const QString &name)
QWidgetList * tableList ()
Matrices
MatrixconvertTableToMatrix ()
void exportMatrix ()
void flipMatrixHorizontally ()
void flipMatrixVertically ()
void initMatrix (Matrix *m, const QString &caption)
void invertMatrix ()
Matrixmatrix (const QString &name)
void matrixDeterminant ()
void matrixDirectFFT ()
void matrixInverseFFT ()
MatrixnewMatrix (const QString &caption, int r, int c)
 To be used when opening a project file only!
MatrixnewMatrix (int rows=32, int columns=32)
 Creates a new empty matrix.
void rotateMatrix90 ()
void rotateMatrixMinus90 ()
void setMatrixGrayScale ()
void setMatrixRainbowScale ()
MatrixtableToMatrix (Table *t)
void transposeMatrix ()
void viewMatrixColumnRow ()
void viewMatrixImage ()
void viewMatrixTable ()
void viewMatrixXY ()
Plot3D Tools
void custom3DActions (QWidget *w)
void custom3DGrids (int grids)
void fitFrameToLayer ()
 Finds best layout for the 3D plot.
void pickCoordSystem (QAction *action)
void pickFloorStyle (QAction *action)
void pickPlotStyle (QAction *action)
void removeAxes3DPlot ()
void removeGrid3DPlot ()
void resetRotation ()
 Resets rotation of 3D plots to default values.
void setBackGrid3DPlot (bool on)
void setBars3DPlot ()
void setBoxed3DPlot ()
void setCeilGrid3DPlot (bool on)
void setCones3DPlot ()
void setCrosses3DPlot ()
void setEmptyFloor3DPlot ()
void setFilledMesh3DPlot ()
void setFloorData3DPlot ()
void setFloorGrid3DPlot (bool on)
void setFloorIso3DPlot ()
void setFramed3DPlot ()
void setFrontGrid3DPlot (bool on)
void setHiddenLineGrid3DPlot ()
void setLeftGrid3DPlot (bool on)
void setLineGrid3DPlot ()
void setPoints3DPlot ()
void setRightGrid3DPlot (bool on)
void toggle3DAnimation (bool on=true)
void togglePerspective (bool on=true)
 Turns perspective mode on or off.
3D Data Plots
Graph3DdataPlot3D (const QString &caption, const QString &formula, double xl, double xr, double yl, double yr, double zl, double zr)
Graph3DnewPlot3D ()
Graph3DopenMatrixPlot3D (const QString &caption, const QString &matrix_name, double xl, double xr, double yl, double yr, double zl, double zr)
Graph3DopenPlotXYZ (const QString &caption, const QString &formula, double xl, double xr, double yl, double yr, double zl, double zr)
Graph3DplotXYZ (Table *table, const QString &zColName, int type)
Fitting
void deleteFitTables ()
void fitGauss ()
void fitLinear ()
void fitLorentz ()
void fitMultiPeak (int profile)
void fitMultiPeakGauss ()
void fitMultiPeakLorentz ()
void fitSigmoidal ()
Scripting
void executeNotes ()
 execute all notes marked auto-exec
void restartScriptingEnv ()
 create a new environment for the current scripting language
void scriptError (const QString &message, const QString &scriptName, int lineNumber)
 notify the user that an error occured in the scripting system
void scriptPrint (const QString &text)
 print to scripting console (if available) or to stdout
void scriptsDirPathChanged (const QString &path)
bool setScriptingLanguage (const QString &lang, bool force=false)
 switches to the given scripting language; if this is the same as the current one and force is true, restart it
void showScriptingLangDialog ()
 show scripting language selection dialog
Export and Print
void exportAllGraphs ()
void exportGraph ()
void exportLayer ()
void exportPDF ()
void print (QWidget *w)
void print ()
void printAllPlots ()
Graphs
MultiLayergenerate2DGraph (Graph::CurveType type)
 Generate a new 2D graph.
void plotArea ()
void plotBoxDiagram ()
MultiLayerplotHistogram (Matrix *m)
MultiLayerplotHistogram ()
void plotHorizontalBars ()
void plotHorSteps ()
void plotL ()
void plotLP ()
void plotP ()
void plotPie ()
void plotSpline ()
void plotVectXYAM ()
void plotVectXYXY ()
void plotVerticalBars ()
void plotVerticalDropLines ()
void plotVertSteps ()
void setArrowDefaultSettings (int lineWidth, const QColor &c, Qt::PenStyle style, int headLength, int headAngle, bool fillHead)
void setGraphDefaultSettings (bool autoscale, bool scaleFonts, bool resizeLayers, bool antialiasing)
void setLegendDefaultSettings (int frame, const QFont &font, const QColor &textCol, const QColor &backgroundCol)
void setPreferences (Graph *g)
bool validFor2DPlot (Table *table)
 Check whether a table is valid for a 2D plot and display an appropriate error if not.
bool validFor3DPlot (Table *table)
 Check whether a table is valid for a 3D plot and display an appropriate error if not.
Image Analysis
MatriximportImage (const QString &=QString())
void intensityTable ()
void loadImage (const QString &fn)
void loadImage ()
void pixelLineProfile ()
Notes
void initNote (Note *m, const QString &caption)
NotenewNote (const QString &caption=QString())
 Creates a new empty note window.
NoteopenNote (ApplicationWindow *app, const QStringList &flist)
void saveNoteAs ()
List View in Project Explorer
QString listViewDate (const QString &caption)
void renameListViewItem (const QString &oldName, const QString &newName)
void setListView (const QString &caption, const QString &view)
void setListViewDate (const QString &caption, const QString &date)
void setListViewLabel (const QString &caption, const QString &label)
void setListViewSize (const QString &caption, const QString &size)
Reading from a Project File
GraphopenGraph (ApplicationWindow *app, MultiLayer *plot, const QStringList &list)
MatrixopenMatrix (ApplicationWindow *app, const QStringList &flist)
void openRecentProject (int index)
Graph3DopenSurfacePlot (ApplicationWindow *app, const QStringList &lst)
TableopenTable (ApplicationWindow *app, const QStringList &flist)
TableStatisticsopenTableStatistics (const QStringList &flist)

Signals

void modified ()

Public Member Functions

 ApplicationWindow (const QStringList &l)
 ApplicationWindow (bool factorySettings=false)
QString generateUniqueName (const QString &name, bool increment=true)
QList< QMenu * > menusList ()
void saveFitFunctions (const QStringList &lst)
void scriptingChangeEvent (ScriptingChangeEvent *)
QList< QToolBar * > toolBarsList ()
User custom actions
void addCustomAction (QAction *, const QString &parentName)
QList< QAction * > customActionsList ()
QList< QMenu * > customizableMenusList ()
void loadCustomActions ()
void reloadCustomActions ()
void removeCustomAction (QAction *)

Public Attributes

bool allAxesOn
bool antialiasing2DPlots
QFont appFont
QString appLanguage
QString appStyle
QString asciiDirPath
bool askForSupport
bool autoResizeLayers
bool autoSave
int autoSaveTime
bool autoscale2DPlots
bool autoscale3DPlots
bool autoScaleFonts
bool autoSearchUpdates
bool autoSearchUpdatesRequest
 Equals true if an automatical search for updates was performed on start-up otherwise is set to false;.
int axesLineWidth
int canvasFrameWidth
QString columnSeparator
QString configFilePath
bool confirmCloseFolder
bool confirmCloseMatrix
bool confirmCloseNotes
bool confirmClosePlot2D
bool confirmClosePlot3D
bool confirmCloseTable
Foldercurrent_folder
 pointer to the current folder in the project
QString customActionsDirPath
bool d_2_linear_fit_points
 Calculate only 2 points in a generated linear fit function curve.
QSize d_add_curves_dialog_size
 User defined size for the Add/Remove curves dialog.
QRect d_app_rect
QString d_ASCII_comment_string
QString d_ASCII_file_filter
 Last selected filter in import ASCII dialog.
bool d_ASCII_import_comments
QLocale d_ASCII_import_locale
 Locale used to specify the decimal separators in imported ASCII files.
int d_ASCII_import_mode
bool d_ASCII_import_preview
bool d_ASCII_import_read_only
bool d_backup_files
bool d_column_tool_bar
int d_decimal_digits
 default precision to be used for all other operations than fitting
bool d_display_tool_bar
bool d_edit_tool_bar
bool d_export_col_comment
bool d_export_col_names
QString d_export_col_separator
bool d_export_color
int d_export_quality
int d_export_resolution
bool d_export_table_selection
bool d_export_transparency
int d_export_vector_size
bool d_extended_export_dialog
bool d_extended_import_ASCII_dialog
bool d_extended_open_dialog
bool d_extended_plot_dialog
bool d_file_tool_bar
int d_file_version
 File version code used when opening project files (= maj * 100 + min * 10 + patch).
bool d_format_tool_bar
QString d_image_export_filter
 Last selected filter in export image dialog.
bool d_import_dec_separators
bool d_inform_rename_table
WindowType d_init_window_type
bool d_keep_plot_aspect
bool d_matrix_tool_bar
QStringList d_param_surface_func
bool d_plot3D_tool_bar
bool d_plot_tool_bar
int d_preview_lines
bool d_print_cropmarks
bool d_scale_plots_on_print
bool d_script_win_on_top
QRect d_script_win_rect
bool d_show_current_folder
 Specifies if only the Tables/Matrices in the current folder should be displayed in the Add/remove curve dialog.
bool d_show_table_comments
bool d_table_tool_bar
bool d_thousands_sep
QColor defaultArrowColor
int defaultArrowHeadAngle
bool defaultArrowHeadFill
int defaultArrowHeadLength
Qt::PenStyle defaultArrowLineStyle
int defaultArrowLineWidth
int defaultCurveLineWidth
int defaultCurveStyle
int defaultPlotMargin
QString defaultScriptingLang
 The scripting language to use for new projects.
int defaultSymbolSize
bool drawBackbones
int fit_output_precision
 precision used for the output of the fit operations
bool fit_scale_errors
 Scale the errors output in fit operations with reduced chi^2.
QString fitModelsPath
QString fitPluginsPath
int fitPoints
 Number of points in a generated fit curve.
FolderListViewfolders
QStringList functions
bool generatePeakCurves
bool generateUniformFitPoints
QString helpFilePath
int ignoredLines
QString imagesDirPath
QColor legendBackground
int legendFrameStyle
QColor legendTextColor
QStringList locales
QDockWidget * logWindow
FolderListViewlv
int majTicksLength
int majTicksStyle
int minTicksLength
int minTicksStyle
bool orthogonal3DPlots
QColor panelsColor
QColor panelsTextColor
bool pasteFitResultsToPlot
int peakCurvesColor
QFont plot3DAxesFont
QStringList plot3DColors
QFont plot3DNumbersFont
int plot3DResolution
QFont plot3DTitleFont
QFont plotAxesFont
QFont plotLegendFont
QFont plotNumbersFont
QFont plotTitleFont
QString projectname
int recentMenuID
QStringList recentProjects
bool renameColumns
QStringList renamedTables
 List of tables and matrices renamed in order to avoid conflicts when appending a project to a folder.
QStringList rFunctions
bool saved
int savingTimerId
QString scriptsDirPath
ShowWindowsPolicy show_windows_policy
 Describes which windows are shown when the folder becomes the current folder.
bool showPlot3DLegend
bool showPlot3DProjection
bool simplify_spaces
bool smooth3DMesh
bool strip_spaces
QStringList surfaceFunc
QColor tableBkgdColor
QColor tableHeaderColor
QFont tableHeaderFont
QColor tableTextColor
QFont tableTextFont
QStringList tableWindows
QString templatesDir
 Path to the folder where the last template file was opened/saved.
QStringList thetaFunctions
bool titleOn
QString workingDir
QColor workspaceColor
bool writeFitResultsToLog
 Write fit output information to Result Log.
QStringList xFunctions
QStringList yFunctions
variables used when user copy/paste markers
ArrowMarkerd_arrow_copy
ImageMarkerd_image_copy
LegendWidget * d_text_copy

Protected Attributes

ScriptingEnvscriptEnv

Private Slots

void analysisMenuAboutToShow ()
void fileMenuAboutToShow ()
void matrixMenuAboutToShow ()
void performCustomAction (QAction *)
void plotDataMenuAboutToShow ()
void plotMenuAboutToShow ()
void showCustomActionDialog ()
void tableMenuAboutToShow ()
void windowsMenuAboutToShow ()
void windowsMenuActivated (int id)
Initialization
void createActions ()
void customColumnActions ()
void customMenu (QWidget *w)
void customToolBars (QWidget *w)
void disableActions ()
void disableToolbars ()
void init (bool factorySettings=false)
void initGlobalConstants ()
void initMainMenu ()
void initPlot3DToolBar ()
void initToolBars ()
void insertTranslatedStrings ()
void translateActionsStrings ()
void windowActivated (QWidget *w)
Font Format Functions
void enableTextEditor (Graph *g)
void insertGreekSymbol ()
void insertSubscript ()
void insertSuperscript ()
void setBoldFont (bool)
void setFontFamily (const QFont &)
void setFontSize (int)
void setFormatBarFont (const QFont &)
void setItalicFont (bool)
void underline ()

Private Member Functions

int convertOldToNewColorIndex (int cindex)
 Workaround for the new colors introduced in rev 447.
virtual QMenu * createPopupMenu ()

Private Attributes

QAction * actionAbout
QAction * actionActivateWindow
QAction * actionAdd3DData
QAction * actionAddColToTable
QAction * actionAddErrorBars
QAction * actionAddFunctionCurve
QAction * actionAddImage
QAction * actionAddLayer
QAction * actionAddText
QAction * actionAnimate
QAction * actionAutoCorrelate
QAction * actionAutomaticLayout
QAction * actionBandBlockFilter
QAction * actionBandPassFilter
QAction * actionBoxPlot
QAction * actionCheckUpdates
QAction * actionChooseHelpFolder
QAction * actionClearLogInfo
QAction * actionClearSelection
QAction * actionClearTable
QAction * actionCloseAllWindows
QAction * actionCloseWindow
QAction * actionColorMap
QAction * actionContourMap
QAction * actionConvertMatrix
QAction * actionConvertTable
QAction * actionConvolute
QAction * actionCopySelection
QAction * actionCopyWindow
QAction * actionCorrelate
QAction * actionCurveFullRange
QAction * actionCustomActionDialog
QAction * actionCutSelection
QAction * actionDeconvolute
QAction * actionDeleteFitTables
QAction * actionDeleteLayer
QAction * actionDeleteRows
QAction * actionDifferentiate
QAction * actionDisregardCol
QAction * actionDonate
QAction * actionDownloadManual
QAction * actionDrawPoints
QAction * actionEditCurveRange
QAction * actionEditFunction
QAction * actionEditSurfacePlot
QAction * actionExportAllGraphs
QAction * actionExportGraph
QAction * actionExportMatrix
QAction * actionExportPDF
QAction * actionFFT
QAction * actionFitExpGrowth
QAction * actionFitFrame
QAction * actionFitGauss
QAction * actionFitLinear
QAction * actionFitLorentz
QAction * actionFitSigmoidal
QAction * actionFlipMatrixHorizontally
QAction * actionFlipMatrixVertically
QAction * actionFontBold
QAction * actionFontBox
QAction * actionFontItalic
QAction * actionFontSize
QAction * actionGoToRow
QAction * actionGrayMap
QAction * actionGreekSymbol
QAction * actionHelpBugReports
QAction * actionHelpForums
QAction * actionHideActiveWindow
QAction * actionHideCurve
QAction * actionHideOtherCurves
QAction * actionHideWindow
QAction * actionHighPassFilter
QAction * actionHomePage
QAction * actionImagePlot
QAction * actionImportImage
QAction * actionIntensityTable
QAction * actionInterpolate
QAction * actionInvertMatrix
QAction * actionLoad
QAction * actionLoadImage
QAction * actionLowPassFilter
QAction * actionMatrixColumnRow
QAction * actionMatrixCustomScale
QAction * actionMatrixDeterminant
QAction * actionMatrixFFTDirect
QAction * actionMatrixFFTInverse
QAction * actionMatrixGrayScale
QAction * actionMatrixRainbowScale
QAction * actionMatrixXY
QAction * actionMaximizeWindow
QAction * actionMinimizeWindow
QAction * actionMoveColFirst
QAction * actionMoveColLast
QAction * actionMoveColLeft
QAction * actionMoveColRight
QAction * actionMultiPeakGauss
QAction * actionMultiPeakLorentz
QAction * actionNewFolder
QAction * actionNewFunctionPlot
QAction * actionNewGraph
QAction * actionNewLegend
QAction * actionNewMatrix
QAction * actionNewNote
QAction * actionNewProject
QAction * actionNewSurfacePlot
QAction * actionNewTable
QAction * actionNextWindow
QAction * actionNormalizeSelection
QAction * actionNormalizeTable
QAction * actionNoteEvaluate
QAction * actionNoteExecute
QAction * actionNoteExecuteAll
QAction * actionOpen
QAction * actionOpenTemplate
QAction * actionPasteSelection
QAction * actionPerspective
QAction * actionPixelLineProfile
QAction * actionPlot2HorizontalLayers
QAction * actionPlot2VerticalLayers
QAction * actionPlot3DBars
QAction * actionPlot3DHiddenLine
QAction * actionPlot3DPolygons
QAction * actionPlot3DRibbon
QAction * actionPlot3DScatter
QAction * actionPlot3DTrajectory
QAction * actionPlot3DWireFrame
QAction * actionPlot3DWireSurface
QAction * actionPlot4Layers
QAction * actionPlotArea
QAction * actionPlotHistogram
QAction * actionPlotHorizontalBars
QAction * actionPlotHorSteps
QAction * actionPlotL
QAction * actionPlotLP
QAction * actionPlotP
QAction * actionPlotPie
QAction * actionPlotSpline
QAction * actionPlotStackedHistograms
QAction * actionPlotStackedLayers
QAction * actionPlotVectXYAM
QAction * actionPlotVectXYXY
QAction * actionPlotVerticalBars
QAction * actionPlotVerticalDropLines
QAction * actionPlotVertSteps
QAction * actionPrevWindow
QAction * actionPrint
QAction * actionPrintAllPlots
QAction * actionPrintWindow
QAction * actionReadOnlyCol
QAction * actionRedo
QAction * actionRemoveCurve
QAction * actionRename
QAction * actionResetRotation
QAction * actionResizeActiveWindow
QAction * actionResizeWindow
QAction * actionRestartScripting
QAction * actionRotateMatrix
QAction * actionRotateMatrixMinus
QAction * actionSaveNote
QAction * actionSaveProject
QAction * actionSaveProjectAs
QAction * actionSaveTemplate
QAction * actionScriptingLang
QAction * actionSetAscValues
QAction * actionSetLabelCol
QAction * actionSetMatrixDimensions
QAction * actionSetMatrixProperties
QAction * actionSetMatrixValues
QAction * actionSetRandomValues
QAction * actionSetXCol
QAction * actionSetXErrCol
QAction * actionSetYCol
QAction * actionSetYErrCol
QAction * actionSetZCol
QAction * actionShowAllCurves
QAction * actionShowAxisDialog
QAction * actionShowColsDialog
QAction * actionShowColStatistics
QAction * actionShowColumnOptionsDialog
QAction * actionShowColumnValuesDialog
QAction * actionShowConfigureDialog
QAction * actionShowCurvePlotDialog
QAction * actionShowCurvesDialog
QAction * actionShowCurveWorksheet
QAction * actionShowExpDecay3Dialog
QAction * actionShowExpDecayDialog
QAction * actionShowExplorer
QAction * actionShowExportASCIIDialog
QAction * actionShowFitDialog
QAction * actionShowFitPolynomDialog
QAction * actionShowGridDialog
QAction * actionShowHelp
QAction * actionShowImageDialog
QAction * actionShowIntDialog
QAction * actionShowLayerDialog
QAction * actionShowLineDialog
QAction * actionShowLog
QAction * actionShowMoreWindows
QAction * actionShowPlotDialog
QAction * actionShowPlotWizard
QAction * actionShowRowsDialog
QAction * actionShowRowStatistics
QAction * actionShowScaleDialog
QAction * actionShowScriptWindow
QAction * actionShowTextDialog
QAction * actionShowTitleDialog
QAction * actionShowTwoExpDecayDialog
QAction * actionSmoothAverage
QAction * actionSmoothFFT
QAction * actionSmoothSavGol
QAction * actionSortSelection
QAction * actionSortTable
QAction * actionSubscript
QAction * actionSuperscript
QAction * actionSwapColumns
QAction * actionTableRecalculate
QAction * actionTechnicalSupport
QAction * actionTimeStamp
QAction * actionToolBars
QAction * actionTranslateHor
QAction * actionTranslateVert
QAction * actionTranslations
QAction * actionTransposeMatrix
QAction * actionUnderline
QAction * actionUndo
QAction * actionUnzoom
QAction * actionViewMatrix
QAction * actionViewMatrixImage
QMenu * analysisMenu
QTranslator * appTranslator
QAssistantClient * assistant
QAction * back
QAction * barstyle
QAction * Box
QAction * btnArrow
QAction * btnCursor
QAction * btnLine
QAction * btnMovePoints
QAction * btnPicker
QAction * btnPointer
QAction * btnRemovePoints
QToolButton * btnResults
QAction * btnSelect
QAction * btnZoomIn
QAction * btnZoomOut
QAction * ceil
QToolBar * columnTools
QAction * conestyle
QActionGroup * coord
QAction * crossHairStyle
QLocale d_locale
TextEditor * d_text_editor
QList< QAction * > d_user_actions
QActionGroup * dataTools
QMenu * decayMenu
QToolBar * displayBar
QList< Q3ListViewItem * > draggedItems
 Stores the pointers to the dragged items from the FolderListViews objects.
QMenu * edit
QToolBar * editTools
QSplitter * explorerSplitter
QDockWidget * explorerWindow
QMenu * exportPlotMenu
QMenu * fileMenu
QToolBar * fileTools
QAction * filledmesh
QMenu * fillMenu
QMenu * filterMenu
QAction * floor
QAction * floordata
QAction * flooriso
QAction * floornone
QActionGroup * floorstyle
QMenu * foldersMenu
QMenu * format
QToolBar * formatToolBar
QAction * Frame
QAction * front
QMenu * graph
QActionGroup * grids
QMenu * help
QAction * hiddenline
QWidgetList * hiddenWindows
QHttp http
 Used when checking for new versions.
QLineEdit * info
GraphlastCopiedLayer
QWidget * lastModified
QAction * left
QMenu * matrixMenu
QMenu * multiPeakMenu
QMenu * newMenu
QAction * None
QMenu * normMenu
QWidgetList * outWindows
QMenu * plot2DMenu
QMenu * plot3DMenu
QToolBar * plot3DTools
QMenu * plotDataMenu
QToolBar * plotMatrixBar
QActionGroup * plotstyle
QToolBar * plotTools
QAction * pointstyle
QAction * polygon
QTranslator * qtTranslator
QMenu * recent
QTextEdit * results
QAction * right
QMenu * scriptingMenu
ScriptWindowscriptWindow
QMenu * smoothMenu
QMenu * tableMenu
QMenu * tablesDepend
QToolBar * tableTools
QBuffer version_buffer
 Used when checking for new versions.
QMenu * view
QMenu * windowsMenu
QAction * wireframe
QWorkspace * ws

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index