Advanced Multi-Physics (AMP)
On-Line Documentation
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | Private Slots | Private Member Functions | Private Attributes | List of all members
MainWindow Class Reference

#include <mainwindow.h>

Inheritance diagram for MainWindow:
Inheritance graph
[legend]

Public Slots

void exit ()
 

Public Member Functions

 MainWindow ()
 
 MainWindow (const MainWindow &)=delete
 
MainWindowoperator= (const MainWindow &)=delete
 
bool runUnitTests (const std::string &file)
 
virtual ~MainWindow ()
 

Protected Member Functions

void callFun (std::function< void(void)> &&fun)
 Call a function.
 
void closeEvent (QCloseEvent *event)
 
void update ()
 Process queue events.
 

Protected Attributes

AMP::Array< AMP::ARGB32d_data
 
std::string d_lastPath
 

Private Slots

void about ()
 
void callFunMain ()
 
void close ()
 
void open ()
 
void reset ()
 
void resizeDone ()
 
void resizeEvent (QResizeEvent *e)
 
void runUnitTestsSlot ()
 
void savePerformance ()
 

Private Member Functions

void callLoadFile ()
 
void createActions ()
 
void createMenus ()
 
void createStatusBar ()
 
void createToolBars ()
 
void loadFile (const std::string &filename, bool showFailure=true)
 
void mouseMoveEvent (QMouseEvent *event)
 
void mousePressEvent (QMouseEvent *event)
 
void mouseReleaseEvent (QMouseEvent *event)
 
void readSettings ()
 
void resetUnitTestRunning ()
 
void setCurrentFile (const QString &fileName)
 
QString strippedName (const QString &fullFileName)
 
void updateDisplay ()
 
void writeSettings ()
 

Private Attributes

QAction * aboutAct
 
QAction * closeAct
 
QAction * d_callAction
 
std::function< void(void)> d_fun
 
std::thread::id d_id
 
std::mutex d_mutex
 
volatile bool d_running
 
QMenu * editMenu
 
QToolBar * editToolBar
 
QAction * exitAct
 
QMenu * fileMenu
 
QToolBar * fileToolBar
 
std::shared_ptr< DrawBoxClass > gbox
 
QMenu * helpMenu
 
QLabel * imageWindow
 
QMenuBar * mainMenu
 
QAction * openAct
 
std::unique_ptr< QMenu > processorButtonMenu
 
QAction * resetAct
 
QTimer resizeTimer
 
QAction * runUnitTestAction
 
QAction * savePerformanceTimers
 
std::string unitTestFilename
 

Detailed Description

Definition at line 30 of file mainwindow.h.

Constructor & Destructor Documentation

◆ MainWindow() [1/2]

MainWindow::MainWindow ( )

◆ MainWindow() [2/2]

MainWindow::MainWindow ( const MainWindow )
delete

◆ ~MainWindow()

virtual MainWindow::~MainWindow ( )
virtual

Member Function Documentation

◆ about

void MainWindow::about ( )
privateslot

◆ callFun()

void ThreadedSlotsClass::callFun ( std::function< void(void)> &&  fun)
protectedinherited

Call a function.

◆ callFunMain

void ThreadedSlotsClass::callFunMain ( )
privateslotinherited

◆ callLoadFile()

void MainWindow::callLoadFile ( )
private

◆ close

void MainWindow::close ( )
privateslot

◆ closeEvent()

void MainWindow::closeEvent ( QCloseEvent *  event)
protected

◆ createActions()

void MainWindow::createActions ( )
private

◆ createMenus()

void MainWindow::createMenus ( )
private

◆ createStatusBar()

void MainWindow::createStatusBar ( )
private

◆ createToolBars()

void MainWindow::createToolBars ( )
private

◆ exit

void MainWindow::exit ( )
slot

◆ loadFile()

void MainWindow::loadFile ( const std::string &  filename,
bool  showFailure = true 
)
private

◆ mouseMoveEvent()

void MainWindow::mouseMoveEvent ( QMouseEvent *  event)
private

◆ mousePressEvent()

void MainWindow::mousePressEvent ( QMouseEvent *  event)
private

◆ mouseReleaseEvent()

void MainWindow::mouseReleaseEvent ( QMouseEvent *  event)
private

◆ open

void MainWindow::open ( )
privateslot

◆ operator=()

MainWindow & MainWindow::operator= ( const MainWindow )
delete

