|
QVISH 0.1
|
The toplevel QT window. More...
#include <qVMainWindow.hpp>
Classes | |
| struct | QWarnInfo |
Public Types | |
| typedef map< string, QPointer< QToolBar > > | toolBar_t |
Public Types inherited from Wizt::qVInputContext | |
| enum | DataProcessingAction { Unknown , StartProcessing , PreProcessing , StartSecondPass , StartThirdPass , Update , PostProcessing , FinishProcessing , AppDefined = 1024 , FileNotFoundError = -10 , InconsistencyError = -11 } |
| Values for notifyDataProcessing() call. More... | |
Public Member Functions | |
| void | addViewerManagement (const RefPtr< Viewer > &) |
| void | hideObjectSimpler () const |
| bool | isExiting () const |
| void | showObjectSimpler () const |
| void | updateViewerManagement (const RefPtr< Viewer > &theViewer, const QString &AdditionalTooltipInfo) const |
Public Member Functions inherited from Wizt::qVInputContext | |
| const WeakPtr< qVAqua > & | getAqua () const |
| int | getMinimumQuality () const |
| Minimal quality that a VCreator must provide to be visible. | |
| virtual void | notifyChange (const VInputBase &theInput, const string &ChangeContextInfo={}) |
| To perform statistics, for instance, on which parameters are changed via the GUI. | |
Public Member Functions inherited from Wizt::qVTimerWindowContainer | |
| void | hideTimeWindow () |
| bool | setTimeWindow (qVTimerWindow *TimeWindow) |
| void | showTimeWindow () |
Public Attributes | |
| double | ElapsedRenderTime |
| QPointer< QMenu > | File |
| QPointer< QMenu > | Help |
| map< string, double > | LastRenderTime |
| QPointer< QSplitter > | MainSplitter |
| QPointer< QStackedWidget > | MainStack |
| std::unordered_map< std::string, QPointer< QMenu > > | myCustomMenus |
| QPointer< GPUMemoryManager > | myGPUMemoryManager |
| QPointer< HelpWindow > | myHelpWindow |
| RefPtr< VParameter > | myMetaViewerParam |
| QPointer< qVObjectSimpler > | myObjectSimpler |
| QPointer< QMenu > | Options |
| QPointer< QSplitter > | PoolSplitter |
| bool | ProgressIsCancelled = false |
| QPointer< QProgressBar > | RAM |
| QPointer< QAction > | ReloadingAction |
| QPointer< QPushButton > | RenderActivity |
| QTimer | RenderTimer |
| QPointer< QProgressBar > | StatusProgress |
| QPointer< qVThemeButton > | Stop |
| bool | StopCurrentProgress = false |
| qVHeartBeat | theBeat |
| toolBar_t | toolBar |
Public Attributes inherited from Wizt::qVInputContext | |
| std::function< bool()> | allowApplicationClose |
| QString | qVParameterSettingsFilename |
| Filename for local parameters. | |
Public Attributes inherited from Wizt::qVTimerWindowContainer | |
| QPointer< QSplitter > | TimeViewerSplitter |
| QPointer< qVTimerWindow > | TimeWindow |
| The Qt Window providing time-dependent parameterization of values. | |
Static Public Attributes | |
| static QPointer< qVMainWindow > | theqVMainWindow = 0 |
| static const char *const *const *const * | TitleString = "The Vish Visualization Shell " |
| static const char *const *const *const | VishApiVersion = VISH_APISTRING |
| static const char *const *const | VishCompilerVersion = VISH_COMPILER_VERSION |
| static const char *const | VishConfigVersion = VISH_CONFIG_VERSION |
Value Pool Management | |
| using | CreationOptions = MainWindowCreationOptions |
| QSettings | settings |
| A Qt settings object. | |
| VMainWindow & | ControlObject |
| std::deque< string > | BusyQue |
| QPointer< QAction > | HelpAction |
| QAction * | recentFileActs [MaxRecentFiles] |
| QMenu * | recentFilesMenu |
| std::list< RefPtr< qVToolBase > > | qVTools |
| QPointer< QTextBrowser > | About |
| QPointer< QTextBrowser > | License |
| QPointer< QTextBrowser > | ExternalSoftware |
| QPointer< QAction > | LicenseAction |
| The action from the Help Menu opening the license window. | |
| QPointer< QFrame > | VerbosityCatcher |
| QString | LastWarningText |
| std::list< QString > | NeverWarningText |
| std::list< QWarnInfo > | WarningQueue |
| std::set< QString > | IgnoredWarnings |
| list< string > | InitialLoadFileNames |
| int | RegisteredReadySignals = 0 |
| static const constexpr unsigned | MaxRecentFiles = 16 |
| A menu containg a list of recent opened files xxx. | |
| class | VMainWindow |
| RefPtr< ValuePoolProvider > | getActiveValuePoolProvider () const override |
| Procedural Interface to the request the current value pool. | |
| void | setCurrentObject (const WeakPtr< VObject > &vobj) override |
| Allows to set a specific object as the "current" one which will receive all attention from the GUI. | |
| WeakPtr< VObject > | getCurrentObject () const override |
| const QPointer< qVObjectPool > & | pool () const |
| Return widget of object controls. | |
| qVTimerWindow * | timer () |
| Return widget of time-dependent controls. | |
| qViewerFrame * | MyViewerFrame () const |
| qVMainWindow (const VOutput< double > &oFPS, VMainWindow &Controller, const CreationOptions &CO, const ImporterSettings &IS, const QString &ParameterFileName, const qVObjectPool::PlanktonControl &PC=qVObjectPool::PlanktonControl(), QWidget *parent=Q_NULLPTR, Qt::WindowFlags flags=Qt::WindowFlags()) | |
| void | show () |
| Displays the main window, setting the layout of all widgets according to the stored DOM State. | |
| void | message (const char *fmt,...) |
| void | busymessage (const char *fmt,...) |
| void | progress (const string &msg, int Current, int Max) |
| void | removeModule (const char *what) |
| void | load_file (const string &filename) |
| Load a file. | |
| RefPtr< VObject > | createObject (const string &CreatorName, const string &ObjectName) |
| Create and display an object given its creator and naming. | |
| bool | activateHelp (const QStringList &HelpFile, const QStringList &InitPages) |
| void | enableHelpShortcut (bool EnableIt) |
| bool | initializeHelp (const QStringList &HelpFiles, const QStringList &InitPages) |
| QPointer< QToolBar > | getToolBar (const string &category, Qt::ToolBarArea area=Qt::TopToolBarArea) |
| void | addToolAction (const string &category, const QPixmap &PM, const RefPtr< ToolAction > &Action, const string &tooltip) override |
| Add an action object to the toolbar "category". | |
| int | exec (QApplication &) |
| bool | event (QEvent *e) override |
| void | showEvent (QShowEvent *event) override |
| void | emitSingleStep () |
| void | emitWarning (const QString &WarningContext, const QString &WarningText, const QString &WarningDetails) |
| void | notifyImportanceChange (const WeakPtr< VSlot > &) const override |
| void | notifyDataProcessing (int Action, const string &DataProcessor, const VNutrition::FileList_t &DataItems, const string &ActivityMessage=string()) const override |
| void | addInitialLoadFile (const string &filename) |
| bool | showHelpForId (const QString &id, bool ActuallyShowItIfHidden=true) |
| Open Help window with ID focussed. | |
| void | showHelp (const QString &url) |
| static void | setIconPaths (const QDir &VishRoot) |
| void | openRecentFile () |
| void | showToolbar (bool showit=true) |
| void | openFileDialog () |
| void | openManyFilesDialog () |
| void | openMultipleFileDialog () |
| void | openWritableFileDialog () |
| void | openNutriousFileDialog () |
| void | saveStateDialog () |
| void | appquit () |
| void | UpdateProgressStatus (const QString &msg, int Current, int Max) |
| void | receiveSensorInfo (const QString &) |
| void | ReadyCallback (const QString &ViewerName, const QString &GL_Vendor, const QString &GL_Renderer, int M, int m) |
| void | NonViewerReadyCallback () |
| void | ViewerStartRender (const QString &ContextName) |
| void | ViewerEndRender (const QString &ContextName, double secs, double GPUSecs) |
| void | ViewerRenderUpdate () |
| void | ViewerRenderCancel () |
| void | announceCurrentValuePoolChange () |
| Announce the change of the currently active value pool. | |
| void | displayFileLoadErrorMessage (QString LoadFileName, QString ErrorDescription, QString FileType) |
| void | FileLoadSuccess (QString LoadFileName) |
| void | conditionalQuit () |
| void | displayDataProcessing (int Action, const QString &DataProcessor, const QStringList &DataItems, const QString &ActivityMessage) |
| void | SetProgressStatus (const QString &msg, int Current, int Max) |
| void | FileLoaded (const QString &Filename) |
| void | singleStep () |
| void | sendWarning (const QString &WarningContext, const QString &WarningText, const QString &WarningDetails) |
| void | SlotImportanceChanged () const |
| void | renderCancel () |
| Signal emitted when user wants to cancel a currently still ongoing rendering operation. | |
| void | ActiveValuePoolChanged () |
| A signal emitted when the current value pool is changed. | |
| void | OpenGLReady (const QString &ViewerName, const QString &GL_Vendor, const QString &GL_Renderer, int MajorVersion, int minorVersion) |
| Signal that is emitted once OpenGL is ready in a viewer. | |
| void | MainClosed () |
| For runtime plugins that open external windows, connecting to this signal allows to shut down external windows when the main window is closed. | |
| void | doNotifyDataProcessing (int Action, const QString &DataProcessor, const QStringList &DataItems, const QString &ActivityMessage) const |
Additional Inherited Members | |
Protected Member Functions inherited from Wizt::qVInputContext | |
| qVInputContext (const QString &qVParameterSettingsFilename) | |
Protected Attributes inherited from Wizt::qVInputContext | |
| int | MinimumQuality |
| Minimal quality that a VCreator must provide to be visible. | |
The toplevel QT window.
| qVMainWindow::qVMainWindow | ( | const VOutput< double > & | oFPS, |
| VMainWindow & | Controller, | ||
| const CreationOptions & | CO, | ||
| const ImporterSettings & | IS, | ||
| const QString & | ParameterFileName, | ||
| const qVObjectPool::PlanktonControl & | PC = qVObjectPool::PlanktonControl(), |
||
| QWidget * | parent = Q_NULLPTR, |
||
| Qt::WindowFlags | flags = Qt::WindowFlags() |
||
| ) |
TODO TODO TODO
References LicenseAction, MaxRecentFiles, Wizt::qVInputContext::MinimumQuality, pool(), settings, show(), Wizt::ImporterSettings::showImporterMenu(), and Wizt::ImporterSettings::valid().
|
overridevirtual |
Add an action object to the toolbar "category".
| category | The name of the toolbar, as it appears in the main window. |
| PM | A Qt Pixmap, used as action icon. |
| Action | An ToolAction object that is executed when the tool button is clicked. |
| tooltip | An information text which appears when the mouse is moved over the icon. |
Implements Wizt::qVToolActorBase.
References Wizt::QToolAction::myAction.
Referenced by show().
|
slot |
Announce the change of the currently active value pool.
It will emit the ActiveValuePoolChanged() signal.
References ActiveValuePoolChanged().
|
overridevirtual |
Implements Wizt::qVInputContext.
|
overridevirtual |
| Action | any of DataProcessingAction |
Implements Wizt::qVInputContext.
|
overridevirtual |
Implements Wizt::qVInputContext.
|
overridevirtual |
Allows to set a specific object as the "current" one which will receive all attention from the GUI.
Implements Wizt::qVInputContext.
| void qVMainWindow::show | ( | ) |
Displays the main window, setting the layout of all widgets according to the stored DOM State.
run the refresher with 30fps
References Wizt::qVHeartBeat::activate(), and addToolAction().
Referenced by qVMainWindow().
| QSettings Wizt::qVMainWindow::settings |
A Qt settings object.
It saves the application state in a platform-specific manner for restauration at startup.
Referenced by qVMainWindow().