Source Code (Use browser search to find items of interest.)
Class Index
kicker'InternalFrame (./kdebase/kicker/appletcontainer.h:208)
class InternalFrame : public AppletFrame
{
Q_OBJECT;
public:
InternalFrame(const QString &aname, const QString &desktopFile, QWidget *parent);
QString command() const { return _id; }
QCString objId() const { return _id; }
int widthForHeight(int height);
int heightForWidth(int width);
void setPosition(Position p);
void setOrientation(Orientation o);
QString configData() { return _deskFile; }
QString appletType() { return "InternalApplet"; }
private:
QCString _id;
QString _deskFile;
InternalApplet *_applet;
};
kicker'InternalFrame::InternalFrame() (./kdebase/kicker/appletcontainer.cpp:438)
InternalFrame::InternalFrame( const QString &aname, const QString &desktopFile, QWidget *parent )
: AppletFrame(parent)
{
_applet = PGlobal::pluginmgr->loadPlugin(desktopFile, _appletframe);
if (_applet)
{
_applet->setOrientation(_orient);
_applet->setPosition((InternalApplet::Position) (_pos));
setStretch(_applet->stretch());
}
_id = aname; // good as anything else ;-)
_deskFile = desktopFile;
}
kicker'InternalFrame::setPosition() (./kdebase/kicker/appletcontainer.cpp:454)
void InternalFrame::setPosition(Position p)
{
if (_pos == p) return;
AppletContainer::setPosition(p);
if (!_applet) return;
_applet->setPosition( (InternalApplet::Position) (p));
resetLayout();
}
kicker'InternalFrame::setOrientation() (./kdebase/kicker/appletcontainer.cpp:466)
void InternalFrame::setOrientation(Orientation o)
{
if (_orient == o) return;
AppletContainer::setOrientation(o);
if (!_applet) return;
_applet->setOrientation(o);
resetLayout();
}
kicker'InternalFrame::widthForHeight() (./kdebase/kicker/appletcontainer.cpp:478)
int InternalFrame::widthForHeight(int h)
{
if (!_applet) return h;
return _applet->widthForHeight(h) + _handle->width();
}
kicker'InternalFrame::heightForWidth() (./kdebase/kicker/appletcontainer.cpp:484)
int InternalFrame::heightForWidth(int w)
{
if (!_applet) return w;
return _applet->heightForWidth(w) + _handle->height();
}