Source Code (Use browser search to find items of interest.)
Class Index
kspread'AIBase (./koffice/kspread/qtai_base.h:32)
class AIBase : public QWidget
{
Q_OBJECT
public:
// Main Methods
AIBase(QWidget *parent,const char *name=0);
~AIBase();
void setBackgroundColor(QColor c);
void setBackgroundColor(int r, int g, int b);
void setGridColor(QColor c);
void setGridColor(int r, int g, int b);
void setCommonColor(QColor c);
void setCommonColor(int r, int g, int b);
QColor getBackgroundColor();
void setAutoScale(bool s);
static void setDesktopPal(QApplication *a);
bool autoscale;
virtual void printOut(QPainter *p);
protected:
virtual void drawIt( QPainter *p);
virtual void invertColor();
QColor c_bg,c_grid,c_comm;
private:
bool invert;
};
/*******************************************************************/
/********* End Draw Window Definition *****************************/
/*******************************************************************/
kspread'AIBase::AIBase() (./koffice/kspread/qtai_base.cpp:39)
AIBase::AIBase(QWidget *parent,const char *name)
: QWidget( parent, name)
{
// Standard Color Set, MMS Style
setBackgroundColor(0,0,128);
//c_bg.setRgb(0,0,0);
setCommonColor(255,255,0);
//c_grid.setRgb(127,127,127);
setGridColor(255,255,255);
autoscale=TRUE;
invert=FALSE;
}
kspread'AIBase::~AIBase() (./koffice/kspread/qtai_base.cpp:52)
AIBase::~AIBase()
{
}
kspread'AIBase::invertColor() (./koffice/kspread/qtai_base.cpp:56)
void AIBase::invertColor()
{
if (invert) {
invert=FALSE;
} else {
invert=TRUE;
}
c_bg.setRgb(255-c_bg.red(),255-c_bg.green(),255-c_bg.blue());
c_grid.setRgb(255-c_grid.red(),255-c_grid.green(),255-c_grid.blue());
c_comm.setRgb(255-c_comm.red(),255-c_comm.green(),255-c_comm.blue());
}
kspread'AIBase::setBackgroundColor() (./koffice/kspread/qtai_base.cpp:68)
void AIBase::setBackgroundColor(QColor c)
{
setBackgroundColor(c.red(), c.green(), c.blue());
}
kspread'AIBase::setBackgroundColor() (./koffice/kspread/qtai_base.cpp:73)
void AIBase::setBackgroundColor(int r, int g, int b)
{
c_bg.setRgb(r,g,b);
}
kspread'AIBase::getBackgroundColor() (./koffice/kspread/qtai_base.cpp:78)
QColor AIBase::getBackgroundColor()
{
return c_bg;
}
kspread'AIBase::setGridColor() (./koffice/kspread/qtai_base.cpp:83)
void AIBase::setGridColor(QColor c)
{
setGridColor(c.red(), c.green(), c.blue());
}
kspread'AIBase::setGridColor() (./koffice/kspread/qtai_base.cpp:88)
void AIBase::setGridColor(int r, int g, int b)
{
c_grid.setRgb(r,g,b);
}
kspread'AIBase::setCommonColor() (./koffice/kspread/qtai_base.cpp:93)
void AIBase::setCommonColor(QColor c)
{
setCommonColor(c.red(), c.green(), c.blue());
}
kspread'AIBase::setCommonColor() (./koffice/kspread/qtai_base.cpp:98)
void AIBase::setCommonColor(int r, int g, int b)
{
c_comm.setRgb(r,g,b);
}
kspread'AIBase::setAutoScale() (./koffice/kspread/qtai_base.cpp:103)
void AIBase::setAutoScale(bool s)
{
autoscale=s;
}
kspread'AIBase::drawIt() (./koffice/kspread/qtai_base.cpp:108)
void AIBase::drawIt( QPainter *p)
{
}
kspread'AIBase::printOut() (./koffice/kspread/qtai_base.cpp:112)
void AIBase::printOut(QPainter *p)
{
fprintf(stderr,"AIBASE.CPP: Print Out!");
invertColor();
drawIt(p);
invertColor();
}