BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The dialog to inform user about encountered problems during the loading of old project. More...
Public Member Functions | |
ProjectLoadWarningDialog (QWidget *parent, const MessageService *messageService=0, const QString &documentVersion="") | |
Private Member Functions | |
QLayout * | buttonLayout () |
QWidget * | createDetailsPanel () |
Info panel with table widget containing error messages. More... | |
QWidget * | createExplanationPanel () |
Info panel with explanations what had happened and what to do. More... | |
QWidget * | createModelInfoPanel () |
Info panel with summary over warnings in different models. More... | |
QTableWidgetItem * | createTableItem (const QString &name) |
QTableWidget * | createTableWidget () |
Creates QTableWidget and fills it with error messages. More... | |
QWidget * | createTopPanel () |
Top panel with warning icon and the header. More... | |
QString | explanationText () const |
Returns explanations what went wrong. More... | |
int | numberOfTableRows () const |
Returns number of rows in table with error messages, each row represents an error message. More... | |
QStringList | tableHeaderLabels () const |
Returns labels for table header. More... | |
Private Attributes | |
const MessageService * | m_messageService |
QString | m_projectDocumentVersion |
The dialog to inform user about encountered problems during the loading of old project.
Definition at line 30 of file ProjectLoadWarningDialog.h.
ProjectLoadWarningDialog::ProjectLoadWarningDialog | ( | QWidget * | parent, |
const MessageService * | messageService = 0 , |
||
const QString & | documentVersion = "" |
||
) |
Definition at line 32 of file ProjectLoadWarningDialog.cpp.
References buttonLayout(), createDetailsPanel(), createExplanationPanel(), createModelInfoPanel(), and createTopPanel().
|
private |
Definition at line 206 of file ProjectLoadWarningDialog.cpp.
Referenced by ProjectLoadWarningDialog().
|
private |
Info panel with table widget containing error messages.
Definition at line 155 of file ProjectLoadWarningDialog.cpp.
References createTableWidget(), and DesignerHelper::getSectionFontSize().
Referenced by ProjectLoadWarningDialog().
|
private |
Info panel with explanations what had happened and what to do.
Definition at line 115 of file ProjectLoadWarningDialog.cpp.
References explanationText(), and DesignerHelper::getSectionFontSize().
Referenced by ProjectLoadWarningDialog().
|
private |
Info panel with summary over warnings in different models.
Definition at line 87 of file ProjectLoadWarningDialog.cpp.
References m_messageService, and MessageService::senderList().
Referenced by ProjectLoadWarningDialog().
|
private |
Definition at line 235 of file ProjectLoadWarningDialog.cpp.
References RealSpace::Particles::name().
Referenced by createTableWidget().
|
private |
Creates QTableWidget and fills it with error messages.
Definition at line 178 of file ProjectLoadWarningDialog.cpp.
References createTableItem(), m_messageService, MessageService::messages(), numberOfTableRows(), and tableHeaderLabels().
Referenced by createDetailsPanel().
|
private |
Top panel with warning icon and the header.
Definition at line 54 of file ProjectLoadWarningDialog.cpp.
References DesignerHelper::getSectionFontSize().
Referenced by ProjectLoadWarningDialog().
|
private |
Returns explanations what went wrong.
Definition at line 248 of file ProjectLoadWarningDialog.cpp.
References GUIHelpers::getBornAgainVersionString(), and m_projectDocumentVersion.
Referenced by createExplanationPanel().
|
private |
Returns number of rows in table with error messages, each row represents an error message.
Definition at line 222 of file ProjectLoadWarningDialog.cpp.
References m_messageService, and MessageService::messages().
Referenced by createTableWidget().
|
private |
Returns labels for table header.
Definition at line 228 of file ProjectLoadWarningDialog.cpp.
Referenced by createTableWidget().
|
private |
Definition at line 51 of file ProjectLoadWarningDialog.h.
Referenced by createModelInfoPanel(), createTableWidget(), and numberOfTableRows().
|
private |
Definition at line 52 of file ProjectLoadWarningDialog.h.
Referenced by explanationText().