29 #ifndef MdiSubWindow_H 30 #define MdiSubWindow_H 32 #include <QMdiSubWindow> 84 QString
name(){
return objectName();};
108 virtual void save(
const QString&,
const QString &,
bool =
false){};
153 static QString
parseAsciiFile(
const QString& fname,
const QString &commentString,
int endLine,
154 int ignoreFirstLines,
int maxRows,
int& rows);
180 static QString
parseMacAsciiFile(
const QString& fname,
const QString &commentString,
181 int ignoreFirstLines,
int maxRows,
int& rows);
void restoreWindow()
Show window making sure that layers in MultiLayer windows are not resized.
Definition: MdiSubWindow.cpp:214
void setMinimized()
Definition: MdiSubWindow.cpp:249
void closeEvent(QCloseEvent *)
Close event handler.
Definition: MdiSubWindow.cpp:99
void resizedWindow(MdiSubWindow *)
Folder * d_folder
Pointer to the parent folder of the window.
Definition: MdiSubWindow.h:187
Definition: MdiSubWindow.h:73
virtual void changeEvent(QEvent *event)
Catches status changes.
Definition: MdiSubWindow.cpp:153
void setBirthDate(const QString &s)
Set the creation date.
Definition: MdiSubWindow.h:96
Folder * folder()
Returns the pointer to the parent folder of the window.
Definition: MdiSubWindow.h:132
Status d_status
The window status.
Definition: MdiSubWindow.h:194
void updateCaption()
Set caption according to current CaptionPolicy, name and label.
Definition: MdiSubWindow.cpp:67
virtual void setHidden()
Notifies that a window was hidden by a direct user action.
Definition: MdiSubWindow.cpp:207
virtual QString sizeToString()
Size of the widget as a string.
Definition: MdiSubWindow.cpp:148
QString d_label
The window label.
Definition: MdiSubWindow.h:192
bool d_confirm_close
Toggle on/off: Ask the user "delete, hide, or cancel?" on a close event.
Definition: MdiSubWindow.h:201
void askOnCloseEvent(bool ask)
Toggle the "ask on close" flag.
Definition: MdiSubWindow.h:128
void setFolder(Folder *f)
Initializes the pointer to the parent folder of the window.
Definition: MdiSubWindow.h:135
void notifyChanges()
Notifies the main application that the window has been modified.
Definition: MdiSubWindow.h:160
QString d_birthdate
The creation date.
Definition: MdiSubWindow.h:203
QString aspect()
Return the window status as a string.
Definition: MdiSubWindow.cpp:125
ApplicationWindow * applicationWindow()
Returns a pointer to the parent application.
Definition: MdiSubWindow.h:76
QSize minRestoreSize()
Returns the size the window had before a change state event to minimized.
Definition: MdiSubWindow.h:145
static QString parseAsciiFile(const QString &fname, const QString &commentString, int endLine, int ignoreFirstLines, int maxRows, int &rows)
Static function used as a workaround for ASCII files having end line char != ' '. ...
Definition: MdiSubWindow.cpp:267
void setWindowLabel(const QString &s)
Set the window label.
Definition: MdiSubWindow.h:81
caption determined by the window name
Definition: MdiSubWindow.h:69
Definition: MdiSubWindow.h:73
void resizeEvent(QResizeEvent *)
Definition: MdiSubWindow.cpp:93
Folder for the project explorer.
Definition: Folder.h:53
QString birthDate()
Return the creation date.
Definition: MdiSubWindow.h:94
Definition: MdiSubWindow.h:73
void setCaptionPolicy(CaptionPolicy policy)
Set the caption policy.
Definition: MdiSubWindow.h:91
caption = "name - label"
Definition: MdiSubWindow.h:71
void hiddenWindow(MdiSubWindow *)
Emitted when the window was hidden.
virtual void save(const QString &, const QString &, bool=false)
Definition: MdiSubWindow.h:108
QtiPlot's main window.
Definition: ApplicationWindow.h:133
CaptionPolicy d_caption_policy
The caption policy.
Definition: MdiSubWindow.h:199
virtual void restore(const QStringList &)
Not implemented yet.
Definition: MdiSubWindow.h:107
ApplicationWindow * d_app
Pointer to the application window.
Definition: MdiSubWindow.h:185
QString windowLabel()
Return the window label.
Definition: MdiSubWindow.h:79
Definition: MdiSubWindow.h:73
void statusChanged(MdiSubWindow *)
Emitted when the window status changed.
QSize d_min_restore_size
Stores the size the window had before a change state event to minimized.
Definition: MdiSubWindow.h:205
caption detemined by the window label
Definition: MdiSubWindow.h:70
MdiSubWindow(const QString &label=QString(), ApplicationWindow *app=0, const QString &name=QString(), Qt::WFlags f=0)
Constructor.
Definition: MdiSubWindow.cpp:49
Status
Definition: MdiSubWindow.h:73
bool eventFilter(QObject *object, QEvent *e)
Filters other object's events (customizes title bar's context menu)
Definition: MdiSubWindow.cpp:173
void showContextMenu()
Show the context menu.
virtual void exportPDF(const QString &)
Definition: MdiSubWindow.h:109
void setMaximized()
Definition: MdiSubWindow.cpp:256
void setName(const QString &s)
Set the window name.
Definition: MdiSubWindow.h:86
CaptionPolicy
Possible window captions.
Definition: MdiSubWindow.h:68
Base class of all MDI client windows.
Definition: MdiSubWindow.h:51
CaptionPolicy captionPolicy()
Return the caption policy.
Definition: MdiSubWindow.h:89
void setStatus(Status s)
Set the window status flag (hidden, normal, minimized or maximized)
Definition: MdiSubWindow.cpp:198
virtual void print(QPrinter *)
Definition: MdiSubWindow.h:158
Status status()
Return the window status flag (hidden, normal, minimized or maximized)
Definition: MdiSubWindow.h:101
static QString parseMacAsciiFile(const QString &fname, const QString &commentString, int ignoreFirstLines, int maxRows, int &rows)
Used to parse ASCII files with carriage return ('') endline.
Definition: MdiSubWindow.cpp:324
void closedWindow(MdiSubWindow *)
Emitted when the window was closed.
void modifiedWindow(MdiSubWindow *)
QString name()
Return the window name.
Definition: MdiSubWindow.h:84
void setNormal()
Definition: MdiSubWindow.cpp:242
virtual void print()
Definition: MdiSubWindow.h:157