scidavis  2.3.0
About: SciDAVis is a free application for Scientific Data Analysis and Visualization (a fork off of QtiPlot).
  Fossies Dox: scidavis-2.3.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

MyWidget Class Reference

Base class of all MDI client windows. More...

#include <MyWidget.h>

Inheritance diagram for MyWidget:
[legend]
Collaboration diagram for MyWidget:
[legend]

Public Types

enum  CaptionPolicy { Name = 0, Label = 1, Both = 2 }
 Possible window captions. More...
 
enum  Status { Hidden = -1, Normal = 0, Minimized = 1, Maximized = 2 }
 

Signals

void closedWindow (MyWidget *)
 Emitted when the window was closed. More...
 
void hiddenWindow (MyWidget *)
 Emitted when the window was hidden. More...
 
void modifiedWindow (MyWidget *)
 
void resizedWindow (MyWidget *)
 
void statusChanged (MyWidget *)
 Emitted when the window status changed. More...
 
void showTitleBarMenu ()
 Emitted when the title bar recieves a QContextMenuEvent. More...
 

Public Member Functions

 MyWidget (const QString &label=QString(), QWidget *parent=0, const QString name=0, Qt::WindowFlags f=0)
 Constructor. More...
 
virtual QString windowLabel ()
 Return the window label. More...
 
virtual void setWindowLabel (const QString &s)
 Set the window label. More...
 
virtual QString name ()
 Return the window name. More...
 
virtual void setName (const QString &s)
 Set the window name. More...
 
virtual CaptionPolicy captionPolicy ()
 Return the caption policy. More...
 
virtual void setCaptionPolicy (CaptionPolicy policy)
 Set the caption policy. More...
 
virtual QString birthDate ()
 Return the creation date. More...
 
virtual void setBirthDate (const QString &s)
 Set the creation date. More...
 
QString aspect ()
 Return the window status as a string. More...
 
Status status ()
 Return the window status flag (hidden, normal, minimized or maximized) More...
 
void setStatus (Status s)
 Set the window status flag (hidden, normal, minimized or maximized) More...
 
virtual QString saveAsTemplate (const QString &)
 
virtual void restore (const QStringList &)
 Not implemented yet. More...
 
virtual void print ()
 
virtual void exportPDF (const QString &)
 
virtual QString saveToString (const QString &)
 
virtual void setHidden ()
 Notifies that a window was hidden by a direct user action. More...
 
void closeEvent (QCloseEvent *)
 Close event handler. More...
 
void askOnCloseEvent (bool ask)
 Toggle the "ask on close" flag. More...
 
void contextMenuEvent (QContextMenuEvent *e)
 Customizes title bar's context menu) More...
 
Folderfolder ()
 Returns the pointer to the parent folder of the window. More...
 
void setFolder (Folder *f)
 Initializes the pointer to the parent folder of the window. More...
 
void notifyChanges ()
 Notifies the main application that the window has been modified. More...
 
void setNormal ()
 
void setMinimized ()
 
void setMaximized ()
 

Protected Slots

void updateCaption ()
 Set caption according to current CaptionPolicy, name and label. More...
 

Protected Member Functions

virtual void changeEvent (QEvent *event)
 

Protected Attributes

FolderparentFolder
 Pointer to the parent folder of the window. More...
 
QString w_label
 The window label. More...
 
QString birthdate
 The creation date. More...
 
Status w_status
 The window status. More...
 
CaptionPolicy caption_policy
 The caption policy. More...
 
bool askOnClose
 Toggle on/off: Ask the user "delete, hide, or cancel?" on a close event. More...
 

Detailed Description

Base class of all MDI client windows.

These are the main objects of every SciDAVis project. All content (apart from the directory structure) is managed by subclasses of MyWidget.

Future Plans

Rename to Aspect.

See also
Folder, ApplicationWindow

Definition at line 51 of file MyWidget.h.

Member Enumeration Documentation

◆ CaptionPolicy

Possible window captions.

Enumerator
Name 

caption determined by the window name

Label 

caption detemined by the window label

Both 

caption = "name - label"

Definition at line 68 of file MyWidget.h.

68  {
69  Name = 0,
70  Label = 1,
71  Both = 2
72  };

◆ Status

Enumerator
Hidden 
Normal 
Minimized 
Maximized 

Definition at line 73 of file MyWidget.h.

73 {Hidden = -1, Normal = 0, Minimized = 1, Maximized = 2};

Constructor & Destructor Documentation

◆ MyWidget()

