KDFrame.h
Go to the documentation of this file.
280 KDFrameProfileSection::Direction dir = KDFrameProfileSection::DirPlain, // PENDING(blackie) possible enum problem
TQTextStream & operator>>(TQTextStream &s, KDFrame &p)
Reads the an XML document from the text stream s into the KDFrame object p.
TQTextStream & operator<<(TQTextStream &s, const KDFrame &p)
Writes the KDFrame object p as an XML document to the text stream s.
Curvature
Profile Curvature Mode: specifying the shape of a frame profile section.
Definition KDFrameProfileSection.h:114
Direction
Profile Direction Mode: specifying whether a part of a profile looks embossed or engraved in comparis...
Definition KDFrameProfileSection.h:65
static void createFrameCornerNode(TQDomDocument &document, TQDomNode &parent, const TQString &elementName, const KDFrameCorner &corner)
Definition KDFrame.cpp:460
static bool readFrameCornerNode(const TQDomElement &element, KDFrameCorner &corner)
Definition KDFrame.cpp:581
static BackPixmapMode stringToBackPixmapMode(const TQString &string)
Converts the specified string to a background pixmap mode enum value.
Definition KDFrame.h:140
void setBackPixmap(const TQPixmap *backPixmap=0, BackPixmapMode backPixmapMode=PixStretched)
Specifies a pixmap to be used to fill the inner area of this frame, calling this methode without pass...
Definition KDFrame.h:744
BackPixmapMode
These are ways how to display a pixmap that might be painted into the inner area.
Definition KDFrame.h:109
friend TQTextStream & operator>>(TQTextStream &s, KDFrame &p)
Reads the an XML document from the text stream s into the KDFrame object p.
const KDFrameProfile & cornerProfile(CornerName name) const
Definition KDFrame.h:677
KDFramePaintSteps
The different steps taken to paint the frame: first paint the background then the edges then the corn...
Definition KDFrame.h:843
KDFrame(TQRect innerRect=TQRect(0, 0, 0, 0), SimpleFrame frame=FrameFlat, int lineWidth=1, int midLineWidth=0, TQPen pen=TQPen(), TQBrush background=TQBrush(), const TQPixmap *backPixmap=0, BackPixmapMode backPixmapMode=PixStretched, int shadowWidth=0, CornerName sunPos=CornerTopLeft)
Default Constructor.
Definition KDFrame.h:917
void setBackground(TQBrush background=TQBrush(TQt::NoBrush))
Specifies the brush to be used to fill the inner area of this frame, calling this methode without pas...
Definition KDFrame.h:730
static void createFrameNode(TQDomDocument &document, TQDomNode &parent, const TQString &elementName, const KDFrame &frame)
Creates a DOM element node that represents a frame for use in a DOM document.
Definition KDFrame.cpp:407
static CornerName stringToCornerName(const TQString &string)
Definition KDFrame.h:394
static TQString cornerStyleToString(CornerStyle type)
Definition KDFrame.h:440
void setInnerRect(TQRect innerRect)
Specifies the position and the size of area that is surrounded by the frame.
Definition KDFrame.h:782
void clearAll()
Remove all settings and specify no border, no edges, no background.
Definition KDFrame.h:879
static void createFrameProfileNode(TQDomDocument &document, TQDomNode &parent, const TQString &elementName, KDFrameProfile profile)
Creates a DOM element node that represents a frame profile for use in a DOM document.
Definition KDFrame.cpp:445
static bool readFrameNode(const TQDomElement &element, KDFrame &frame)
Reads data from a DOM element node that represents a frame object and fills a KDFrame object with the...
Definition KDFrame.cpp:475
void setCorner(CornerName name, CornerStyle style, int width, KDFrameProfile *const profile=0)
Definition KDFrame.h:586
static TQString cornerNameToString(CornerName type)
Definition KDFrame.h:366
void setSimpleFrame(SimpleFrame frame, int lineWidth, int midLineWidth, TQPen pen, TQBrush background=TQBrush(), const TQPixmap *backPixmap=0, BackPixmapMode backPixmapMode=PixStretched)
Definition KDFrame.cpp:248
static TQString backPixmapModeToString(BackPixmapMode type)
Converts the specified background pixmap mode enum to a string representation.
Definition KDFrame.h:120
static bool readFrameProfileNode(const TQDomElement &element, KDFrameProfile &profile)
Reads data from a DOM element node that represents a frame profile and fills a KDFrameProfile object ...
Definition KDFrame.cpp:556
void setCorners(CornerStyle style, int width, KDFrameProfile *const profile=0)
Definition KDFrame.h:615
static CornerStyle stringToCornerStyle(const TQString &string)
Definition KDFrame.h:464
friend TQTextStream & operator<<(TQTextStream &s, const KDFrame &p)
Writes the KDFrame object p as an XML document to the text stream s.
const TQBrush & background(const TQPixmap *&backPixmap, BackPixmapMode &backPixmapMode) const
Returns the brush that is used to fill the inner area of this frame, or a TQBrush( \cNoBrush ) if no ...
Definition KDFrame.h:763