◆ readSettings()

void MainWindow::readSettings ( )
private

◆ reset

void MainWindow::reset ( )
privateslot

◆ resetUnitTestRunning()

void MainWindow::resetUnitTestRunning ( )
private

◆ resizeDone

void MainWindow::resizeDone ( )
privateslot

◆ resizeEvent

void MainWindow::resizeEvent ( QResizeEvent *  e)
privateslot

◆ runUnitTests()

bool MainWindow::runUnitTests ( const std::string &  file)

◆ runUnitTestsSlot

void MainWindow::runUnitTestsSlot ( )
privateslot

◆ savePerformance

void MainWindow::savePerformance ( )
privateslot

◆ setCurrentFile()

void MainWindow::setCurrentFile ( const QString &  fileName)
private

◆ strippedName()

QString MainWindow::strippedName ( const QString &  fullFileName)
private

◆ update()

void ThreadedSlotsClass::update ( )
protectedinherited

Process queue events.

◆ updateDisplay()

void MainWindow::updateDisplay ( )
private

◆ writeSettings()

void MainWindow::writeSettings ( )
private

Member Data Documentation

◆ aboutAct

QAction* MainWindow::aboutAct
private

Definition at line 84 of file mainwindow.h.

◆ closeAct

QAction* MainWindow::closeAct
private

Definition at line 80 of file mainwindow.h.

◆ d_callAction

QAction* ThreadedSlotsClass::d_callAction
privateinherited

Definition at line 29 of file ThreadedSlotsClass.h.

◆ d_data

AMP::Array<AMP::ARGB32> MainWindow::d_data
protected

Definition at line 97 of file mainwindow.h.

◆ d_fun

std::function<void( void )> ThreadedSlotsClass::d_fun
privateinherited

Definition at line 28 of file ThreadedSlotsClass.h.

◆ d_id

std::thread::id ThreadedSlotsClass::d_id
privateinherited

Definition at line 32 of file ThreadedSlotsClass.h.

◆ d_lastPath

std::string MainWindow::d_lastPath
protected

Definition at line 96 of file mainwindow.h.

◆ d_mutex

std::mutex ThreadedSlotsClass::d_mutex
privateinherited

Definition at line 31 of file ThreadedSlotsClass.h.

◆ d_running

volatile bool ThreadedSlotsClass::d_running
privateinherited

Definition at line 30 of file ThreadedSlotsClass.h.

◆ editMenu

QMenu* MainWindow::editMenu
private

Definition at line 76 of file mainwindow.h.

◆ editToolBar

QToolBar* MainWindow::editToolBar
private

Definition at line 79 of file mainwindow.h.

◆ exitAct

QAction* MainWindow::exitAct
private

Definition at line 83 of file mainwindow.h.

◆ fileMenu

QMenu* MainWindow::fileMenu
private

Definition at line 75 of file mainwindow.h.

◆ fileToolBar

QToolBar* MainWindow::fileToolBar
private

Definition at line 78 of file mainwindow.h.

◆ gbox

std::shared_ptr<DrawBoxClass> MainWindow::gbox
private

Definition at line 93 of file mainwindow.h.

◆ helpMenu

QMenu* MainWindow::helpMenu
private

Definition at line 77 of file mainwindow.h.

◆ imageWindow

QLabel* MainWindow::imageWindow
private

Definition at line 91 of file mainwindow.h.

◆ mainMenu

QMenuBar* MainWindow::mainMenu
private

Definition at line 73 of file mainwindow.h.

◆ openAct

QAction* MainWindow::openAct
private

Definition at line 81 of file mainwindow.h.

◆ processorButtonMenu

std::unique_ptr<QMenu> MainWindow::processorButtonMenu
private

Definition at line 89 of file mainwindow.h.

◆ resetAct

QAction* MainWindow::resetAct
private

Definition at line 82 of file mainwindow.h.

◆ resizeTimer

QTimer MainWindow::resizeTimer
private

Definition at line 88 of file mainwindow.h.

◆ runUnitTestAction

QAction* MainWindow::runUnitTestAction
private

Definition at line 86 of file mainwindow.h.

◆ savePerformanceTimers

QAction* MainWindow::savePerformanceTimers
private

Definition at line 85 of file mainwindow.h.

◆ unitTestFilename

std::string MainWindow::unitTestFilename
private

Definition at line 103 of file mainwindow.h.


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



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page