MyWidget::MyWidget ( const QString &  label = QString(),
QWidget *  parent = 0,
const QString  name = 0,
Qt::WindowFlags  f = 0 
)

Constructor.

Parameters
labelwindow label
parentparent widget
namewindow name
fwindow flags
See also
setCaptionPolicy(), captionPolicy()

File : MyWidget.cpp Project : SciDAVis

Description : MDI window widget

Copyright : (C) 2006-2009 Knut Franke (knut.franke*gmx.de) Copyright : (C) 2006-2009 Tilman Benkert (thzs*gmx.net) Copyright : (C) 2006-2007 by Ion Vasilief (ion_vasilief*yahoo.fr) (replace * with @ in the email address)

  • This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. *
    • This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. *
    • You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA *

Definition at line 42 of file MyWidget.cpp.

42  :
43  QMdiSubWindow (parent, f)
44 {
45  w_label = label;
47  askOnClose = true;
48  w_status = Normal;
49  setObjectName(QString(name));
50 }

References askOnClose, Both, caption_policy, name(), Normal, w_label, and w_status.

Here is the call graph for this function:

Member Function Documentation

◆ askOnCloseEvent()

void MyWidget::askOnCloseEvent ( bool  ask)
inline

Toggle the "ask on close" flag.

Definition at line 123 of file MyWidget.h.

123 {askOnClose = ask;};

References askOnClose.

Referenced by ApplicationWindow::connectMultilayerPlot(), ApplicationWindow::connectSurfacePlot(), ApplicationWindow::connectTable(), ApplicationWindow::deleteFitTables(), ApplicationWindow::initMatrix(), and ApplicationWindow::initNote().

Here is the caller graph for this function:

◆ aspect()

QString MyWidget::aspect ( )

Return the window status as a string.

Definition at line 106 of file MyWidget.cpp.

107 {
108  QString s = tr("Normal");
109  switch (w_status)
110  {
111  case Hidden:
112  return tr("Hidden");
113  break;
114 
115  case Normal:
116  break;
117 
118  case Minimized:
119  return tr("Minimized");
120  break;
121 
122  case Maximized:
123  return tr("Maximized");
124  break;
125  }
126  return s;
127 }

References Hidden, Maximized, Minimized, Normal, and w_status.

Referenced by ApplicationWindow::addListViewItem(), TableView::handleAspectAdded(), Table::handleAspectDescriptionAboutToChange(), Matrix::handleAspectDescriptionChange(), Table::handleAspectDescriptionChange(), TableView::handleAspectDescriptionChanged(), MultiLayer::print(), and ApplicationWindow::updateWindowStatus().

Here is the caller graph for this function:

◆ birthDate()

virtual QString MyWidget::birthDate ( )
inlinevirtual

Return the creation date.

Reimplemented in Matrix.

Definition at line 91 of file MyWidget.h.

91 {return birthdate;};

References birthdate.

Referenced by ApplicationWindow::addListViewItem(), Graph3D::saveToString(), MultiLayer::saveToString(), TableStatistics::saveToString(), Note::saveToString(), and ApplicationWindow::windowProperties().

Here is the caller graph for this function:

◆ captionPolicy()

virtual CaptionPolicy MyWidget::captionPolicy ( )
inlinevirtual

Return the caption policy.

Definition at line 86 of file MyWidget.h.

86 {return caption_policy;};

References caption_policy.

Referenced by RenameWindowDialog::accept(), ApplicationWindow::clone(), ApplicationWindow::convertMatrixToTable(), ApplicationWindow::convertTableToMatrix(), ApplicationWindow::renameWindow(), Graph3D::saveToString(), MultiLayer::saveToString(), TableStatistics::saveToString(), Matrix::saveToString(), Note::saveToString(), and RenameWindowDialog::setWidget().

Here is the caller graph for this function:

◆ changeEvent()

void MyWidget::changeEvent ( QEvent *  event)
protectedvirtual

Reimplemented in TableView, and MatrixView.

Definition at line 129 of file MyWidget.cpp.

130 {
131  if (!isHidden() && event->type() == QEvent::WindowStateChange) {
132  if (((QWindowStateChangeEvent *)event)->oldState() == windowState())
133  return;
134  if( windowState() & Qt::WindowMinimized )
136  else if ( windowState() & Qt::WindowMaximized )
138  else
139  w_status = Normal;
140  emit statusChanged (this);
141  }
142  QMdiSubWindow::changeEvent(event);
143 }

References Maximized, Minimized, Normal, statusChanged(), and w_status.

