TDE 0.1.0
 
Loading...
Searching...
No Matches
tde::widgets::Desktop Class Reference

Desktop widget, which is the root of UI. More...

#include <desktop.hpp>

Inheritance diagram for tde::widgets::Desktop:

Public Slots

void on_app_start (const app::Info &app)
 Called before the app is launched.
 
void on_app_finish (int code, QProcess::ExitStatus status)
 Called after the app is finished.
 

Signals

void apps_changed (const QList< app::Info > &apps)
 Emitted when apps changed.
 
void dock_apps_changed (const QList< app::Info > &apps)
 Emitted when dock apps changed.
 
void request_launch_app (const app::Info &app)
 Emitted when the app is requested to be launched.
 

Public Member Functions

 Desktop (const DesktopSettings &settings, QWidget *parent=nullptr)
 Construct a new Desktop object.
 

Static Public Attributes

static constexpr int DOCK_MARGIN = 5
 

Detailed Description

Desktop widget, which is the root of UI.

Constructor & Destructor Documentation

◆ Desktop()

tde::widgets::Desktop::Desktop ( const DesktopSettings settings,
QWidget *  parent = nullptr 
)

Construct a new Desktop object.

Parameters
settingsDesktop settings.
parentParent widget.

Member Function Documentation

◆ apps_changed

void tde::widgets::Desktop::apps_changed ( const QList< app::Info > &  apps)
signal

Emitted when apps changed.

Parameters
appsList of apps.

◆ dock_apps_changed

void tde::widgets::Desktop::dock_apps_changed ( const QList< app::Info > &  apps)
signal

Emitted when dock apps changed.

Parameters
appsList of dock apps.

◆ on_app_finish

void tde::widgets::Desktop::on_app_finish ( int  code,
QProcess::ExitStatus  status 
)
slot

Called after the app is finished.

Parameters
codeExit code.
statusExit status.

◆ on_app_start

void tde::widgets::Desktop::on_app_start ( const app::Info app)
slot

Called before the app is launched.

Parameters
appApplication info.

◆ request_launch_app

void tde::widgets::Desktop::request_launch_app ( const app::Info app)
signal

Emitted when the app is requested to be launched.

Parameters
appApplication info.

Member Data Documentation

◆ DOCK_MARGIN

constexpr int tde::widgets::Desktop::DOCK_MARGIN = 5
staticconstexpr

Margin for dock widget.


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