build
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=494705
This commit is contained in:
parent
5d043ae79d
commit
98d9df63d9
@ -16,6 +16,11 @@
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <QApplication>
|
||||
#include <QDesktopWidget>
|
||||
|
||||
#include <kdebug.h>
|
||||
|
||||
#include "applet.h"
|
||||
#include "appletChain.h"
|
||||
|
||||
@ -33,8 +38,8 @@ class AppletChain::Private
|
||||
Private()
|
||||
: popupDirection(Up),
|
||||
constraint(Plasma::NoConstraint),
|
||||
screenEdge(BottomEdge),
|
||||
screen(0)
|
||||
screen(0),
|
||||
screenEdge(BottomEdge)
|
||||
{
|
||||
}
|
||||
|
||||
@ -100,6 +105,7 @@ void AppletChain::loadApplet(KService::Ptr)
|
||||
void AppletChain::addApplet(Plasma::Applet* applet)
|
||||
{
|
||||
d->applets.append(applet);
|
||||
emit appletAdded(applet);
|
||||
}
|
||||
|
||||
int AppletChain::xineramaScreen()
|
||||
|
@ -53,7 +53,7 @@ class KDE_EXPORT AppletChain : public QObject, public KShared
|
||||
|
||||
public slots:
|
||||
void loadApplet(KService::Ptr);
|
||||
void addApplet(Applet*);
|
||||
void addApplet(Plasma::Applet*);
|
||||
|
||||
signals:
|
||||
void appletAdded(Applet*);
|
||||
|
10
plasma.cpp
10
plasma.cpp
@ -21,16 +21,16 @@
|
||||
namespace Plasma
|
||||
{
|
||||
|
||||
int plasmaIDs = 0;
|
||||
int plasmaIds = 0;
|
||||
|
||||
void setMinID(int minID)
|
||||
void setMinId(int minId)
|
||||
{
|
||||
plasmaIDs = minID + 1;
|
||||
plasmaIds = minId + 1;
|
||||
}
|
||||
|
||||
int uniqueID()
|
||||
int uniqueId()
|
||||
{
|
||||
return ++plasmaIDs;
|
||||
return ++plasmaIds;
|
||||
}
|
||||
|
||||
Direction edgeToPopupDirection(ScreenEdge edge)
|
||||
|
4
plasma.h
4
plasma.h
@ -37,8 +37,8 @@ enum Direction { Down = 0,
|
||||
enum ScreenEdge { Floating = 0, Desktop,
|
||||
TopEdge, BottomEdge, LeftEdge, RightEdge };
|
||||
|
||||
KDE_EXPORT void setMinID(int minID);
|
||||
KDE_EXPORT int uniqueID();
|
||||
KDE_EXPORT void setMinId(int minId);
|
||||
KDE_EXPORT int uniqueId();
|
||||
KDE_EXPORT Direction edgeToPopupDirection(ScreenEdge edge);
|
||||
|
||||
} // Plasma namespace
|
||||
|
Loading…
Reference in New Issue
Block a user