CoreTrace Qt IDE 1.0
The CoreTrace Text editor
 
Loading...
Searching...
No Matches
IDE Class Reference

The main controller for the CoreTrace IDE. More...

#include <ide.hpp>

Public Member Functions

void start ()
 Starts the CoreTrace IDE.
 
void stop ()
 Stops the CoreTrace IDE.
 
ProjectManagergetProjectManager () const
 
MainWindowgetMainWindow () const
 
AuditServicegetAuditService () const
 

Static Public Member Functions

static IDEgetInstance ()
 Retrieves the singleton instance of the IDE.
 

Private Member Functions

 IDE ()
 Constructs the IDE object.
 
 ~IDE ()
 Destroys the IDE object.
 
 IDE (const IDE &)=delete
 
IDEoperator= (const IDE &)=delete
 

Private Attributes

MainWindowmainWindow
 
AuditServiceauditService
 
ProjectManagerprojectManager
 

Static Private Attributes

static IDEinstance = nullptr
 

Detailed Description

The main controller for the CoreTrace IDE.

The IDE class manages the main window, project manager, and audit service. It serves as the central point for initializing and shutting down the IDE.

Constructor & Destructor Documentation

◆ IDE() [1/2]

IDE::IDE ( )
private

Constructs the IDE object.

Initializes the main window, project manager, and audit service. Sets up the toolbar buttons and prepares the IDE for use.

◆ ~IDE()

IDE::~IDE ( )
private

Destroys the IDE object.

Cleans up resources and components. The actual cleanup is handled by the stop() method.

◆ IDE() [2/2]

IDE::IDE ( const IDE )
privatedelete

Member Function Documentation

◆ getAuditService()

AuditService * IDE::getAuditService ( ) const
inline

◆ getInstance()

IDE * IDE::getInstance ( )
static

Retrieves the singleton instance of the IDE.

Ensures that only one instance of the IDE exists throughout the application.

Returns
A pointer to the IDE instance.

◆ getMainWindow()

MainWindow * IDE::getMainWindow ( ) const
inline

◆ getProjectManager()

ProjectManager * IDE::getProjectManager ( ) const
inline

◆ operator=()

IDE & IDE::operator= ( const IDE )
privatedelete

◆ start()

void IDE::start ( )

Starts the CoreTrace IDE.

Displays the main window and initializes any saved project state or settings.

◆ stop()

void IDE::stop ( )

Stops the CoreTrace IDE.

Closes all open projects, cleans up resources, and resets the singleton instance.

Member Data Documentation

◆ auditService

AuditService* IDE::auditService
private

◆ instance

IDE * IDE::instance = nullptr
staticprivate

◆ mainWindow

MainWindow* IDE::mainWindow
private

◆ projectManager

ProjectManager* IDE::projectManager
private

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