Esempio n. 1
0
void KACLListViewItem::paintCell( TQPainter* p, const TQColorGroup &cg,
                                  int column, int width, int alignment )
{
    TQColorGroup mycg = cg;
    if ( isDefault ) {
        mycg.setColor( TQColorGroup::Text, TQColor( 0, 0, 255 ) );
    }
    if ( isPartial ) {
        TQFont font = p->font();
        font.setItalic( true );
        mycg.setColor( TQColorGroup::Text, TQColor( 100, 100, 100 ) );
        p->setFont( font );
    }
    TDEListViewItem::paintCell( p, mycg, column, width, alignment );

    KACLListViewItem *below =0;
    if ( itemBelow() )
        below = static_cast<KACLListViewItem*>( itemBelow() );
    const bool lastUser = type == KACLListView::NamedUser && below && below->type == KACLListView::NamedGroup;
    const bool lastNonDefault = !isDefault && below && below->isDefault;
    if ( type == KACLListView::Mask || lastUser || lastNonDefault )
    {
        p->setPen( TQPen( Qt::gray, 0, TQPen::DotLine ) );
        if ( type == KACLListView::Mask )
            p->drawLine( 0, 0, width - 1, 0 );
        p->drawLine( 0, height() - 1, width - 1, height() - 1 );
    }
}
Esempio n. 2
0
void QuickLauncher::updateStickyHighlightLayer()
{
    // Creates a transparent image which is used
    // to highlight those buttons which will never
    // be removed automatically from the launcher
    TQPixmap areaPix(width(), height());
    TQPainter areaPixPainter(&areaPix);
    areaPixPainter.fillRect(0, 0, width(), height(), TQColor(255, 255, 255));
    TQSize itemSize = m_manager->itemSize();
    TQSize spaceSize = m_manager->spaceSize();
    for (uint n=0; n<m_buttons->size(); ++n)
    {
        TQPoint pos = m_manager->pos(n);
        if ((*m_buttons)[n]->sticky() == false)
        {
            areaPixPainter.fillRect(pos.x()-(spaceSize.width()+1)/2, 
                                    pos.y()-(spaceSize.height()+1)/2, 
                                    itemSize.width()+spaceSize.width()+1, 
                                    itemSize.height()+spaceSize.height()+1, 
                                    TQColor(0, 0, 0));
        }
    }
    TQImage areaLayer = areaPix.convertToImage();
    m_stickyHighlightLayer = TQImage(width(), height(), 32);
    m_stickyHighlightLayer.setAlphaBuffer(true);
    int pix, tlPix, brPix, w(width()), h(height());
    QRgb transparent(tqRgba(0, 0, 0, 0));
    for (int y = h-1; y >= 0; --y)
    {
        for (int x = w-1; x >= 0; --x)
        {
            pix = tqRed(areaLayer.pixel(x, y));
            if (pix == 0)
            {
                tlPix = (y>0 && x>0) ? tqRed(areaLayer.pixel(x-1,y-1)) : 255;
                brPix = (y<h-1 && x<w-1) ? tqRed(areaLayer.pixel(x+1,y+1)) : 255;
                int c = tlPix-brPix < 0 ? 255 : 0;
                int alpha = abs(tlPix-brPix)/2;
                m_stickyHighlightLayer.setPixel(x, y, tqRgba(c, c, c, alpha));
            }
            else 
            {
                m_stickyHighlightLayer.setPixel(x, y, transparent);
            }
        }
    }
    repaint();
}
Esempio n. 3
0
	TQColor ColorUtil::lighten(TQColor in, int factor)
	{
		if (factor > 100)
		{
			int h, s, v;
			in.hsv(&h, &s, &v);
			
			float mShare = v/230.0;
			if (mShare > 1) mShare = 1;
			
			mShare *= mShare;
			
			int diff = factor - 100;
			int hd  = int(mShare*diff);
			int delta  =  int((diff - hd)*7.55);
			
			TQColor wrk = in.light(100+hd);
			
			int r = wrk.red();
			int g = wrk.green();
			int b = wrk.blue();

			r+=delta;
			g+=delta;
			b+=delta;
			
			if (r>255) r=255;
			if (g>255) g=255;
			if (b>255) b=255;
			
			return TQColor(r,g,b);
		}
		
		return in;
	}
