Main Page | Class List | File List | Class Members | File Members | Related Pages

Frame Class Reference

#include <frame.h>

List of all members.

Public Member Functions

 Frame (QWidget *parent=NULL, const char *name=NULL)
 ~Frame ()
void setTitlePalette (QPalette)
void setLeftPalette (QPalette)
void setRightPalette (QPalette)
void setBottomPalette (QPalette)
void setGripPalette (QPalette)
void setTitleHeight (int)
void setLeftWidth (int n)
void setRightWidth (int n)
void setBottomHeight (int n)
void setGripWidth (int n)

Private Member Functions

void newGeometry ()

Private Attributes

int titleHeight
int leftWidth
int rightWidth
int bottomHeight
int gripWidth
QFrame * titleBorder
QFrame * leftBorder
QFrame * rightBorder
QFrame * bottomBorder
QFrame * leftGrip
QFrame * rightGrip


Detailed Description

This class draws a frame in a QRect, similar to the Rwm class of the same name. The Frame manages it's own geometry and layout, so I had to put in into a seperate class in order to have it not interfere with layouts of the config program. What is more, I have defined it as a custom widget in qt designer.


Constructor & Destructor Documentation

Frame::Frame (  QWidget *  parent = NULL,
const char *  name = NULL
) 
 

The c'tor constructs the border frames and sets some defaults that are necessary to make an initial picture.

Here is the call graph for this function:

Frame::~Frame (   ) 
 


Member Function Documentation

void Frame::newGeometry (   )  [private]
 

void Frame::setBottomHeight (  int  n  )  [inline]
 

Here is the call graph for this function:

void Frame::setBottomPalette (  QPalette   ) 
 

void Frame::setGripPalette (  QPalette   ) 
 

void Frame::setGripWidth (  int  n  )  [inline]
 

Here is the call graph for this function:

void Frame::setLeftPalette (  QPalette   ) 
 

void Frame::setLeftWidth (  int  n  )  [inline]
 

Here is the call graph for this function:

void Frame::setRightPalette (  QPalette   ) 
 

void Frame::setRightWidth (  int  n  )  [inline]
 

Here is the call graph for this function:

void Frame::setTitleHeight (  int   ) 
 

Here is the call graph for this function:

void Frame::setTitlePalette (  QPalette   ) 
 


Member Data Documentation

QFrame * Frame::bottomBorder [private]
 

int Frame::bottomHeight [private]
 

int Frame::gripWidth [private]
 

QFrame * Frame::leftBorder [private]
 

QFrame* Frame::leftGrip [private]
 

int Frame::leftWidth [private]
 

QFrame * Frame::rightBorder [private]
 

QFrame * Frame::rightGrip [private]
 

int Frame::rightWidth [private]
 

QFrame* Frame::titleBorder [private]
 

int Frame::titleHeight [private]
 


The documentation for this class was generated from the following files:
Go back to rwm - the window manager's - Home page.
created 6 Jun 2005 for rwmconfig 0.2 by Rolf C. Rönnau using doxygen 1.4.2