CCIMXDesktop
 
Loading...
Searching...
No Matches
pagesetuper.h
1#ifndef PAGESETUPER_H
2#define PAGESETUPER_H
3
4/* page setuper helps setup the page quickly */
5#include <QList>
6class QStackedWidget;
7class QWidget;
10class AppWidget;
11class DownDockWidget;
12
13namespace PageSetuper {
14
18static constexpr int MAX_WIDTH = 4;
22static constexpr int MAX_HEIGHT = 4;
29 QString pixmap_addr {};
30 QString app_name {};
31 ApplicationWrapper* app { nullptr };
32};
33
34static constexpr const unsigned int APP_ICON_SZ = 48;
35
47QList<AppWidget*> create_one_app_only_page_append(
48 DesktopMainWindow* mainWindow,
49 const QList<PageSetupSessionRequest>& sessionRequest,
50 const QString& pageName);
51
57QList<AppWidget*> create_real_app(DesktopMainWindow* mainWindow);
58
64QList<AppWidget*> create_builtin_apps(DesktopMainWindow* mainWindow);
65
71QList<AppWidget*> create_internal_apps(DesktopMainWindow* mainWindow);
72
79void create_specified_page(
80 QStackedWidget* widget, QWidget* paged_widget);
81
87void add_to_dock(DesktopMainWindow* mainWindow, const QList<AppWidget*>& widgets);
88
95void create_new_page_with_appWidget(
96 QList<AppWidget*> appWidgets,
97 DesktopMainWindow* mainWindow, const QString& name);
98
107QList<AppWidget*> build_pesudo_page(
108 const QString& pixpath, int how_many, DesktopMainWindow* mainWindow);
109};
110
111#endif // PAGESETUPER_H
The AppWidget class represents an application widget placed on the desktop.
Definition appwidget.h:19
The ApplicationWrapper class is the process wrapper.
Definition applicationwrapper.h:16
DesktopMainWindow is the main frontend window of the application. For beginners, this is the starting...
Definition desktopmainwindow.h:33
The DownDockWidget class holdings the down dock sessions it supports the dynamic sorted according fre...
Definition downdockwidget.h:16
This is a wrapper class for page setup basic informations, it is a simple interface of creating one p...
Definition pagesetuper.h:28
QString app_name
app name that will be displayed in desktop
Definition pagesetuper.h:30
ApplicationWrapper * app
app handler
Definition pagesetuper.h:31
QString pixmap_addr
external pixmap src addr
Definition pagesetuper.h:29