You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
94 lines
1.5 KiB
94 lines
1.5 KiB
15 years ago
|
// This file is generated by kconfig_compiler from test7.kcfg.
|
||
|
// All changes you do to this file will be lost.
|
||
|
#ifndef TEST7_H
|
||
|
#define TEST7_H
|
||
|
|
||
|
#include <kconfigskeleton.h>
|
||
|
#include <kdebug.h>
|
||
|
|
||
|
class Test7 : public KConfigSkeleton
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
Test7( int Number );
|
||
|
~Test7();
|
||
|
|
||
|
/**
|
||
|
Set Block colors.
|
||
|
*/
|
||
15 years ago
|
void setColor( const TQColor & v )
|
||
15 years ago
|
{
|
||
14 years ago
|
if (!isImmutable( TQString::tqfromLatin1( "Color" ) ))
|
||
15 years ago
|
mColor = v;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Get Block colors.
|
||
|
*/
|
||
15 years ago
|
TQColor color() const
|
||
15 years ago
|
{
|
||
|
return mColor;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Set foo bar
|
||
|
*/
|
||
15 years ago
|
void setFooBar( const TQString & v )
|
||
15 years ago
|
{
|
||
14 years ago
|
if (!isImmutable( TQString::tqfromLatin1( "FooBar" ) ))
|
||
15 years ago
|
mFooBar = v;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Get foo bar
|
||
|
*/
|
||
15 years ago
|
TQString fooBar() const
|
||
15 years ago
|
{
|
||
|
return mFooBar;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Set Age
|
||
|
*/
|
||
|
void setAge( int v )
|
||
|
{
|
||
|
if (v < 8)
|
||
|
{
|
||
|
kdDebug() << "setAge: value " << v << " is less than the minimum value of 8" << endl;
|
||
|
v = 8;
|
||
|
}
|
||
|
|
||
|
if (v > 88)
|
||
|
{
|
||
|
kdDebug() << "setAge: value " << v << " is greater than the maximum value of 88" << endl;
|
||
|
v = 88;
|
||
|
}
|
||
|
|
||
14 years ago
|
if (!isImmutable( TQString::tqfromLatin1( "Age" ) ))
|
||
15 years ago
|
mAge = v;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Get Age
|
||
|
*/
|
||
|
int age() const
|
||
|
{
|
||
|
return mAge;
|
||
|
}
|
||
|
|
||
|
protected:
|
||
|
int mParamNumber;
|
||
|
|
||
|
// Foo
|
||
15 years ago
|
TQColor mColor;
|
||
15 years ago
|
|
||
|
// Bar$(Number)
|
||
15 years ago
|
TQString mFooBar;
|
||
15 years ago
|
int mAge;
|
||
|
|
||
|
private:
|
||
|
};
|
||
|
|
||
|
#endif
|
||
|
|