Documentation++

This commit is contained in:
Teo Mrnjavac 2017-03-03 12:32:35 +01:00
parent 17962179bd
commit 6545443b24
3 changed files with 31 additions and 8 deletions

View file

@ -141,12 +141,6 @@ ChoicePage::~ChoicePage()
{}
/**
* @brief ChoicePage::init runs when the PartitionViewStep and the PartitionCoreModule are
* ready. Sets up the rest of the UI based on os-prober output.
* @param core the PartitionCoreModule pointer.
* @param osproberEntries the output of os-prober, cleaned up and structured.
*/
void
ChoicePage::init( PartitionCoreModule* core )
{

View file

@ -42,6 +42,12 @@ class DeviceInfoWidget;
class Device;
/**
* @brief The ChoicePage class is the first page of the partitioning interface.
* It offers a choice between partitioning operations and initiates all automated
* partitioning modes. For manual partitioning, see PartitionPage.
*/
class ChoicePage : public QWidget, private Ui::ChoicePage
{
Q_OBJECT
@ -58,13 +64,36 @@ public:
explicit ChoicePage( QWidget* parent = nullptr );
virtual ~ChoicePage();
/**
* @brief init runs when the PartitionViewStep and the PartitionCoreModule are
* ready. Sets up the rest of the UI based on os-prober output.
* @param core the PartitionCoreModule pointer.
*/
void init( PartitionCoreModule* core );
/**
* @brief isNextEnabled answers whether the current state of the page is such
* that progressing to the next page should be allowed.
* @return true if next is allowed, otherwise false.
*/
bool isNextEnabled() const;
/**
* @brief currentChoice returns the enum Choice value corresponding to the
* currently selected partitioning mode (with a PrettyRadioButton).
* @return the enum Choice value.
*/
Choice currentChoice() const;
/**
* @brief onLeave runs when control passes from this page to another one.
*/
void onLeave();
/**
* @brief applyActionChoice reacts to a choice of partitioning mode.
* @param choice the partitioning action choice.
*/
void applyActionChoice( ChoicePage::Choice choice );
signals:

View file

@ -33,8 +33,8 @@ class PartitionCoreModule;
class QStackedWidget;
/**
* The starting point of the module. Instantiates PartitionCoreModule and
* PartitionPage, then connect them.
* The starting point of the module. Instantiates PartitionCoreModule,
* ChoicePage and PartitionPage, then connects them.
*/
class PLUGINDLLEXPORT PartitionViewStep : public Calamares::ViewStep
{