BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Widget with the name of current project and collection of recent projects. More...
Signals | |
void | projectSelected (const QString &project_dir) |
Public Member Functions | |
RecentProjectWidget (QWidget *parent=nullptr) | |
QSize | minimumSizeHint () const override |
void | setCurrentProject (const QString &project_dir, bool is_modified) |
Set current project title and label on appropriate widget. More... | |
void | setRecentProjectsList (const QStringList &projects) |
Set name of all recent projects to appropriate widgets. More... | |
QSize | sizeHint () const override |
Private Member Functions | |
QBoxLayout * | createCurrentProjectLayout () const |
QBoxLayout * | createRecentProjectLayout () |
QWidget * | createRecentProjectScrollArea () |
Private Attributes | |
ProjectPaneWidget * | m_currentProjectPane |
std::vector< ProjectPaneWidget * > | m_recentProjectPanes |
Widget with the name of current project and collection of recent projects.
Occupies left part of WelcomeView.
Definition at line 32 of file recentprojectwidget.h.
|
explicit |
Definition at line 31 of file recentprojectwidget.cpp.
References createRecentProjectScrollArea().
|
private |
Definition at line 72 of file recentprojectwidget.cpp.
References m_currentProjectPane, and ModelView::Utils::ScaleLabelFont().
Referenced by createRecentProjectScrollArea().
|
private |
Definition at line 82 of file recentprojectwidget.cpp.
References m_recentProjectPanes, gui2::ProjectPaneWidget::projectSelected(), projectSelected(), and ModelView::Utils::ScaleLabelFont().
Referenced by createRecentProjectScrollArea().
|
private |
Definition at line 99 of file recentprojectwidget.cpp.
References createCurrentProjectLayout(), createRecentProjectLayout(), ModelView::AdjustingScrollArea::setWidget(), and ModelView::Utils::SizeOfLetterM().
Referenced by RecentProjectWidget().
|
override |
Definition at line 46 of file recentprojectwidget.cpp.
References gui2::StyleUtils::DockMinimumSizeHint().
|
signal |
Referenced by createRecentProjectLayout(), and gui2::WelcomeView::setup_connections().
void gui2::RecentProjectWidget::setCurrentProject | ( | const QString & | project_dir, |
bool | is_modified | ||
) |
Set current project title and label on appropriate widget.
Definition at line 52 of file recentprojectwidget.cpp.
References m_currentProjectPane, gui2::ProjectPaneWidget::setActive(), and gui2::ProjectPaneWidget::setCurrentProject().
Referenced by gui2::WelcomeView::setup_connections().
void gui2::RecentProjectWidget::setRecentProjectsList | ( | const QStringList & | projects | ) |
Set name of all recent projects to appropriate widgets.
Definition at line 59 of file recentprojectwidget.cpp.
References m_recentProjectPanes.
Referenced by gui2::WelcomeView::setup_connections().
|
override |
Definition at line 41 of file recentprojectwidget.cpp.
References gui2::StyleUtils::DockSizeHint().
|
private |
Definition at line 53 of file recentprojectwidget.h.
Referenced by createCurrentProjectLayout(), and setCurrentProject().
|
private |
Definition at line 54 of file recentprojectwidget.h.
Referenced by createRecentProjectLayout(), and setRecentProjectsList().