source: lumina/lumina-desktop/LPanel.h @ 9d0ec76

releng/10.0.3releng/10.1releng/10.1.1
Last change on this file since 9d0ec76 was 9d0ec76, checked in by Ken Moore <ken@…>, 7 months ago

Update lumina-desktop to use the new abilities in LuminaOS instead of the GLobals.h file. Now all the OS-specific stuff is contained in a single location.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1//===========================================
2//  Lumina-DE source code
3//  Copyright (c) 2012, Ken Moore
4//  Available under the 3-clause BSD license
5//  See the LICENSE file for full details
6//===========================================
7//  This is the generic class for creating a full-width panel that stays
8//    on top of all other windows (top or bottom of the screen only)
9//===========================================
10#ifndef _LUMINA_DESKTOP_PANEL_H
11#define _LUMINA_DESKTOP_PANEL_H
12
13#include <QWidget>
14#include <QBoxLayout>
15#include <QSettings>
16#include <QString>
17#include <QStringList>
18#include <QTimer>
19#include <QMoveEvent>
20#include <QDesktopWidget>
21#include <QPainter>
22#include <QPaintEvent>
23
24#include "panel-plugins/NewPP.h"
25#include "panel-plugins/LPPlugin.h"
26
27#include <LuminaX11.h>
28#include <LuminaOS.h>
29
30class LPanel : public QWidget{
31        Q_OBJECT
32private:
33        QBoxLayout *layout;
34        QSettings *settings;
35        QString PPREFIX; //internal prefix for all settings
36        QDesktopWidget *screen;
37        QWidget *bgWindow, *panelArea;
38        bool defaultpanel, horizontal;
39        int screennum;
40        QList<LPPlugin*> PLUGINS;
41
42public:
43        LPanel(QSettings *file, int scr = 0, int num =0, QWidget *parent=0); //settings file, screen number, panel number
44        ~LPanel();
45
46        int number(){
47          return PPREFIX.section(".",-1).toInt();
48        }
49
50public slots:
51        void UpdatePanel();  //Load the settings file and update the panel appropriately
52        void UpdateLocale(); //Locale Changed externally
53        void UpdateTheme(); //Theme Changed externally
54
55protected:
56        void paintEvent(QPaintEvent *event);
57};
58
59#endif
Note: See TracBrowser for help on using the repository browser.