Referenced by MatrixView::changeEvent(), and TableView::changeEvent().

Here is the caller graph for this function:

◆ closedWindow

void MyWidget::closedWindow ( MyWidget )
signal

Emitted when the window was closed.

Referenced by closeEvent().

Here is the caller graph for this function:

◆ closeEvent()

void MyWidget::closeEvent ( QCloseEvent *  e)

Close event handler.

Ask the user "delete, hide, or cancel?" if the "ask on close" flag is set.

Definition at line 76 of file MyWidget.cpp.

77 {
78 if (askOnClose)
79  {
80  switch( QMessageBox::information(this,tr("SciDAVis"),
81  tr("Do you want to hide or delete") + "<p><b>'" + objectName() + "'</b> ?",
82  tr("Delete"), tr("Hide"), tr("Cancel"), 0,2))
83  {
84  case 0:
85  emit closedWindow(this);
86  e->accept();
87  break;
88 
89  case 1:
90  e->ignore();
91  emit hiddenWindow(this);
92  break;
93 
94  case 2:
95  e->ignore();
96  break;
97  }
98  }
99 else
100  {
101  emit closedWindow(this);
102  e->accept();
103  }
104 }

References askOnClose, closedWindow(), and hiddenWindow().

◆ contextMenuEvent()

void MyWidget::contextMenuEvent ( QContextMenuEvent *  e)

Customizes title bar's context menu)

Definition at line 145 of file MyWidget.cpp.

146 {
147  if (!this->widget()->geometry().contains(e->pos())) {
148  emit showTitleBarMenu();
149  e->accept();
150  }
151 }

References showTitleBarMenu().

◆ exportPDF()

virtual void MyWidget::exportPDF ( const QString &  )
inlinevirtual

Reimplemented in MultiLayer, Note, and Graph3D.

Definition at line 108 of file MyWidget.h.

108 {};

◆ folder()

Folder* MyWidget::folder ( )
inline

Returns the pointer to the parent folder of the window.

Definition at line 128 of file MyWidget.h.

128 {return parentFolder;};

References parentFolder.

Referenced by ApplicationWindow::closeWindow(), MuParserScript::resolveColumnPath(), ApplicationWindow::restoreWindowGeometry(), MuParserScript::tableColumn__Function(), and ApplicationWindow::windowGeometryInfo().

Here is the caller graph for this function:

◆ hiddenWindow

void MyWidget::hiddenWindow ( MyWidget )
signal

Emitted when the window was hidden.

Referenced by Matrix::closeEvent(), closeEvent(), and Table::closeEvent().

Here is the caller graph for this function:

◆ modifiedWindow

void MyWidget::modifiedWindow ( MyWidget )
signal

Referenced by Matrix::handleChange(), Table::handleChange(), Matrix::invert(), Note::modifiedNote(), notifyChanges(), Matrix::recalculate(), and Matrix::setNumericFormat().

Here is the caller graph for this function:

◆ name()

virtual QString MyWidget::name ( )
inlinevirtual

Return the window name.

Reimplemented in Table, and Matrix.

Definition at line 81 of file MyWidget.h.

81 {return objectName();};

Referenced by RenameWindowDialog::accept(), ApplicationWindow::addListViewItem(), ApplicationWindow::alreadyUsedName(), ApplicationWindow::appendProject(), ApplicationWindow::clone(), ApplicationWindow::closeWindow(), ApplicationWindow::depending3DPlots(), ApplicationWindow::dependingPlots(), MultiLayer::exportSVG(), MultiLayer::exportVector(), Folder::findWindow(), ApplicationWindow::generateUniqueName(), Note::init(), ApplicationWindow::loadImage(), ApplicationWindow::loadProject(), MultiLayer::MultiLayer(), MyWidget(), ApplicationWindow::openNote(), ApplicationWindow::openSurfacePlot(), Graph3D::print(), ApplicationWindow::removeWindowFromLists(), ApplicationWindow::renameWindow(), ApplicationWindow::restoreWindowGeometry(), ApplicationWindow::saveAsTemplate(), Graph3D::saveToString(), MultiLayer::saveToString(), Note::saveToString(), PlotDialog::setMultiLayer(), ApplicationWindow::setShowWindowsPolicy(), RenameWindowDialog::setWidget(), ApplicationWindow::showWindowMenuImpl(), updateCaption(), Graph3D::updateData(), Graph3D::updateScales(), ApplicationWindow::updateWindowStatus(), ApplicationWindow::window(), Folder::window(), ApplicationWindow::windowProperties(), ApplicationWindow::windowsMenuAboutToShow(), and ApplicationWindow::windowsMenuActivated().