Esempio n. 4
0
void PiecesTable::initColors()
{
    _colors.resize(numRows() * numCols());
    for (int r = 0; r < numRows(); r++)
        for (int c = 0; c < numCols(); c++)
            _colors[c + r *numCols()] = TQColor(255 - 70 * c,255 - 70 * r, 150);
}
Esempio n. 5
0
void TESession::setUserTitle( int what, const TQString &caption )
{
    // (btw: what=0 changes title and icon, what=1 only icon, what=2 only title
    if ((what == 0) || (what == 2))
       userTitle = caption;
    if ((what == 0) || (what == 1))
       iconText = caption;
    if (what == 11) {
      TQString colorString = caption.section(';',0,0);
      TQColor backColor = TQColor(colorString);
      if (backColor.isValid()){// change color via \033]11;Color\007
	if (backColor != modifiedBackground) {
	    modifiedBackground = backColor;
	    te->setDefaultBackColor(backColor);
	}
      }
    }
    if (what == 30)
       renameSession(caption);
    if (what == 31) {
       cwd=caption;
       cwd=cwd.replace( TQRegExp("^~"), TQDir::homeDirPath() );
       emit openURLRequest(cwd);
    }    
    if (what == 32) { // change icon via \033]32;Icon\007
       iconName = caption;
       te->update();
    }

    emit updateTitle(this);
}
Esempio n. 6
0
/*
 *  Constructs a EvaSysBroadcastUIBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
EvaSysBroadcastUIBase::EvaSysBroadcastUIBase( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "EvaSysBroadcastUIBase" );
    EvaSysBroadcastUIBaseLayout = new TQGridLayout( this, 1, 1, 11, 6, "EvaSysBroadcastUIBaseLayout"); 

    layout7 = new TQVBoxLayout( 0, 0, 6, "layout7"); 

    fraContents = new TQFrame( this, "fraContents" );
    fraContents->setPaletteBackgroundColor( TQColor( 234, 247, 225 ) );
    fraContents->setFrameShape( TQFrame::StyledPanel );
    fraContents->setFrameShadow( TQFrame::Raised );
    fraContentsLayout = new TQGridLayout( fraContents, 1, 1, 11, 6, "fraContentsLayout"); 

    layout6 = new TQVBoxLayout( 0, 0, 6, "layout6"); 

    layout5 = new TQHBoxLayout( 0, 0, 6, "layout5"); 

    lblTitle = new TQLabel( fraContents, "lblTitle" );
    layout5->addWidget( lblTitle );
    spacer2 = new TQSpacerItem( 111, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout5->addItem( spacer2 );
    layout6->addLayout( layout5 );

    lblContents = new TQLabel( fraContents, "lblContents" );
    lblContents->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, lblContents->sizePolicy().hasHeightForWidth() ) );
    TQFont lblContents_font = TDEGlobalSettings::fixedFont();
    lblContents->setFont( lblContents_font ); 
    lblContents->setFrameShape( TQLabel::NoFrame );
    lblContents->setTextFormat( TQLabel::PlainText );
    lblContents->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignTop | TQLabel::AlignLeft ) );
    layout6->addWidget( lblContents );

    kurllblUrl = new KURLLabel( fraContents, "kurllblUrl" );
    kurllblUrl->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, kurllblUrl->sizePolicy().hasHeightForWidth() ) );
    kurllblUrl->setFrameShape( KURLLabel::NoFrame );
    layout6->addWidget( kurllblUrl );

    fraContentsLayout->addLayout( layout6, 0, 0 );
    layout7->addWidget( fraContents );

    layout3 = new TQHBoxLayout( 0, 0, 6, "layout3"); 
    spacer1 = new TQSpacerItem( 101, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout3->addItem( spacer1 );

    btnDetails = new TQPushButton( this, "btnDetails" );
    layout3->addWidget( btnDetails );

    btnClose = new TQPushButton( this, "btnClose" );
    layout3->addWidget( btnClose );
    layout7->addLayout( layout3 );

    EvaSysBroadcastUIBaseLayout->addLayout( layout7, 0, 0 );
    languageChange();
    resize( TQSize(400, 248).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}
Esempio n. 7
0
TQColor
KColorDialog::color() const
{
  if ( d->cbDefaultColor && d->cbDefaultColor->isChecked() )
     return TQColor();
  if ( d->selColor.isValid() )
    d->table->addToRecentColors( d->selColor );
  return d->selColor;
}
Esempio n. 8
0
void TDEIconConfig::initDefaults()
{
    mDefaultEffect[0].type = TDEIconEffect::NoEffect;
    mDefaultEffect[1].type = TDEIconEffect::NoEffect;
    mDefaultEffect[2].type = TDEIconEffect::ToGray;
    mDefaultEffect[0].transparant = false;
    mDefaultEffect[1].transparant = false;
    mDefaultEffect[2].transparant = true;
    mDefaultEffect[0].value = 1.0;
    mDefaultEffect[1].value = 1.0;
    mDefaultEffect[2].value = 1.0;
    mDefaultEffect[0].color = TQColor(144,128,248);
    mDefaultEffect[1].color = TQColor(169,156,255);
    mDefaultEffect[2].color = TQColor(34,202,0);
    mDefaultEffect[0].color2 = TQColor(0,0,0);
    mDefaultEffect[1].color2 = TQColor(0,0,0);
    mDefaultEffect[2].color2 = TQColor(0,0,0);

    const int defDefSizes[] = { 32, 22, 22, 16, 32 };

    TDEIcon::Group i;
    TQStringList::ConstIterator it;
    for(it=mGroups.begin(), i=TDEIcon::FirstGroup; it!=mGroups.end(); ++it, i++)
    {
	mbDP[i] = false;
	mbChanged[i] = true;
	mbAnimated[i] = false;
	if (mpTheme)
	    mSizes[i] = mpTheme->defaultSize(i);
	else
	    mSizes[i] = defDefSizes[i];

	mEffects[i][0] = mDefaultEffect[0];
	mEffects[i][1] = mDefaultEffect[1];
	mEffects[i][2] = mDefaultEffect[2];
    }
    // Animate desktop icons by default
    int group = mGroups.findIndex( "Desktop" );
    if ( group != -1 )
        mbAnimated[group] = true;

    // This is the new default in KDE 2.2, in sync with the kiconeffect of tdelibs Nolden 2001/06/11
    int activeState = mStates.findIndex( "Active" );
    if ( activeState != -1 )
    {
        int group = mGroups.findIndex( "Desktop" );
        if ( group != -1 )
        {
            mEffects[ group ][ activeState ].type = TDEIconEffect::ToGamma;
            mEffects[ group ][ activeState ].value = 0.7;
        }

        group = mGroups.findIndex( "Panel" );
        if ( group != -1 )
        {
            mEffects[ group ][ activeState ].type = TDEIconEffect::ToGamma;
            mEffects[ group ][ activeState ].value = 0.7;
        }
    }
}
Esempio n. 9
0
CustomFaceUIBase::CustomFaceUIBase( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "CustomFaceUIBase" );
    setPaletteBackgroundColor( TQColor( 255, 255, 255 ) );
    CustomFaceUIBaseLayout = new TQGridLayout( this, 1, 1, 1, 0, "CustomFaceUIBaseLayout"); 

    layout2 = new TQVBoxLayout( 0, 0, 0, "layout2"); 

    twSelector = new TQTabWidget( this, "twSelector" );
    twSelector->setPaletteBackgroundColor( TQColor( 255, 255, 255 ) );

    layout2->addWidget( twSelector );

    layout1 = new TQHBoxLayout( 0, 5, 6, "layout1"); 

    tbAdd = new TQToolButton( this, "tbAdd" );
    tbAdd->setBackgroundMode( TQToolButton::PaletteBackground );
    tbAdd->setPaletteForegroundColor( TQColor( 4, 74, 155 ) );
    tbAdd->setAutoRaise( TRUE );
    layout1->addWidget( tbAdd );

    chbUseShortcut = new TQCheckBox( this, "chbUseShortcut" );
    chbUseShortcut->setPaletteForegroundColor( TQColor( 4, 74, 155 ) );
    layout1->addWidget( chbUseShortcut );
    spacer1 = new TQSpacerItem( 41, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout1->addItem( spacer1 );

    lblPage = new TQLabel( this, "lblPage" );
    lblPage->setPaletteForegroundColor( TQColor( 4, 74, 155 ) );
    layout1->addWidget( lblPage );

    tbPrev = new TQToolButton( this, "tbPrev" );
    tbPrev->setPaletteForegroundColor( TQColor( 4, 74, 155 ) );
    layout1->addWidget( tbPrev );

    tbNext = new TQToolButton( this, "tbNext" );
    tbNext->setPaletteForegroundColor( TQColor( 4, 74, 155 ) );
    layout1->addWidget( tbNext );
    layout2->addLayout( layout1 );

    CustomFaceUIBaseLayout->addLayout( layout2, 0, 0 );
    languageChange();
    resize( TQSize(384, 265).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}
Esempio n. 10
0
TQImage *KFileIVIDesktop::buildShadow( TQPainter *p, const int align,
                                      TQColor &shadowColor )
{
  TQPainter pixPainter;
  int spread = shadowThickness();

  TQPixmap textPixmap(textRect( FALSE ).width() + spread * 2 + 2,
    textRect( FALSE ).height() + spread * 2 + 2);

  textPixmap.fill(TQColor(0,0,0));
  textPixmap.setMask( textPixmap.createHeuristicMask(TRUE) );

  pixPainter.begin(&textPixmap);
  pixPainter.setPen(white);    // get the pen from the root painter
  pixPainter.setFont(p->font()); // get the font from the root painter
  wordWrap()->drawText( &pixPainter, spread, spread, align | KWordWrap::Truncate );
  pixPainter.end();

  return new TQImage(m_shadow->makeShadow(textPixmap, shadowColor));
}
Esempio n. 11
0
KColorCells::KColorCells( TQWidget *parent, int rows, int cols )
	: TQGridView( parent )
{
	shade = true;
	setNumRows( rows );
	setNumCols( cols );
	colors = new TQColor [ rows * cols ];

	for ( int i = 0; i < rows * cols; i++ )
		colors[i] = TQColor();

	selected = 0;
        inMouse = false;

	// Drag'n'Drop
	setAcceptDrops( true);

	setHScrollBarMode( AlwaysOff );
	setVScrollBarMode( AlwaysOff );
	viewport()->setBackgroundMode( PaletteBackground );
	setBackgroundMode( PaletteBackground );
}
Esempio n. 12
0
/*
 *  Constructs a EvaAddUIBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
EvaAddUIBase::EvaAddUIBase( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "EvaAddUIBase" );
    EvaAddUIBaseLayout = new TQVBoxLayout( this, 11, 6, "EvaAddUIBaseLayout"); 

    lblTip = new TQLabel( this, "lblTip" );
    lblTip->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, lblTip->sizePolicy().hasHeightForWidth() ) );
    EvaAddUIBaseLayout->addWidget( lblTip );

    frame3 = new TQFrame( this, "frame3" );
    frame3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, frame3->sizePolicy().hasHeightForWidth() ) );
    frame3->setPaletteBackgroundColor( TQColor( 234, 247, 255 ) );
    frame3->setFrameShape( TQFrame::StyledPanel );
    frame3->setFrameShadow( TQFrame::Raised );
    frame3Layout = new TQVBoxLayout( frame3, 11, 6, "frame3Layout"); 

    layout17 = new TQHBoxLayout( 0, 0, 6, "layout17"); 

    lblTopic = new TQLabel( frame3, "lblTopic" );
    lblTopic->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)1, 0, 0, lblTopic->sizePolicy().hasHeightForWidth() ) );
    layout17->addWidget( lblTopic );

    tbtnFace = new TQToolButton( frame3, "tbtnFace" );
    tbtnFace->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, tbtnFace->sizePolicy().hasHeightForWidth() ) );
    tbtnFace->setUsesBigPixmap( TRUE );
    tbtnFace->setAutoRaise( TRUE );
    layout17->addWidget( tbtnFace );
    frame3Layout->addLayout( layout17 );

    layout13 = new TQHBoxLayout( 0, 0, 6, "layout13"); 

    lblGroup = new TQLabel( frame3, "lblGroup" );
    layout13->addWidget( lblGroup );

    cbbGroups = new TQComboBox( FALSE, frame3, "cbbGroups" );
    layout13->addWidget( cbbGroups );
    spacer1 = new TQSpacerItem( 177, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout13->addItem( spacer1 );
    frame3Layout->addLayout( layout13 );

    fraVeriGraphic = new TQFrame( frame3, "fraVeriGraphic" );
    fraVeriGraphic->setFrameShape( TQFrame::NoFrame );
    fraVeriGraphic->setFrameShadow( TQFrame::Plain );
    fraVeriGraphicLayout = new TQGridLayout( fraVeriGraphic, 1, 1, 0, 0, "fraVeriGraphicLayout"); 

    layout14 = new TQHBoxLayout( 0, 0, 6, "layout14"); 

    lblVeriCode = new TQLabel( fraVeriGraphic, "lblVeriCode" );
    layout14->addWidget( lblVeriCode );

    leCode = new TQLineEdit( fraVeriGraphic, "leCode" );
    layout14->addWidget( leCode );

    lblCodeGraphic = new TQLabel( fraVeriGraphic, "lblCodeGraphic" );
    layout14->addWidget( lblCodeGraphic );

    btnRefreshCode = new TQToolButton( fraVeriGraphic, "btnRefreshCode" );
    btnRefreshCode->setAutoRaise( TRUE );
    layout14->addWidget( btnRefreshCode );

    fraVeriGraphicLayout->addLayout( layout14, 0, 0 );
    frame3Layout->addWidget( fraVeriGraphic );

    fraQuestion = new TQFrame( frame3, "fraQuestion" );
    fraQuestion->setFrameShape( TQFrame::NoFrame );
    fraQuestion->setFrameShadow( TQFrame::Plain );
    fraQuestionLayout = new TQHBoxLayout( fraQuestion, 0, 0, "fraQuestionLayout"); 

    layout12 = new TQVBoxLayout( 0, 0, 6, "layout12"); 

    lblQuestion = new TQLabel( fraQuestion, "lblQuestion" );
    layout12->addWidget( lblQuestion );

    lblAnswer = new TQLabel( fraQuestion, "lblAnswer" );
    lblAnswer->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, lblAnswer->sizePolicy().hasHeightForWidth() ) );
    layout12->addWidget( lblAnswer );
    fraQuestionLayout->addLayout( layout12 );

    layout13_2 = new TQVBoxLayout( 0, 0, 6, "layout13_2"); 

    lblQuesContents = new TQLabel( fraQuestion, "lblQuesContents" );
    lblQuesContents->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)4, 0, 0, lblQuesContents->sizePolicy().hasHeightForWidth() ) );
    lblQuesContents->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter | TQLabel::AlignLeft ) );
    layout13_2->addWidget( lblQuesContents );

    leAnswer = new TQLineEdit( fraQuestion, "leAnswer" );
    layout13_2->addWidget( leAnswer );
    fraQuestionLayout->addLayout( layout13_2 );
    frame3Layout->addWidget( fraQuestion );

    leMessage = new TQLineEdit( frame3, "leMessage" );
    leMessage->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, leMessage->sizePolicy().hasHeightForWidth() ) );
    leMessage->setMaxLength( 255 );
    leMessage->setAlignment( int( TQLineEdit::AlignAuto ) );
    frame3Layout->addWidget( leMessage );
    EvaAddUIBaseLayout->addWidget( frame3 );

    layout13_3 = new TQHBoxLayout( 0, 10, 6, "layout13_3"); 

    chbReverse = new TQCheckBox( this, "chbReverse" );
    layout13_3->addWidget( chbReverse );
    spacer2 = new TQSpacerItem( 31, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout13_3->addItem( spacer2 );

    btnOk = new TQPushButton( this, "btnOk" );
    layout13_3->addWidget( btnOk );

    btnCancel = new TQPushButton( this, "btnCancel" );
    layout13_3->addWidget( btnCancel );
    EvaAddUIBaseLayout->addLayout( layout13_3 );
    languageChange();
    resize( TQSize(430, 280).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}
Esempio n. 13
0
/*
 *  Constructs a EvaUserInfoWidget as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
EvaUserInfoWidget::EvaUserInfoWidget( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "EvaUserInfoWidget" );
    setEnabled( TRUE );
    setMinimumSize( TQSize( 483, 610 ) );
    setMaximumSize( TQSize( 483, 610 ) );
    setBackgroundOrigin( TQWidget::WidgetOrigin );
    EvaUserInfoWidgetLayout = new TQGridLayout( this, 1, 1, 11, 6, "EvaUserInfoWidgetLayout"); 

    layout191 = new TQGridLayout( 0, 1, 1, 0, 6, "layout191"); 
    spacer18 = new TQSpacerItem( 16, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout191->addItem( spacer18, 0, 1 );

    layout189 = new TQVBoxLayout( 0, 0, 6, "layout189"); 

    layout188 = new TQVBoxLayout( 0, 0, 15, "layout188"); 

    lblBasicInfo = new TQLabel( this, "lblBasicInfo" );
    layout188->addWidget( lblBasicInfo );

    layout187 = new TQHBoxLayout( 0, 0, 6, "layout187"); 

    layout186 = new TQHBoxLayout( 0, 0, 6, "layout186"); 

    layout39 = new TQVBoxLayout( 0, 0, 6, "layout39"); 

    lblRealName = new TQLabel( this, "lblRealName" );
    layout39->addWidget( lblRealName );

    lblNickName = new TQLabel( this, "lblNickName" );
    layout39->addWidget( lblNickName );

    lblAge = new TQLabel( this, "lblAge" );
    layout39->addWidget( lblAge );

    lblArea = new TQLabel( this, "lblArea" );
    layout39->addWidget( lblArea );
    layout186->addLayout( layout39 );

    layout178 = new TQVBoxLayout( 0, 0, 6, "layout178"); 

    leRealName = new TQLineEdit( this, "leRealName" );
    leRealName->setEnabled( TRUE );
    leRealName->setMinimumSize( TQSize( 100, 0 ) );
    leRealName->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    leRealName->setFrameShape( TQLineEdit::Box );
    leRealName->setFrameShadow( TQLineEdit::Plain );
    leRealName->setLineWidth( 1 );
    leRealName->setReadOnly( TRUE );
    layout178->addWidget( leRealName );

    leNickName = new TQLineEdit( this, "leNickName" );
    leNickName->setEnabled( TRUE );
    leNickName->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    leNickName->setFrameShape( TQLineEdit::Box );
    leNickName->setFrameShadow( TQLineEdit::Plain );
    leNickName->setLineWidth( 1 );
    leNickName->setReadOnly( TRUE );
    layout178->addWidget( leNickName );

    leAge = new TQLineEdit( this, "leAge" );
    leAge->setEnabled( TRUE );
    leAge->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    leAge->setFrameShape( TQLineEdit::Box );
    leAge->setFrameShadow( TQLineEdit::Plain );
    leAge->setLineWidth( 1 );
    leAge->setReadOnly( TRUE );
    layout178->addWidget( leAge );

    leArea = new TQLineEdit( this, "leArea" );
    leArea->setEnabled( TRUE );
    leArea->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    leArea->setFrameShape( TQLineEdit::Box );
    leArea->setFrameShadow( TQLineEdit::Plain );
    leArea->setLineWidth( 1 );
    leArea->setReadOnly( TRUE );
    layout178->addWidget( leArea );
    layout186->addLayout( layout178 );
    layout187->addLayout( layout186 );

    layout163 = new TQHBoxLayout( 0, 0, 6, "layout163"); 

    layout64 = new TQVBoxLayout( 0, 0, 6, "layout64"); 

    lblNumber = new TQLabel( this, "lblNumber" );
    layout64->addWidget( lblNumber );

    lblLevel = new TQLabel( this, "lblLevel" );
    layout64->addWidget( lblLevel );

    lblSex = new TQLabel( this, "lblSex" );
    layout64->addWidget( lblSex );

    lblProvince = new TQLabel( this, "lblProvince" );
    layout64->addWidget( lblProvince );
    layout163->addLayout( layout64 );

    layout162 = new TQVBoxLayout( 0, 0, 6, "layout162"); 

    layout161 = new TQHBoxLayout( 0, 0, 6, "layout161"); 

    layout86 = new TQVBoxLayout( 0, 0, 6, "layout86"); 

    layout66 = new TQHBoxLayout( 0, 0, 6, "layout66"); 

    leNumber = new TQLineEdit( this, "leNumber" );
    leNumber->setEnabled( TRUE );
    leNumber->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    leNumber->setFrameShape( TQLineEdit::Box );
    leNumber->setFrameShadow( TQLineEdit::Plain );
    leNumber->setLineWidth( 1 );
    leNumber->setReadOnly( TRUE );
    layout66->addWidget( leNumber );
    layout86->addLayout( layout66 );

    lblLevelDisplay = new TQLabel( this, "lblLevelDisplay" );
    lblLevelDisplay->setEnabled( TRUE );
    layout86->addWidget( lblLevelDisplay );

    layout65 = new TQHBoxLayout( 0, 0, 6, "layout65"); 

    leSex = new TQLineEdit( this, "leSex" );
    leSex->setEnabled( TRUE );
    leSex->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    leSex->setFrameShape( TQLineEdit::Box );
    leSex->setFrameShadow( TQLineEdit::Plain );
    leSex->setLineWidth( 1 );
    leSex->setReadOnly( TRUE );
    layout65->addWidget( leSex );
    layout86->addLayout( layout65 );
    layout161->addLayout( layout86 );

    layout103 = new TQHBoxLayout( 0, 0, 6, "layout103"); 
    spacer17 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout103->addItem( spacer17 );

    lblFace = new TQLabel( this, "lblFace" );
    lblFace->setMinimumSize( TQSize( 46, 46 ) );
    lblFace->setMaximumSize( TQSize( 46, 46 ) );
    lblFace->setFrameShape( TQLabel::Box );
    lblFace->setAlignment( int( TQLabel::AlignCenter ) );
    layout103->addWidget( lblFace );
    spacer24 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout103->addItem( spacer24 );
    layout161->addLayout( layout103 );
    layout162->addLayout( layout161 );

    layout151 = new TQHBoxLayout( 0, 0, 6, "layout151"); 

    leProvince = new TQLineEdit( this, "leProvince" );
    leProvince->setEnabled( TRUE );
    leProvince->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    leProvince->setFrameShape( TQLineEdit::Box );
    leProvince->setFrameShadow( TQLineEdit::Plain );
    leProvince->setLineWidth( 1 );
    leProvince->setReadOnly( TRUE );
    layout151->addWidget( leProvince );

    lblCity = new TQLabel( this, "lblCity" );
    layout151->addWidget( lblCity );

    leCity = new TQLineEdit( this, "leCity" );
    leCity->setEnabled( TRUE );
    leCity->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    leCity->setFrameShape( TQLineEdit::Box );
    leCity->setFrameShadow( TQLineEdit::Plain );
    leCity->setLineWidth( 1 );
    leCity->setReadOnly( TRUE );
    layout151->addWidget( leCity );
    spacer26 = new TQSpacerItem( 50, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout151->addItem( spacer26 );
    layout162->addLayout( layout151 );
    layout163->addLayout( layout162 );
    layout187->addLayout( layout163 );
    layout188->addLayout( layout187 );

    layout156 = new TQHBoxLayout( 0, 0, 6, "layout156"); 

    layout99 = new TQGridLayout( 0, 1, 1, 0, 6, "layout99"); 

    teSignature = new TQTextEdit( this, "teSignature" );
    teSignature->setEnabled( TRUE );
    teSignature->setMinimumSize( TQSize( 0, 50 ) );
    teSignature->setMaximumSize( TQSize( 32767, 50 ) );
    teSignature->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    teSignature->setPaletteBackgroundColor( TQColor( 255, 255, 255 ) );
    teSignature->setFocusPolicy( TQTextEdit::NoFocus );
    teSignature->setFrameShape( TQTextEdit::Box );
    teSignature->setFrameShadow( TQTextEdit::Plain );
    teSignature->setLineWidth( 1 );
    teSignature->setHScrollBarMode( TQTextEdit::AlwaysOff );
    teSignature->setWordWrap( TQTextEdit::WidgetWidth );
    teSignature->setReadOnly( TRUE );

    layout99->addMultiCellWidget( teSignature, 0, 1, 1, 1 );

    lblSignature = new TQLabel( this, "lblSignature" );

    layout99->addWidget( lblSignature, 0, 0 );
    layout156->addLayout( layout99 );
    spacer14_2 = new TQSpacerItem( 71, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout156->addItem( spacer14_2 );
    layout188->addLayout( layout156 );
    layout189->addLayout( layout188 );

    layout144 = new TQGridLayout( 0, 1, 1, 0, 15, "layout144"); 

    layout143 = new TQGridLayout( 0, 1, 1, 0, 6, "layout143"); 

    layout142 = new TQGridLayout( 0, 1, 1, 0, 6, "layout142"); 

    lePhone = new TQLineEdit( this, "lePhone" );
    lePhone->setEnabled( TRUE );
    lePhone->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    lePhone->setFrameShape( TQLineEdit::Box );
    lePhone->setFrameShadow( TQLineEdit::Plain );
    lePhone->setLineWidth( 1 );
    lePhone->setReadOnly( TRUE );

    layout142->addWidget( lePhone, 0, 0 );

    leHomePage = new TQLineEdit( this, "leHomePage" );
    leHomePage->setEnabled( TRUE );
    leHomePage->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    leHomePage->setFrameShape( TQLineEdit::Box );
    leHomePage->setFrameShadow( TQLineEdit::Plain );
    leHomePage->setLineWidth( 1 );
    leHomePage->setReadOnly( TRUE );

    layout142->addMultiCellWidget( leHomePage, 1, 1, 0, 2 );

    lblMobile = new TQLabel( this, "lblMobile" );

    layout142->addWidget( lblMobile, 0, 1 );

    leMobile = new TQLineEdit( this, "leMobile" );
    leMobile->setEnabled( TRUE );
    leMobile->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    leMobile->setFrameShape( TQLineEdit::Box );
    leMobile->setFrameShadow( TQLineEdit::Plain );
    leMobile->setLineWidth( 1 );
    leMobile->setReadOnly( TRUE );

    layout142->addWidget( leMobile, 0, 2 );
    spacer28 = new TQSpacerItem( 41, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout142->addItem( spacer28, 0, 3 );
    spacer29 = new TQSpacerItem( 31, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout142->addItem( spacer29, 1, 3 );

    layout143->addMultiCellLayout( layout142, 2, 2, 0, 1 );
    spacer13_2 = new TQSpacerItem( 180, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout143->addItem( spacer13_2, 1, 1 );

    layout141 = new TQGridLayout( 0, 1, 1, 0, 6, "layout141"); 

    layout139 = new TQHBoxLayout( 0, 0, 6, "layout139"); 

    layout138 = new TQGridLayout( 0, 1, 1, 0, 6, "layout138"); 

    leOccupation = new TQLineEdit( this, "leOccupation" );
    leOccupation->setEnabled( TRUE );
    leOccupation->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    leOccupation->setFrameShape( TQLineEdit::Box );
    leOccupation->setFrameShadow( TQLineEdit::Plain );
    leOccupation->setLineWidth( 1 );
    leOccupation->setReadOnly( TRUE );

    layout138->addWidget( leOccupation, 0, 1 );

    leBlood = new TQLineEdit( this, "leBlood" );
    leBlood->setEnabled( TRUE );
    leBlood->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    leBlood->setFrameShape( TQLineEdit::Box );
    leBlood->setFrameShadow( TQLineEdit::Plain );
    leBlood->setLineWidth( 1 );
    leBlood->setReadOnly( TRUE );

    layout138->addWidget( leBlood, 1, 1 );

    lblBlood = new TQLabel( this, "lblBlood" );

    layout138->addWidget( lblBlood, 1, 0 );

    lblOccupation = new TQLabel( this, "lblOccupation" );

    layout138->addWidget( lblOccupation, 0, 0 );
    layout139->addLayout( layout138 );
    spacer27 = new TQSpacerItem( 30, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout139->addItem( spacer27 );

    layout141->addMultiCellLayout( layout139, 0, 1, 1, 1 );

    leZodiac = new TQLineEdit( this, "leZodiac" );
    leZodiac->setEnabled( TRUE );
    leZodiac->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    leZodiac->setFrameShape( TQLineEdit::Panel );
    leZodiac->setFrameShadow( TQLineEdit::Plain );
    leZodiac->setLineWidth( 1 );
    leZodiac->setReadOnly( TRUE );

    layout141->addWidget( leZodiac, 0, 0 );

    leHoroscape = new TQLineEdit( this, "leHoroscape" );
    leHoroscape->setEnabled( TRUE );
    leHoroscape->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    leHoroscape->setFrameShape( TQLineEdit::Box );
    leHoroscape->setFrameShadow( TQLineEdit::Plain );
    leHoroscape->setLineWidth( 1 );
    leHoroscape->setReadOnly( TRUE );

    layout141->addWidget( leHoroscape, 1, 0 );

    layout143->addMultiCellLayout( layout141, 0, 0, 0, 1 );

    layout30 = new TQVBoxLayout( 0, 0, 6, "layout30"); 

    leSchool = new TQLineEdit( this, "leSchool" );
    leSchool->setEnabled( TRUE );
    leSchool->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    leSchool->setFrameShape( TQLineEdit::Box );
    leSchool->setFrameShadow( TQLineEdit::Plain );
    leSchool->setLineWidth( 1 );
    leSchool->setReadOnly( TRUE );
    layout30->addWidget( leSchool );

    leEmail = new TQLineEdit( this, "leEmail" );
    leEmail->setEnabled( TRUE );
    leEmail->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    leEmail->setFrameShape( TQLineEdit::Box );
    leEmail->setFrameShadow( TQLineEdit::Plain );
    leEmail->setLineWidth( 1 );
    leEmail->setReadOnly( TRUE );
    layout30->addWidget( leEmail );

    leAddress = new TQLineEdit( this, "leAddress" );
    leAddress->setEnabled( TRUE );
    leAddress->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    leAddress->setFrameShape( TQLineEdit::Box );
    leAddress->setFrameShadow( TQLineEdit::Plain );
    leAddress->setLineWidth( 1 );
    leAddress->setReadOnly( TRUE );
    layout30->addWidget( leAddress );

    leZipCode = new TQLineEdit( this, "leZipCode" );
    leZipCode->setEnabled( TRUE );
    leZipCode->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    leZipCode->setFrameShape( TQLineEdit::Box );
    leZipCode->setFrameShadow( TQLineEdit::Plain );
    leZipCode->setLineWidth( 1 );
    leZipCode->setReadOnly( TRUE );
    layout30->addWidget( leZipCode );

    layout143->addLayout( layout30, 1, 0 );

    layout144->addLayout( layout143, 1, 1 );

    layout51 = new TQVBoxLayout( 0, 0, 6, "layout51"); 

    lblZodiac = new TQLabel( this, "lblZodiac" );
    layout51->addWidget( lblZodiac );

    lblHoroscape = new TQLabel( this, "lblHoroscape" );
    layout51->addWidget( lblHoroscape );

    lblSchool = new TQLabel( this, "lblSchool" );
    layout51->addWidget( lblSchool );

    lblEmail = new TQLabel( this, "lblEmail" );
    layout51->addWidget( lblEmail );

    lblAddress = new TQLabel( this, "lblAddress" );
    layout51->addWidget( lblAddress );

    lblZipCode = new TQLabel( this, "lblZipCode" );
    layout51->addWidget( lblZipCode );

    lblPhone = new TQLabel( this, "lblPhone" );
    layout51->addWidget( lblPhone );

    lblHomePage = new TQLabel( this, "lblHomePage" );
    layout51->addWidget( lblHomePage );

    layout144->addLayout( layout51, 1, 0 );

    lblDetails = new TQLabel( this, "lblDetails" );

    layout144->addMultiCellWidget( lblDetails, 0, 0, 0, 1 );
    layout189->addLayout( layout144 );

    layout95 = new TQVBoxLayout( 0, 0, 15, "layout95"); 

    lblDescription = new TQLabel( this, "lblDescription" );
    layout95->addWidget( lblDescription );

    layout94 = new TQGridLayout( 0, 1, 1, 0, 6, "layout94"); 
    spacer16 = new TQSpacerItem( 20, 77, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout94->addItem( spacer16, 1, 0 );
    spacer14_2_2 = new TQSpacerItem( 71, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout94->addItem( spacer14_2_2, 1, 2 );

    teAboutMe = new TQTextEdit( this, "teAboutMe" );
    teAboutMe->setEnabled( TRUE );
    teAboutMe->setMinimumSize( TQSize( 0, 0 ) );
    teAboutMe->setMaximumSize( TQSize( 32767, 100 ) );
    teAboutMe->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    teAboutMe->setPaletteBackgroundColor( TQColor( 255, 255, 255 ) );
    teAboutMe->setFocusPolicy( TQTextEdit::NoFocus );
    teAboutMe->setFrameShape( TQTextEdit::Box );
    teAboutMe->setFrameShadow( TQTextEdit::Plain );
    teAboutMe->setLineWidth( 1 );
    teAboutMe->setHScrollBarMode( TQTextEdit::AlwaysOff );
    teAboutMe->setWordWrap( TQTextEdit::WidgetWidth );
    teAboutMe->setReadOnly( TRUE );

    layout94->addMultiCellWidget( teAboutMe, 0, 1, 1, 1 );

    lblAboutMe = new TQLabel( this, "lblAboutMe" );

    layout94->addWidget( lblAboutMe, 0, 0 );
    layout95->addLayout( layout94 );
    layout189->addLayout( layout95 );

    layout191->addLayout( layout189, 0, 0 );
    spacer31 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout191->addItem( spacer31, 1, 0 );

    EvaUserInfoWidgetLayout->addLayout( layout191, 0, 0 );
    languageChange();
    resize( TQSize(483, 610).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( leRealName, leNickName );
    setTabOrder( leNickName, leAge );
    setTabOrder( leAge, leArea );
    setTabOrder( leArea, leNumber );
    setTabOrder( leNumber, leSex );
    setTabOrder( leSex, leProvince );
    setTabOrder( leProvince, leCity );

    // buddies
    lblRealName->setBuddy( leRealName );
    lblArea->setBuddy( leArea );
    lblNumber->setBuddy( leNumber );
    lblSex->setBuddy( leSex );
    lblProvince->setBuddy( leProvince );
    lblCity->setBuddy( leCity );
    lblMobile->setBuddy( leRealName );
    lblBlood->setBuddy( leRealName );
    lblOccupation->setBuddy( leRealName );
    lblZodiac->setBuddy( leRealName );
    lblHoroscape->setBuddy( leRealName );
    lblSchool->setBuddy( leRealName );
    lblEmail->setBuddy( leRealName );
    lblAddress->setBuddy( leRealName );
    lblZipCode->setBuddy( leRealName );
    lblPhone->setBuddy( leRealName );
    lblHomePage->setBuddy( leRealName );
}
Esempio n. 14
0
/*
 *  Constructs a EvaAddingNoticeUIBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
EvaAddingNoticeUIBase::EvaAddingNoticeUIBase( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
	if ( !name )
		setName( "EvaAddingNoticeUIBase" );
	EvaAddingNoticeUIBaseLayout = new TQGridLayout( this, 1, 1, 11, 6, "EvaAddingNoticeUIBaseLayout"); 
	
	layout15 = new TQVBoxLayout( 0, 0, 6, "layout15"); 
	spacer1 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
	layout15->addItem( spacer1 );
	
	fraMain = new TQFrame( this, "fraMain" );
	fraMain->setPaletteBackgroundColor( TQColor( 234, 247, 225 ) );
	fraMain->setFrameShape( TQFrame::StyledPanel );
	fraMain->setFrameShadow( TQFrame::Raised );
	fraMainLayout = new TQGridLayout( fraMain, 1, 1, 11, 6, "fraMainLayout"); 
	
	layout10 = new TQVBoxLayout( 0, 0, 6, "layout10"); 
	
	layout9 = new TQHBoxLayout( 0, 0, 6, "layout9"); 
	
	layout4 = new TQVBoxLayout( 0, 0, 6, "layout4"); 
	
	lblTitle = new TQLabel( fraMain, "lblTitle" );
	layout4->addWidget( lblTitle );
	
	lblMessageTag = new TQLabel( fraMain, "lblMessageTag" );
	layout4->addWidget( lblMessageTag );
	layout9->addLayout( layout4 );
	spacer3 = new TQSpacerItem( 61, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
	layout9->addItem( spacer3 );
	
	tbFace = new TQToolButton( fraMain, "tbFace" );
	tbFace->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, tbFace->sizePolicy().hasHeightForWidth() ) );
	tbFace->setUsesBigPixmap( TRUE );
	tbFace->setAutoRaise( TRUE );
	layout9->addWidget( tbFace );
	layout10->addLayout( layout9 );
	
	lblMessage = new TQLabel( fraMain, "lblMessage" );
	layout10->addWidget( lblMessage );
	
	fraMainLayout->addLayout( layout10, 0, 0 );
	layout15->addWidget( fraMain );
	
	btngrpActions = new TQButtonGroup( this, "btngrpActions" );
	btngrpActions->setFrameShape( TQButtonGroup::NoFrame );
	btngrpActions->setColumnLayout(0, TQt::Vertical );
	btngrpActions->layout()->setSpacing( 6 );
	btngrpActions->layout()->setMargin( 0 );
	btngrpActionsLayout = new TQGridLayout( btngrpActions->layout() );
	btngrpActionsLayout->setAlignment( TQt::AlignTop );
	
	layout14 = new TQHBoxLayout( 0, 0, 6, "layout14"); 
	
	rbtnAcceptAdd = new TQRadioButton( btngrpActions, "rbtnAcceptAdd" );
	layout14->addWidget( rbtnAcceptAdd );
	
	rbtnAccept = new TQRadioButton( btngrpActions, "rbtnAccept" );
	layout14->addWidget( rbtnAccept );
	
	rbtnReject = new TQRadioButton( btngrpActions, "rbtnReject" );
	layout14->addWidget( rbtnReject );
	
	btngrpActionsLayout->addLayout( layout14, 0, 0 );
	layout15->addWidget( btngrpActions );
	
	fraRejectContents = new TQFrame( this, "fraRejectContents" );
	fraRejectContents->setFrameShape( TQFrame::NoFrame );
	fraRejectContents->setFrameShadow( TQFrame::Raised );
	fraRejectContentsLayout = new TQGridLayout( fraRejectContents, 1, 1, 0, 6, "fraRejectContentsLayout"); 
	
	layout2 = new TQVBoxLayout( 0, 0, 6, "layout2"); 
	
	leRejectMessage = new TQLineEdit( fraRejectContents, "leRejectMessage" );
	layout2->addWidget( leRejectMessage );
	
	chbRejectForever = new TQCheckBox( fraRejectContents, "chbRejectForever" );
	layout2->addWidget( chbRejectForever );
	
	fraRejectContentsLayout->addLayout( layout2, 0, 0 );
	layout15->addWidget( fraRejectContents );
	
	layout3 = new TQHBoxLayout( 0, 0, 6, "layout3"); 
	
	tbtnAuthSettings = new TQToolButton( this, "tbtnAuthSettings" );
	tbtnAuthSettings->setPaletteForegroundColor( TQColor( 85, 0, 255 ) );
	tbtnAuthSettings->setAutoRaise( TRUE );
	layout3->addWidget( tbtnAuthSettings );
	spacer2 = new TQSpacerItem( 21, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
	layout3->addItem( spacer2 );
	
	btnOk = new TQPushButton( this, "btnOk" );
	layout3->addWidget( btnOk );
	
	btnCancel = new TQPushButton( this, "btnCancel" );
	layout3->addWidget( btnCancel );
	layout15->addLayout( layout3 );
	
	EvaAddingNoticeUIBaseLayout->addLayout( layout15, 0, 0 );
	languageChange();
	resize( TQSize(337, 272).expandedTo(minimumSizeHint()) );
	clearWState( WState_Polished );
}
Esempio n. 15
0
/*
 *  Constructs a EvaUserUIBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
EvaUserUIBase::EvaUserUIBase( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "EvaUserUIBase" );
    setMinimumSize( TQSize( 512, 360 ) );
    setMaximumSize( TQSize( 512, 360 ) );

    pbUpdate = new TQPushButton( this, "pbUpdate" );
    pbUpdate->setGeometry( TQRect( 330, 330, 69, 24 ) );

    pbClose = new TQPushButton( this, "pbClose" );
    pbClose->setGeometry( TQRect( 430, 330, 69, 24 ) );

    lblText = new TQLabel( this, "lblText" );
    lblText->setGeometry( TQRect( 10, 330, 200, 19 ) );

    twTabMain = new TQTabWidget( this, "twTabMain" );
    twTabMain->setGeometry( TQRect( 5, 5, 501, 320 ) );
    twTabMain->setMargin( 10 );

    svMain = new TQScrollView( twTabMain, "svMain" );
    svMain->setStaticBackground ( TRUE );
    svMain->setHScrollBarMode(TQScrollView::AlwaysOff);
    svMain->setFrameShape(TQFrame::NoFrame);
    
    qwUserInfo = new EvaUserInfoWidget( svMain, "qwUserInfo");
    svMain->addChild( qwUserInfo );
    
    twTabMain->insertTab( svMain, TQString("") );
   
    //TQQShow Widget For TabWidget
    tabTQQShow = new TQWidget( twTabMain, "tabTQQShow" );
    ///////////////////////////////////////////////////////////////////////
    //lblTQQShowBar = new TQLabel( tabTQQShow, "lblTQQShowBar" );
    //lblTQQShowBar->setGeometry( TQRect( 0, 10, 480, 16 ) );
    
    TQWidget* privateLayoutWidget = new TQWidget( tabTQQShow, "layout13" );
    privateLayoutWidget->setGeometry( TQRect( 10, -15, 350, 290 ) );
    layout13 = new TQGridLayout( privateLayoutWidget, 1, 1, 11, 6, "layout13"); 

    lblTQQShow = new TQLabel( privateLayoutWidget, "lblTQQShow" );
    lblTQQShow->setMinimumSize( TQSize( 147, 233 ) );
    lblTQQShow->setMaximumSize( TQSize( 147, 233 ) );
    lblTQQShow->setFrameShape( TQLabel::Box );
    lblTQQShow->setPaletteBackgroundColor( TQColor( 255, 255, 255 ) );
    lblTQQShow->setScaledContents( FALSE );
    lblTQQShow->setAlignment( int( TQLabel::AlignCenter ) );

    layout13->addWidget( lblTQQShow, 0, 0 );
    spacer6 = new TQSpacerItem( 23, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout13->addItem( spacer6, 0, 1 );

    layout12 = new TQGridLayout( 0, 1, 1, 0, 6, "layout12"); 
    spacer5 = new TQSpacerItem( 20, 80, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout12->addItem( spacer5, 4, 0 );
    spacer7 = new TQSpacerItem( 20, 42, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout12->addItem( spacer7, 6, 0 );
    spacer8 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout12->addItem( spacer8, 0, 0 );

    tbtnAlbum = new TQToolButton( privateLayoutWidget, "tbtnAlbum" );
    tbtnAlbum->setPaletteForegroundColor( TQColor( 0, 0, 255 ) );
    tbtnAlbum->setCursor( TQCursor( 13 ) );
    tbtnAlbum->setAutoRaise( TRUE );
    tbtnAlbum->setUsesTextLabel( TRUE );
    tbtnAlbum->setTextPosition( TQToolButton::BesideIcon );

    layout12->addWidget( tbtnAlbum, 2, 0 );

    kpbUpdateShow = new KPushButton( privateLayoutWidget, "kpbUpdateShow" );

    layout12->addWidget( kpbUpdateShow, 5, 0 );

    tbtnShop = new TQToolButton( privateLayoutWidget, "tbtnShop" );
    tbtnShop->setPaletteForegroundColor( TQColor( 0, 0, 255 ) );
    tbtnShop->setCursor( TQCursor( 13 ) );
    tbtnShop->setAutoRaise( TRUE );
    tbtnShop->setUsesTextLabel( TRUE );
    tbtnShop->setTextPosition( TQToolButton::BesideIcon );


    layout12->addWidget( tbtnShop, 1, 0 );

    layout13->addLayout( layout12, 0, 2 );
    twTabMain->insertTab( tabTQQShow, TQString("") );
    ///////////////////////////////////////////////////////////////////////
    //Memo Widget
    TabMemo = new TQWidget( twTabMain, "TabMemo" );
    TabMemoLayout = new TQGridLayout( TabMemo, 1, 1, 11, 6, "TabMemoLayout"); 
    spacer30 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    TabMemoLayout->addItem( spacer30, 1, 0 );
    spacer29 = new TQSpacerItem( 91, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    TabMemoLayout->addItem( spacer29, 0, 1 );

    layout117 = new TQVBoxLayout( 0, 0, 6, "layout117"); 

    layout100 = new TQHBoxLayout( 0, 0, 6, "layout100"); 

    layout97 = new TQVBoxLayout( 0, 0, 6, "layout97"); 

    lblMemoName = new TQLabel( TabMemo, "lblMemoName" );
    layout97->addWidget( lblMemoName );

    lblMemoMobile = new TQLabel( TabMemo, "lblMemoMobile" );
    layout97->addWidget( lblMemoMobile );

    lblMemoAddress = new TQLabel( TabMemo, "lblMemoAddress" );
    layout97->addWidget( lblMemoAddress );

    lblMemoEmail = new TQLabel( TabMemo, "lblMemoEmail" );
    layout97->addWidget( lblMemoEmail );
    layout100->addLayout( layout97 );

    layout99 = new TQVBoxLayout( 0, 0, 6, "layout99"); 

    layout98 = new TQHBoxLayout( 0, 0, 6, "layout98"); 

    layout80 = new TQVBoxLayout( 0, 0, 6, "layout80"); 

    leMemoName = new TQLineEdit( TabMemo, "leMemoName" );
    leMemoName->setFrameShape( TQLineEdit::Box );
    leMemoName->setFrameShadow( TQLineEdit::Plain );
    leMemoName->setLineWidth( 1 );
    layout80->addWidget( leMemoName );

    leMemoMobile = new TQLineEdit( TabMemo, "leMemoMobile" );
    leMemoMobile->setFrameShape( TQLineEdit::Box );
    leMemoMobile->setFrameShadow( TQLineEdit::Plain );
    leMemoMobile->setLineWidth( 1 );
    layout80->addWidget( leMemoMobile );
    layout98->addLayout( layout80 );

    layout81 = new TQVBoxLayout( 0, 0, 6, "layout81"); 

    lblMemoTelephone = new TQLabel( TabMemo, "lblMemoTelephone" );
    layout81->addWidget( lblMemoTelephone );

    lblMemoZipCode = new TQLabel( TabMemo, "lblMemoZipCode" );
    layout81->addWidget( lblMemoZipCode );
    layout98->addLayout( layout81 );

    layout82 = new TQVBoxLayout( 0, 0, 6, "layout82"); 

    leMemoTelephone = new TQLineEdit( TabMemo, "leMemoTelephone" );
    leMemoTelephone->setFrameShape( TQLineEdit::Box );
    leMemoTelephone->setFrameShadow( TQLineEdit::Plain );
    leMemoTelephone->setLineWidth( 1 );
    layout82->addWidget( leMemoTelephone );

    leMemoZipCode = new TQLineEdit( TabMemo, "leMemoZipCode" );
    leMemoZipCode->setFrameShape( TQLineEdit::Box );
    leMemoZipCode->setFrameShadow( TQLineEdit::Plain );
    leMemoZipCode->setLineWidth( 1 );
    layout82->addWidget( leMemoZipCode );
    layout98->addLayout( layout82 );
    layout99->addLayout( layout98 );

    layout86 = new TQVBoxLayout( 0, 0, 6, "layout86"); 

    leMemoAddress = new TQLineEdit( TabMemo, "leMemoAddress" );
    leMemoAddress->setFrameShape( TQLineEdit::Box );
    leMemoAddress->setFrameShadow( TQLineEdit::Plain );
    leMemoAddress->setLineWidth( 1 );
    layout86->addWidget( leMemoAddress );

    leMemoEmail = new TQLineEdit( TabMemo, "leMemoEmail" );
    leMemoEmail->setFrameShape( TQLineEdit::Box );
    leMemoEmail->setFrameShadow( TQLineEdit::Plain );
    leMemoEmail->setLineWidth( 1 );
    layout86->addWidget( leMemoEmail );
    layout99->addLayout( layout86 );
    layout100->addLayout( layout99 );
    layout117->addLayout( layout100 );

    layout112 = new TQHBoxLayout( 0, 0, 6, "layout112"); 

    layout111 = new TQVBoxLayout( 0, 0, 6, "layout111"); 

    lblMemoNote = new TQLabel( TabMemo, "lblMemoNote" );
    layout111->addWidget( lblMemoNote );
    spacer32 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout111->addItem( spacer32 );
    layout112->addLayout( layout111 );

    teMemoNote = new TQTextEdit( TabMemo, "teMemoNote" );
    teMemoNote->setMinimumSize( TQSize( 0, 50 ) );
    teMemoNote->setMaximumSize( TQSize( 32767, 50 ) );
    teMemoNote->setFrameShape( TQTextEdit::Box );
    teMemoNote->setFrameShadow( TQTextEdit::Plain );
    teMemoNote->setLineWidth( 1 );
    layout112->addWidget( teMemoNote );
    layout117->addLayout( layout112 );
    spacer38 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout117->addItem( spacer38 );

    layout116 = new TQHBoxLayout( 0, 0, 6, "layout116"); 
    spacer34 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout116->addItem( spacer34 );

    chbAutoUploadMemo = new TQCheckBox( TabMemo, "chbAutoUploadMemo" );
    layout116->addWidget( chbAutoUploadMemo );
    spacer33 = new TQSpacerItem( 61, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout116->addItem( spacer33 );

    pbDownloadMemo = new TQPushButton( TabMemo, "pbDownloadMemo" );
    layout116->addWidget( pbDownloadMemo );
    layout117->addLayout( layout116 );

    TabMemoLayout->addLayout( layout117, 0, 0 );
    twTabMain->insertTab( TabMemo, TQString("") );

    //////////////////////////////////////////////////////////////////////
    
    languageChange();
    resize( TQSize(512, 345).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}
Esempio n. 16
0
EvaNotifyUIBase::EvaNotifyUIBase( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
	if ( !name )
		setName( "EvaNotifyUIBase" );
	EvaNotifyUIBaseLayout = new TQGridLayout( this, 1, 1, 1, 0, "EvaNotifyUIBaseLayout"); 
	
	layout62 = new TQVBoxLayout( 0, 0, 6, "layout62"); 
	
	gbFrom = new TQGroupBox( this, "gbFrom" );
	gbFrom->setMaximumSize( TQSize( 32767, 60 ) );
	gbFrom->setFrameShape( TQGroupBox::GroupBoxPanel );
	gbFrom->setFrameShadow( TQGroupBox::Sunken );
	gbFrom->setColumnLayout(0, TQt::Vertical );
	gbFrom->layout()->setSpacing( 0 );
	gbFrom->layout()->setMargin( 5 );
	gbFromLayout = new TQGridLayout( gbFrom->layout() );
	gbFromLayout->setAlignment( TQt::AlignTop );
	
	layout49 = new TQHBoxLayout( 0, 0, 0, "layout49"); 
	
	textLabel1 = new TQLabel( gbFrom, "textLabel1" );
	layout49->addWidget( textLabel1 );
	
	tlQQ = new TQLabel( gbFrom, "tlQQ" );
	tlQQ->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, tlQQ->sizePolicy().hasHeightForWidth() ) );
	tlQQ->setMaximumSize( TQSize( 90, 25 ) );
	tlQQ->setPaletteBackgroundColor( TQColor( 200, 238, 196 ) );
	tlQQ->setFrameShape( TQLabel::Panel );
	tlQQ->setFrameShadow( TQLabel::Sunken );
	layout49->addWidget( tlQQ );
	spacer14 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
	layout49->addItem( spacer14 );
	
	textLabel2 = new TQLabel( gbFrom, "textLabel2" );
	layout49->addWidget( textLabel2 );
	
	tlNick = new TQLabel( gbFrom, "tlNick" );
	tlNick->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, tlNick->sizePolicy().hasHeightForWidth() ) );
	tlNick->setMaximumSize( TQSize( 90, 25 ) );
	tlNick->setPaletteBackgroundColor( TQColor( 200, 238, 196 ) );
	tlNick->setFrameShape( TQLabel::Panel );
	tlNick->setFrameShadow( TQLabel::Sunken );
	layout49->addWidget( tlNick );
	spacer13 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
	layout49->addItem( spacer13 );
	
	textLabel3 = new TQLabel( gbFrom, "textLabel3" );
	textLabel3->setMaximumSize( TQSize( 50, 32767 ) );
	textLabel3->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
	layout49->addWidget( textLabel3 );
	
	tbDetails = new TQToolButton( gbFrom, "tbDetails" );
	tbDetails->setUsesBigPixmap( TRUE );
	tbDetails->setAutoRaise( TRUE );
	layout49->addWidget( tbDetails );
	
	gbFromLayout->addLayout( layout49, 0, 0 );
	layout62->addWidget( gbFrom );
	
	gbMain = new TQGroupBox( this, "gbMain" );
	gbMain->setColumnLayout(0, TQt::Vertical );
	gbMain->layout()->setSpacing( 3 );
	gbMain->layout()->setMargin( 5 );
	gbMainLayout = new TQGridLayout( gbMain->layout() );
	gbMainLayout->setAlignment( TQt::AlignTop );
	
	wsMain = new TQWidgetStack( gbMain, "wsMain" );
	
	WStackPage = new TQWidget( wsMain, "WStackPage" );
	WStackPageLayout = new TQGridLayout( WStackPage, 1, 1, 11, 6, "WStackPageLayout"); 
	
	tlP0Tip = new TQLabel( WStackPage, "tlP0Tip" );
	tlP0Tip->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
	
	WStackPageLayout->addWidget( tlP0Tip, 0, 0 );
	wsMain->addWidget( WStackPage, 0 );
	
	WStackPage_2 = new TQWidget( wsMain, "WStackPage_2" );
	WStackPageLayout_2 = new TQGridLayout( WStackPage_2, 1, 1, 11, 6, "WStackPageLayout_2"); 
	
	layout54 = new TQHBoxLayout( 0, 0, 6, "layout54"); 
	
	tlP1Tip = new TQLabel( WStackPage_2, "tlP1Tip" );
	tlP1Tip->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
	layout54->addWidget( tlP1Tip );
	
	teP1Msg = new TQTextEdit( WStackPage_2, "teP1Msg" );
	teP1Msg->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, teP1Msg->sizePolicy().hasHeightForWidth() ) );
	teP1Msg->setMaximumSize( TQSize( 150, 60 ) );
	teP1Msg->setTextFormat( TQTextEdit::PlainText );
	layout54->addWidget( teP1Msg );
	
	WStackPageLayout_2->addLayout( layout54, 0, 0 );
	wsMain->addWidget( WStackPage_2, 1 );
	
	gbMainLayout->addWidget( wsMain, 0, 0 );
	layout62->addWidget( gbMain );
	
	layout52 = new TQHBoxLayout( 0, 0, 6, "layout52"); 
	
	pbApprove = new TQPushButton( this, "pbApprove" );
	pbApprove->setMaximumSize( TQSize( 70, 32767 ) );
	layout52->addWidget( pbApprove );
	
	pbReject = new TQPushButton( this, "pbReject" );
	pbReject->setMaximumSize( TQSize( 70, 32767 ) );
	layout52->addWidget( pbReject );
	spacer15 = new TQSpacerItem( 60, 20, TQSizePolicy::Preferred, TQSizePolicy::Minimum );
	layout52->addItem( spacer15 );
	
	pbAdd = new TQPushButton( this, "pbAdd" );
	pbAdd->setMaximumSize( TQSize( 70, 32767 ) );
	layout52->addWidget( pbAdd );
	
	pbClose = new TQPushButton( this, "pbClose" );
	pbClose->setMaximumSize( TQSize( 70, 32767 ) );
	layout52->addWidget( pbClose );
	layout62->addLayout( layout52 );
	
	EvaNotifyUIBaseLayout->addLayout( layout62, 0, 0 );
	languageChange();
	resize( TQSize(372, 249).expandedTo(minimumSizeHint()) );
	clearWState( WState_Polished );
	
}
Esempio n. 17
0
/*
 *  Constructs a CustomFaceManagerUI as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
CustomFaceManagerUI::CustomFaceManagerUI( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    TQImage img;
    img.loadFromData( image0_data, sizeof( image0_data ), "PNG" );
    image0 = img;
    img.loadFromData( image1_data, sizeof( image1_data ), "PNG" );
    image1 = img;
    img.loadFromData( image2_data, sizeof( image2_data ), "PNG" );
    image2 = img;
    if ( !name )
	setName( "CustomFaceManagerUI" );
    CustomFaceManagerUILayout = new TQGridLayout( this, 1, 1, 3, 0, "CustomFaceManagerUILayout"); 

    layout9 = new TQVBoxLayout( 0, 0, 6, "layout9"); 

    frame7 = new TQFrame( this, "frame7" );
    frame7->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, frame7->sizePolicy().hasHeightForWidth() ) );
    frame7->setFrameShape( TQFrame::TabWidgetPanel );
    frame7->setFrameShadow( TQFrame::Raised );
    frame7Layout = new TQGridLayout( frame7, 1, 1, 2, 0, "frame7Layout"); 

    layout1 = new TQHBoxLayout( 0, 0, 6, "layout1"); 

    tbtnImport = new TQToolButton( frame7, "tbtnImport" );
    tbtnImport->setAutoRaise( TRUE );
    layout1->addWidget( tbtnImport );

    tbtnExport = new TQToolButton( frame7, "tbtnExport" );
    tbtnExport->setAutoRaise( TRUE );
    layout1->addWidget( tbtnExport );

    tbtnAddGroup = new TQToolButton( frame7, "tbtnAddGroup" );
    tbtnAddGroup->setIconSet( TQIconSet( image0 ) );
    tbtnAddGroup->setUsesTextLabel( TRUE );
    tbtnAddGroup->setAutoRaise( TRUE );
    tbtnAddGroup->setTextPosition( TQToolButton::BesideIcon );
    layout1->addWidget( tbtnAddGroup );

    tbtnEditGroup = new TQToolButton( frame7, "tbtnEditGroup" );
    tbtnEditGroup->setIconSet( TQIconSet( image1 ) );
    tbtnEditGroup->setUsesTextLabel( TRUE );
    tbtnEditGroup->setAutoRaise( TRUE );
    tbtnEditGroup->setTextPosition( TQToolButton::BesideIcon );
    layout1->addWidget( tbtnEditGroup );

    tbtnRemoveGroup = new TQToolButton( frame7, "tbtnRemoveGroup" );
    tbtnRemoveGroup->setIconSet( TQIconSet( image2 ) );
    tbtnRemoveGroup->setUsesBigPixmap( TRUE );
    tbtnRemoveGroup->setUsesTextLabel( TRUE );
    tbtnRemoveGroup->setAutoRaise( TRUE );
    tbtnRemoveGroup->setTextPosition( TQToolButton::BesideIcon );
    layout1->addWidget( tbtnRemoveGroup );

    frame7Layout->addLayout( layout1, 0, 0 );
    layout9->addWidget( frame7 );

    layout7 = new TQHBoxLayout( 0, 0, 6, "layout7"); 

    frame6 = new TQFrame( this, "frame6" );
    frame6->setPaletteForegroundColor( TQColor( 0, 124, 206 ) );
    frame6->setFrameShape( TQFrame::Box );
    frame6->setFrameShadow( TQFrame::Plain );
    frame6Layout = new TQGridLayout( frame6, 1, 1, 1, 0, "frame6Layout"); 

    lvGroups = new TQListView( frame6, "lvGroups" );
    lvGroups->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, lvGroups->sizePolicy().hasHeightForWidth() ) );
    lvGroups->setMinimumSize( TQSize( 100, 0 ) );
    lvGroups->setMaximumSize( TQSize( 250, 32767 ) );
    lvGroups->setFrameShape( TQListView::NoFrame );
    lvGroups->setFrameShadow( TQListView::Plain );
    lvGroups->setLineWidth( 1 );
    lvGroups->setHScrollBarMode( TQListView::AlwaysOff );
    lvGroups->setSorting( -1 ); // don't sort

    frame6Layout->addWidget( lvGroups, 0, 0 );
    layout7->addWidget( frame6 );

    frmMain = new TQFrame( this, "frmMain" );
    frmMain->setPaletteForegroundColor( TQColor( 0, 124, 206 ) );
    frmMain->setPaletteBackgroundColor( TQColor( 255, 255, 255 ) );
    frmMain->setFrameShape( TQFrame::Box );
    frmMain->setFrameShadow( TQFrame::Plain );
    frmMainLayout = new TQGridLayout( frmMain, 1, 1, 11, 6, "frmMainLayout"); 

    layout6 = new TQHBoxLayout( 0, 0, 6, "layout6"); 

    tblFaceList = new TQTable( frmMain, "tblFaceList" );
    tblFaceList->setNumCols( tblFaceList->numCols() + 1 );
    tblFaceList->horizontalHeader()->setLabel( tblFaceList->numCols() - 1, i18n("No." ) );
    tblFaceList->setNumCols( tblFaceList->numCols() + 1 );
    tblFaceList->horizontalHeader()->setLabel( tblFaceList->numCols() - 1, i18n("Smiley" ) );
    tblFaceList->setNumCols( tblFaceList->numCols() + 1 );
    tblFaceList->horizontalHeader()->setLabel( tblFaceList->numCols() - 1, i18n("Shortcut" ) );
    tblFaceList->setFrameShape( TQTable::GroupBoxPanel );
    tblFaceList->setFrameShadow( TQTable::Plain );
    tblFaceList->setHScrollBarMode( TQTable::AlwaysOff );
    tblFaceList->setNumRows( 0 );
    tblFaceList->setNumCols( 3 );
    tblFaceList->setSelectionMode( TQTable::MultiRow );
    tblFaceList->setFocusStyle( TQTable::FollowStyle );
    layout6->addWidget( tblFaceList );

    layout5 = new TQVBoxLayout( 0, 0, 6, "layout5"); 

    btnAdd = new TQPushButton( frmMain, "btnAdd" );
    layout5->addWidget( btnAdd );

    btnRemove = new TQPushButton( frmMain, "btnRemove" );
    layout5->addWidget( btnRemove );

    btnEdit = new TQPushButton( frmMain, "btnEdit" );
    layout5->addWidget( btnEdit );

    btnUp = new TQPushButton( frmMain, "btnUp" );
    layout5->addWidget( btnUp );

    btnDown = new TQPushButton( frmMain, "btnDown" );
    layout5->addWidget( btnDown );

    btnMoveTo = new TQPushButton( frmMain, "btnMoveTo" );
    layout5->addWidget( btnMoveTo );
    spacer1 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout5->addItem( spacer1 );

    lblPreview = new TQLabel( frmMain, "lblPreview" );
    lblPreview->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, lblPreview->sizePolicy().hasHeightForWidth() ) );
    lblPreview->setMinimumSize( TQSize( 100, 85 ) );
    lblPreview->setMaximumSize( TQSize( 100, 85 ) );
    lblPreview->setPaletteForegroundColor( TQColor( 0, 124, 206 ) );
    lblPreview->setFrameShape( TQLabel::Box );
    layout5->addWidget( lblPreview );
    layout6->addLayout( layout5 );

    frmMainLayout->addLayout( layout6, 0, 0 );
    layout7->addWidget( frmMain );
    layout9->addLayout( layout7 );

    layout8 = new TQHBoxLayout( 0, 0, 6, "layout8"); 
    spacer2 = new TQSpacerItem( 91, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout8->addItem( spacer2 );

    btnOK = new TQPushButton( this, "btnOK" );
    layout8->addWidget( btnOK );

    btnCancel = new TQPushButton( this, "btnCancel" );
    layout8->addWidget( btnCancel );
    layout9->addLayout( layout8 );

    CustomFaceManagerUILayout->addLayout( layout9, 0, 0 );
    languageChange();
    resize( TQSize(521, 382).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    TQRect scr = TDEApplication::desktop()->screenGeometry();
    move(scr.center()-rect().center());
}