ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
CodeDomainMdiWindow Class Referencefinal

MDI window for displaying and managing code domains. More...

#include <CodeDomainMdiWindow.hpp>

Inheritance diagram for CodeDomainMdiWindow:
Inheritance graph
Collaboration diagram for CodeDomainMdiWindow:
Collaboration graph

Public Slots

void addNew ()
 
void editSelected ()
 
void deleteSelected ()
 
void viewHistorySelected ()
 
- Public Slots inherited from EntityListMdiWindow
void markAsStale ()
 Mark the list as stale (data changed on server).
 
void clearStaleIndicator ()
 Clear the stale indicator.
 
void reload ()
 Reload data from the server.
 

Signals

void statusChanged (const QString &message)
 
void errorOccurred (const QString &error_message)
 
void showDomainDetails (const dq::domain::code_domain &domain)
 
void addNewRequested ()
 
void domainDeleted (const QString &code)
 
void showDomainHistory (const dq::domain::code_domain &domain)
 

Public Member Functions

 CodeDomainMdiWindow (ClientManager *clientManager, const QString &username, QWidget *parent=nullptr)
 
- Public Member Functions inherited from EntityListMdiWindow
 EntityListMdiWindow (QWidget *parent=nullptr)
 
QSize sizeHint () const override
 

Protected Member Functions

void doReload () override
 Subclass implementation of the reload operation.
 
QString normalRefreshTooltip () const override
 Get the normal (non-stale) tooltip text for the refresh action.
 
- Protected Member Functions inherited from EntityListMdiWindow
virtual void saveSettings ()
 Save window settings (column visibility, window size, etc.).
 
void closeEvent (QCloseEvent *event) override
 
void initializeTableSettings (QTableView *tableView, QAbstractItemModel *sourceModel, std::string_view settingsGroup, const QVector< int > &defaultHiddenColumns={}, const QSize &defaultSize={900, 400}, int settingsVersion=1, QSplitter *splitter=nullptr)
 Configure table header, column visibility, and settings persistence.
 
void initializeStaleIndicator (QAction *refreshAction, const QString &iconPath)
 Initialize the stale indicator support.
 
QProgressBar * loadingBar ()
 Return the shared loading progress bar.
 
void beginLoading ()
 Show the loading bar and disable the reload action.
 
void endLoading ()
 Hide the loading bar and re-enable the reload action.
 
void connectModel (AbstractClientModel *model)
 Wire endLoading() to the model's standard lifecycle signals.
 
virtual QString staleRefreshTooltip () const
 Get the stale tooltip text for the refresh action.
 

Additional Inherited Members

- Protected Attributes inherited from EntityListMdiWindow
QSize savedWindowSize_
 Saved window size from QSettings.
 

Detailed Description

MDI window for displaying and managing code domains.

Provides a table view of code domains with toolbar actions for reload, add, edit, delete, and viewing history.

Member Function Documentation

◆ doReload()

void doReload ( )
overrideprotectedvirtual

Subclass implementation of the reload operation.

Called by reload() after the loading state has been set up. Do NOT call clearStaleIndicator() or beginLoading() here — the base class handles both before invoking doReload().

Implements EntityListMdiWindow.

◆ normalRefreshTooltip()

QString normalRefreshTooltip ( ) const
overrideprotectedvirtual

Get the normal (non-stale) tooltip text for the refresh action.

Override this to customize the tooltip text.

Reimplemented from EntityListMdiWindow.