Here is the caller graph for this function:

◆ notifyChanges()

void MyWidget::notifyChanges ( )
inline

Notifies the main application that the window has been modified.

Definition at line 134 of file MyWidget.h.

134 {emit modifiedWindow(this);};

References modifiedWindow().

Referenced by ApplicationWindow::importASCII(), PlotDialog::pickBorderColor(), and PlotDialog::updateBorder().

Here is the caller graph for this function:

◆ print()

virtual void MyWidget::print ( )
inlinevirtual

Reimplemented in Note, MultiLayer, and Graph3D.

Definition at line 107 of file MyWidget.h.

107 {};

◆ resizedWindow

void MyWidget::resizedWindow ( MyWidget )
signal

Referenced by Graph3D::resizeEvent(), and MultiLayer::resizeLayers().

Here is the caller graph for this function:

◆ restore()

virtual void MyWidget::restore ( const QStringList &  )
inlinevirtual

Not implemented yet.

Definition at line 105 of file MyWidget.h.

105 {};

Referenced by ApplicationWindow::openTemplate().

Here is the caller graph for this function:

◆ saveAsTemplate()

virtual QString MyWidget::saveAsTemplate ( const QString &  )
inlinevirtual

Reimplemented in Matrix, MultiLayer, and Graph3D.

Definition at line 102 of file MyWidget.h.

102 {return QString();};

Referenced by ApplicationWindow::saveAsTemplate().

Here is the caller graph for this function:

◆ saveToString()

virtual QString MyWidget::saveToString ( const QString &  )
inlinevirtual

Reimplemented in Matrix, TableStatistics, MultiLayer, and Graph3D.

Definition at line 110 of file MyWidget.h.

110 {return QString();};

Referenced by ApplicationWindow::rawSaveFolder().

Here is the caller graph for this function:

◆ setBirthDate()

virtual void MyWidget::setBirthDate ( const QString &  s)
inlinevirtual

Set the creation date.

Reimplemented in Table, and Matrix.

Definition at line 93 of file MyWidget.h.

93 {birthdate = s;};

References birthdate.

Referenced by ApplicationWindow::appendProject(), Note::init(), Graph3D::initPlot(), ApplicationWindow::loadProject(), MultiLayer::MultiLayer(), ApplicationWindow::openNote(), and ApplicationWindow::openSurfacePlot().

Here is the caller graph for this function:

◆ setCaptionPolicy()

virtual void MyWidget::setCaptionPolicy ( CaptionPolicy  policy)
inlinevirtual

Set the caption policy.

Reimplemented in Table, and Matrix.

Definition at line 88 of file MyWidget.h.

88 { caption_policy = policy; updateCaption(); }

References caption_policy, and updateCaption().

Referenced by RenameWindowDialog::accept(), ApplicationWindow::appendProject(), ApplicationWindow::clone(), ApplicationWindow::loadImage(), ApplicationWindow::loadProject(), ApplicationWindow::openNote(), ApplicationWindow::openSurfacePlot(), and ApplicationWindow::renameWindow().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFolder()

void MyWidget::setFolder ( Folder f)
inline

Initializes the pointer to the parent folder of the window.

Definition at line 131 of file MyWidget.h.

131 {parentFolder = f;};

References parentFolder.

Referenced by Folder::addWindow(), ApplicationWindow::initBareMultilayerPlot(), ApplicationWindow::initMatrix(), ApplicationWindow::initNote(), ApplicationWindow::initPlot3D(), ApplicationWindow::initTable(), and Folder::removeWindow().

Here is the caller graph for this function:

◆ setHidden()

void MyWidget::setHidden ( )
virtual

Notifies that a window was hidden by a direct user action.

Definition at line 162 of file MyWidget.cpp.

163 {
164  w_status = Hidden;
165  emit statusChanged (this);
166  hide();
167 }

References Hidden, statusChanged(), and w_status.

Referenced by ApplicationWindow::hideWindow(), and ApplicationWindow::openTemplate().

Here is the caller graph for this function:

◆ setMaximized()

void MyWidget::setMaximized ( )

Definition at line 183 of file MyWidget.cpp.

184 {
185  showMaximized();
187  emit statusChanged (this);
188 }

References Maximized, statusChanged(), and w_status.

Referenced by ApplicationWindow::folderItemDoubleClicked(), ApplicationWindow::maximizeWindow(), and ApplicationWindow::openTemplate().

