Logo Search packages:      
Sourcecode: qsstv version File versions  Download package

pstyle.cpp

/**********************************************************************

      --- Qt Architect generated file ---

      File: pstyle.cpp
      Last generated: Wed Nov 24 22:52:51 1999

 *********************************************************************/

#include "pstyle.h"
#if  QT_VERSION <200
static PenStyle styleValue=SolidLine;
#else     
#include <qnamespace.h>
static Qt::PenStyle styleValue=Qt::SolidLine;
#endif
#define Inherited pstyleData
static int thickness=1;


static const char *styles[] = {"None","Solid","DashLine","Dot","DashDot",0}; 

pstyle::pstyle (QWidget* parent,const char* name):Inherited( parent, name )
{
  int i=0;
  thicknessBox->setValue(thickness);
  while(styles[i])
    {
      styleCombo->insertItem(styles[i++]);
    } 
  styleCombo->setCurrentItem((int)styleValue);
}


pstyle::~pstyle()
{
  
}

void pstyle::styleChanged(int val)
{
  styleValue=(PenStyle)val;
}

void pstyle::thicknessChanged(int val)
{
  thickness=val;
}

#if  QT_VERSION <200
PenStyle pstyle::getStyle()
#else
Qt::PenStyle pstyle::getStyle()
#endif
{
  return styleValue;
}


uint pstyle::getThickness()
{
  return thickness;
}

Generated by  Doxygen 1.6.0   Back to index