Here is the caller graph for this function:

◆ setMinimized()

void MyWidget::setMinimized ( )

Definition at line 176 of file MyWidget.cpp.

177 {
178  showMinimized();
180  emit statusChanged (this);
181 }

References Minimized, statusChanged(), and w_status.

Referenced by ApplicationWindow::minimizeWindow(), and ApplicationWindow::openTemplate().

Here is the caller graph for this function:

◆ setName()

virtual void MyWidget::setName ( const QString &  s)
inlinevirtual

Set the window name.

Reimplemented in Table, and Matrix.

Definition at line 83 of file MyWidget.h.

83 {setObjectName(s); updateCaption();};

References updateCaption().

Referenced by ApplicationWindow::dataPlot3D(), ApplicationWindow::dataPlotXYZ(), ApplicationWindow::initBareMultilayerPlot(), ApplicationWindow::initNote(), ApplicationWindow::newPlot3D(), ApplicationWindow::openMatrixPlot3D(), ApplicationWindow::plot3DMatrix(), and ApplicationWindow::renameWindow().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setNormal()

void MyWidget::setNormal ( )

Definition at line 169 of file MyWidget.cpp.

170 {
171  showNormal();
172  w_status = Normal;
173  emit statusChanged (this);
174 }

References Normal, statusChanged(), and w_status.

Referenced by ApplicationWindow::activateSubWindow(), ApplicationWindow::folderItemDoubleClicked(), and ApplicationWindow::openTemplate().

Here is the caller graph for this function:

◆ setStatus()

void MyWidget::setStatus ( Status  s)

Set the window status flag (hidden, normal, minimized or maximized)

Definition at line 153 of file MyWidget.cpp.

154 {
155  if (w_status == s)
156  return;
157 
158  w_status = s;
159  emit statusChanged (this);
160 }

References statusChanged(), and w_status.

Referenced by ApplicationWindow::changeFolder(), ApplicationWindow::restoreWindowGeometry(), and ApplicationWindow::updateWindowStatus().

Here is the caller graph for this function:

◆ setWindowLabel()

virtual void MyWidget::setWindowLabel ( const QString &  s)
inlinevirtual

Set the window label.

Reimplemented in Table, and Matrix.

Definition at line 78 of file MyWidget.h.

78 { w_label = s; updateCaption();};

References updateCaption(), and w_label.

Referenced by RenameWindowDialog::accept(), ApplicationWindow::appendProject(), ApplicationWindow::clone(), ImportOPJ::importGraphs(), ImportOPJ::importNotes(), ApplicationWindow::loadImage(), ApplicationWindow::loadProject(), ApplicationWindow::openNote(), and ApplicationWindow::openSurfacePlot().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showTitleBarMenu

void MyWidget::showTitleBarMenu ( )
signal

Emitted when the title bar recieves a QContextMenuEvent.

Referenced by Graph3D::contextMenuEvent(), contextMenuEvent(), and MultiLayer::mousePressEvent().

Here is the caller graph for this function:

◆ status()

Status MyWidget::status ( )
inline

Return the window status flag (hidden, normal, minimized or maximized)

Definition at line 98 of file MyWidget.h.

98 {return w_status;};

References w_status.

Referenced by ApplicationWindow::changeFolder(), ApplicationWindow::clone(), ApplicationWindow::openTemplate(), ApplicationWindow::showAllFolderWindows(), ApplicationWindow::updateWindowStatus(), and ApplicationWindow::windowGeometryInfo().

Here is the caller graph for this function:

◆ statusChanged

void MyWidget::statusChanged ( MyWidget )
signal

Emitted when the window status changed.

Referenced by changeEvent(), setHidden(), setMaximized(), setMinimized(), setNormal(), and setStatus().

Here is the caller graph for this function:

◆ updateCaption

void MyWidget::updateCaption ( )
protectedslot

Set caption according to current CaptionPolicy, name and label.

Definition at line 52 of file MyWidget.cpp.

53 {
54  switch (caption_policy)
55  {
56  case Name:
57  setWindowTitle(name());
58  break;
59 
60  case Label:
61  if (!windowLabel().isEmpty())
62  setWindowTitle(windowLabel());
63  else
64  setWindowTitle(name());
65  break;
66 
67  case Both:
68  if (!windowLabel().isEmpty())
69  setWindowTitle(name() + " - " + windowLabel());
70  else
71  setWindowTitle(name());
72  break;
73  }
74 };

References Both, caption_policy, Label, Name, name(), and windowLabel().

Referenced by Matrix::handleAspectDescriptionChange(), Table::handleAspectDescriptionChange(), Matrix::setCaptionPolicy(), setCaptionPolicy(), Table::setCaptionPolicy(), setName(), Matrix::setWindowLabel(), setWindowLabel(), and Table::setWindowLabel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ windowLabel()

virtual QString MyWidget::windowLabel ( )
inlinevirtual

Return the window label.

Reimplemented in Table, and Matrix.

Definition at line 76 of file MyWidget.h.

76 {return QString(w_label);};

References w_label.

Referenced by RenameWindowDialog::accept(), ApplicationWindow::addListViewItem(), ApplicationWindow::clone(), Folder::findWindow(), Graph3D::saveToString(), MultiLayer::saveToString(), Note::saveToString(), RenameWindowDialog::setWidget(), and updateCaption().

Here is the caller graph for this function:

Member Data Documentation

◆ askOnClose

bool MyWidget::askOnClose
protected

Toggle on/off: Ask the user "delete, hide, or cancel?" on a close event.

Definition at line 175 of file MyWidget.h.

Referenced by askOnCloseEvent(), Matrix::closeEvent(), closeEvent(), Table::closeEvent(), and MyWidget().

◆ birthdate

QString MyWidget::birthdate
protected

The creation date.

Definition at line 166 of file MyWidget.h.

Referenced by birthDate(), Table::init(), Matrix::init(), Matrix::setBirthDate(), setBirthDate(), and Table::setBirthDate().

◆ caption_policy

CaptionPolicy MyWidget::caption_policy
protected

◆ parentFolder

Folder* MyWidget::parentFolder
protected

Pointer to the parent folder of the window.

Definition at line 159 of file MyWidget.h.

Referenced by folder(), and setFolder().

◆ w_label

QString MyWidget::w_label
protected

The window label.

See also
setWindowLabel(), windowLabel(), setCaptionPolicy()

Definition at line 164 of file MyWidget.h.

Referenced by MyWidget(), setWindowLabel(), and windowLabel().

◆ w_status

Status MyWidget::w_status
protected

The window status.

Definition at line 168 of file MyWidget.h.

Referenced by aspect(), changeEvent(), MyWidget(), setHidden(), setMaximized(), setMinimized(), setNormal(), setStatus(), and status().


The documentation for this class was generated from the following files:
MyWidget::Label
@ Label
caption detemined by the window label
Definition: MyWidget.h:70
MyWidget::caption_policy
CaptionPolicy caption_policy
The caption policy.
Definition: MyWidget.h:173
MyWidget::Maximized
@ Maximized
Definition: MyWidget.h:73
MyWidget::parentFolder
Folder * parentFolder
Pointer to the parent folder of the window.
Definition: MyWidget.h:159
MyWidget::statusChanged
void statusChanged(MyWidget *)
Emitted when the window status changed.
MyWidget::Normal
@ Normal
Definition: MyWidget.h:73
MyWidget::Minimized
@ Minimized
Definition: MyWidget.h:73
MyWidget::showTitleBarMenu
void showTitleBarMenu()
Emitted when the title bar recieves a QContextMenuEvent.
MyWidget::windowLabel
virtual QString windowLabel()
Return the window label.
Definition: MyWidget.h:76
MyWidget::birthdate
QString birthdate
The creation date.
Definition: MyWidget.h:166
MyWidget::name
virtual QString name()
Return the window name.
Definition: MyWidget.h:81
MyWidget::modifiedWindow
void modifiedWindow(MyWidget *)
MyWidget::w_status
Status w_status
The window status.
Definition: MyWidget.h:168
MyWidget::Name
@ Name
caption determined by the window name
Definition: MyWidget.h:69
MyWidget::Hidden
@ Hidden
Definition: MyWidget.h:73
MyWidget::closedWindow
void closedWindow(MyWidget *)
Emitted when the window was closed.
MyWidget::Both
@ Both
caption = "name - label"
Definition: MyWidget.h:71
MyWidget::hiddenWindow
void hiddenWindow(MyWidget *)
Emitted when the window was hidden.
MyWidget::askOnClose
bool askOnClose
Toggle on/off: Ask the user "delete, hide, or cancel?" on a close event.
Definition: MyWidget.h:175
MyWidget::updateCaption
void updateCaption()
Set caption according to current CaptionPolicy, name and label.
Definition: MyWidget.cpp:52
MyWidget::w_label
QString w_label
The window label.
Definition: MyWidget.h:164