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

tb_window_base.cc

/***************************************************************************
                         -- tb_window_base.cc --
                         -------------------
    begin                : 2001-09-01
    copyright            : (C) 2001 - 2002
    authors              : Jason Kasper (vanRijn)
                         : Ben Jansens (xOr)
    URL                  : http://bbconf.sourceforge.net
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
 // E_O_H_VR
/****************************************************************************
** Form implementation generated from reading ui file 'ui/tb_window_base.ui'
**
** Created: Wed Aug 22 19:24:36 2001
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "tb_window_base.h"

#include <qgroupbox.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qspinbox.h>
#include <qtabwidget.h>
#include "color.h"
#include "tbwidg_basic.h"
#include "tbwidg_piccolor.h"
#include "tbwidg_textcolor.h"
#include "tbwidg_textsel.h"
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a ToolboxWindowBase which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f' 
 */
ToolboxWindowBase::ToolboxWindowBase( QWidget* parent,  const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
      setName( "ToolboxWindowBase" );
    resize( 554, 494 ); 
    setCaption( tr( "Window Settings" ) );
    ToolboxWindowBaseLayout = new QVBoxLayout( this ); 
    ToolboxWindowBaseLayout->setSpacing( 5 );
    ToolboxWindowBaseLayout->setMargin( 5 );

    tab_top = new QTabWidget( this, "tab_top" );

    tab = new QWidget( tab_top, "tab" );
    tabLayout = new QVBoxLayout( tab ); 
    tabLayout->setSpacing( 5 );
    tabLayout->setMargin( 5 );

    GroupBox2_4_2 = new QGroupBox( tab, "GroupBox2_4_2" );
    GroupBox2_4_2->setTitle( tr( "Focused Button" ) );
    GroupBox2_4_2->setColumnLayout(0, Qt::Vertical );
    GroupBox2_4_2->layout()->setSpacing( 0 );
    GroupBox2_4_2->layout()->setMargin( 0 );
    GroupBox2_4_2Layout = new QVBoxLayout( GroupBox2_4_2->layout() );
    GroupBox2_4_2Layout->setAlignment( Qt::AlignTop );
    GroupBox2_4_2Layout->setSpacing( 6 );
    GroupBox2_4_2Layout->setMargin( 11 );

    win_button_focus = new TWPicColor( GroupBox2_4_2, "win_button_focus" );
    GroupBox2_4_2Layout->addWidget( win_button_focus );
    tabLayout->addWidget( GroupBox2_4_2 );

    GroupBox2_4_2_2 = new QGroupBox( tab, "GroupBox2_4_2_2" );
    GroupBox2_4_2_2->setTitle( tr( "Unfocused Button" ) );
    GroupBox2_4_2_2->setColumnLayout(0, Qt::Vertical );
    GroupBox2_4_2_2->layout()->setSpacing( 0 );
    GroupBox2_4_2_2->layout()->setMargin( 0 );
    GroupBox2_4_2_2Layout = new QVBoxLayout( GroupBox2_4_2_2->layout() );
    GroupBox2_4_2_2Layout->setAlignment( Qt::AlignTop );
    GroupBox2_4_2_2Layout->setSpacing( 6 );
    GroupBox2_4_2_2Layout->setMargin( 11 );

    win_button_unfocus = new TWPicColor( GroupBox2_4_2_2, "win_button_unfocus" );
    GroupBox2_4_2_2Layout->addWidget( win_button_unfocus );
    tabLayout->addWidget( GroupBox2_4_2_2 );
    tab_top->insertTab( tab, tr( "Button" ) );

    tab_2 = new QWidget( tab_top, "tab_2" );
    tabLayout_2 = new QVBoxLayout( tab_2 ); 
    tabLayout_2->setSpacing( 5 );
    tabLayout_2->setMargin( 5 );

    GroupBox2_4_4 = new QGroupBox( tab_2, "GroupBox2_4_4" );
    GroupBox2_4_4->setTitle( tr( "Focused Window Grip" ) );
    GroupBox2_4_4->setColumnLayout(0, Qt::Vertical );
    GroupBox2_4_4->layout()->setSpacing( 0 );
    GroupBox2_4_4->layout()->setMargin( 0 );
    GroupBox2_4_4Layout = new QVBoxLayout( GroupBox2_4_4->layout() );
    GroupBox2_4_4Layout->setAlignment( Qt::AlignTop );
    GroupBox2_4_4Layout->setSpacing( 6 );
    GroupBox2_4_4Layout->setMargin( 11 );

    win_grip_focus = new TWBasic( GroupBox2_4_4, "win_grip_focus" );
    GroupBox2_4_4Layout->addWidget( win_grip_focus );
    tabLayout_2->addWidget( GroupBox2_4_4 );

    GroupBox2_4_4_2 = new QGroupBox( tab_2, "GroupBox2_4_4_2" );
    GroupBox2_4_4_2->setTitle( tr( "Unfocused Window Grip" ) );
    GroupBox2_4_4_2->setColumnLayout(0, Qt::Vertical );
    GroupBox2_4_4_2->layout()->setSpacing( 0 );
    GroupBox2_4_4_2->layout()->setMargin( 0 );
    GroupBox2_4_4_2Layout = new QVBoxLayout( GroupBox2_4_4_2->layout() );
    GroupBox2_4_4_2Layout->setAlignment( Qt::AlignTop );
    GroupBox2_4_4_2Layout->setSpacing( 6 );
    GroupBox2_4_4_2Layout->setMargin( 11 );

    win_grip_unfocus = new TWBasic( GroupBox2_4_4_2, "win_grip_unfocus" );
    GroupBox2_4_4_2Layout->addWidget( win_grip_unfocus );
    tabLayout_2->addWidget( GroupBox2_4_4_2 );
    tab_top->insertTab( tab_2, tr( "Grip" ) );

    tab_3 = new QWidget( tab_top, "tab_3" );
    tabLayout_3 = new QVBoxLayout( tab_3 ); 
    tabLayout_3->setSpacing( 5 );
    tabLayout_3->setMargin( 5 );

    GroupBox2_4_4_3 = new QGroupBox( tab_3, "GroupBox2_4_4_3" );
    GroupBox2_4_4_3->setTitle( tr( "Focused Window Handle" ) );
    GroupBox2_4_4_3->setColumnLayout(0, Qt::Vertical );
    GroupBox2_4_4_3->layout()->setSpacing( 0 );
    GroupBox2_4_4_3->layout()->setMargin( 0 );
    GroupBox2_4_4_3Layout = new QVBoxLayout( GroupBox2_4_4_3->layout() );
    GroupBox2_4_4_3Layout->setAlignment( Qt::AlignTop );
    GroupBox2_4_4_3Layout->setSpacing( 6 );
    GroupBox2_4_4_3Layout->setMargin( 11 );

    win_handle_focus = new TWBasic( GroupBox2_4_4_3, "win_handle_focus" );
    GroupBox2_4_4_3Layout->addWidget( win_handle_focus );
    tabLayout_3->addWidget( GroupBox2_4_4_3 );

    GroupBox2_4_4_3_2 = new QGroupBox( tab_3, "GroupBox2_4_4_3_2" );
    GroupBox2_4_4_3_2->setTitle( tr( "Unfocused Window Handle" ) );
    GroupBox2_4_4_3_2->setColumnLayout(0, Qt::Vertical );
    GroupBox2_4_4_3_2->layout()->setSpacing( 0 );
    GroupBox2_4_4_3_2->layout()->setMargin( 0 );
    GroupBox2_4_4_3_2Layout = new QVBoxLayout( GroupBox2_4_4_3_2->layout() );
    GroupBox2_4_4_3_2Layout->setAlignment( Qt::AlignTop );
    GroupBox2_4_4_3_2Layout->setSpacing( 6 );
    GroupBox2_4_4_3_2Layout->setMargin( 11 );

    win_handle_unfocus = new TWBasic( GroupBox2_4_4_3_2, "win_handle_unfocus" );
    GroupBox2_4_4_3_2Layout->addWidget( win_handle_unfocus );
    tabLayout_3->addWidget( GroupBox2_4_4_3_2 );
    tab_top->insertTab( tab_3, tr( "Handle" ) );

    tab_4 = new QWidget( tab_top, "tab_4" );
    tabLayout_4 = new QVBoxLayout( tab_4 ); 
    tabLayout_4->setSpacing( 5 );
    tabLayout_4->setMargin( 5 );

    GroupBox2_3_3_2_2 = new QGroupBox( tab_4, "GroupBox2_3_3_2_2" );
    GroupBox2_3_3_2_2->setTitle( tr( "Focused Window Label Settings" ) );
    GroupBox2_3_3_2_2->setColumnLayout(0, Qt::Vertical );
    GroupBox2_3_3_2_2->layout()->setSpacing( 0 );
    GroupBox2_3_3_2_2->layout()->setMargin( 0 );
    GroupBox2_3_3_2_2Layout = new QVBoxLayout( GroupBox2_3_3_2_2->layout() );
    GroupBox2_3_3_2_2Layout->setAlignment( Qt::AlignTop );
    GroupBox2_3_3_2_2Layout->setSpacing( 6 );
    GroupBox2_3_3_2_2Layout->setMargin( 11 );

    win_label_focus = new TWTextSelect( GroupBox2_3_3_2_2, "win_label_focus" );
    GroupBox2_3_3_2_2Layout->addWidget( win_label_focus );
    tabLayout_4->addWidget( GroupBox2_3_3_2_2 );

    GroupBox2_3_3_2_2_2 = new QGroupBox( tab_4, "GroupBox2_3_3_2_2_2" );
    GroupBox2_3_3_2_2_2->setTitle( tr( "Unfocused Window Label Settings" ) );
    GroupBox2_3_3_2_2_2->setColumnLayout(0, Qt::Vertical );
    GroupBox2_3_3_2_2_2->layout()->setSpacing( 0 );
    GroupBox2_3_3_2_2_2->layout()->setMargin( 0 );
    GroupBox2_3_3_2_2_2Layout = new QVBoxLayout( GroupBox2_3_3_2_2_2->layout() );
    GroupBox2_3_3_2_2_2Layout->setAlignment( Qt::AlignTop );
    GroupBox2_3_3_2_2_2Layout->setSpacing( 6 );
    GroupBox2_3_3_2_2_2Layout->setMargin( 11 );

    win_label_unfocus = new TWText( GroupBox2_3_3_2_2_2, "win_label_unfocus" );
    GroupBox2_3_3_2_2_2Layout->addWidget( win_label_unfocus );
    tabLayout_4->addWidget( GroupBox2_3_3_2_2_2 );
    tab_top->insertTab( tab_4, tr( "Label" ) );

    tab_5 = new QWidget( tab_top, "tab_5" );
    tabLayout_5 = new QVBoxLayout( tab_5 ); 
    tabLayout_5->setSpacing( 5 );
    tabLayout_5->setMargin( 5 );

    GroupBox2_4_4_3_3 = new QGroupBox( tab_5, "GroupBox2_4_4_3_3" );
    GroupBox2_4_4_3_3->setTitle( tr( "Focused Window Title" ) );
    GroupBox2_4_4_3_3->setColumnLayout(0, Qt::Vertical );
    GroupBox2_4_4_3_3->layout()->setSpacing( 0 );
    GroupBox2_4_4_3_3->layout()->setMargin( 0 );
    GroupBox2_4_4_3_3Layout = new QVBoxLayout( GroupBox2_4_4_3_3->layout() );
    GroupBox2_4_4_3_3Layout->setAlignment( Qt::AlignTop );
    GroupBox2_4_4_3_3Layout->setSpacing( 6 );
    GroupBox2_4_4_3_3Layout->setMargin( 11 );

    win_title_focus = new TWBasic( GroupBox2_4_4_3_3, "win_title_focus" );
    GroupBox2_4_4_3_3Layout->addWidget( win_title_focus );
    tabLayout_5->addWidget( GroupBox2_4_4_3_3 );

    GroupBox2_4_4_3_2_2 = new QGroupBox( tab_5, "GroupBox2_4_4_3_2_2" );
    GroupBox2_4_4_3_2_2->setTitle( tr( "Unfocused Window Title" ) );
    GroupBox2_4_4_3_2_2->setColumnLayout(0, Qt::Vertical );
    GroupBox2_4_4_3_2_2->layout()->setSpacing( 0 );
    GroupBox2_4_4_3_2_2->layout()->setMargin( 0 );
    GroupBox2_4_4_3_2_2Layout = new QVBoxLayout( GroupBox2_4_4_3_2_2->layout() );
    GroupBox2_4_4_3_2_2Layout->setAlignment( Qt::AlignTop );
    GroupBox2_4_4_3_2_2Layout->setSpacing( 6 );
    GroupBox2_4_4_3_2_2Layout->setMargin( 11 );

    win_title_unfocus = new TWBasic( GroupBox2_4_4_3_2_2, "win_title_unfocus" );
    GroupBox2_4_4_3_2_2Layout->addWidget( win_title_unfocus );
    tabLayout_5->addWidget( GroupBox2_4_4_3_2_2 );
    tab_top->insertTab( tab_5, tr( "Title" ) );

    tab_6 = new QWidget( tab_top, "tab_6" );
    tabLayout_6 = new QVBoxLayout( tab_6 ); 
    tabLayout_6->setSpacing( 5 );
    tabLayout_6->setMargin( 5 );

    GroupBox2_4_3 = new QGroupBox( tab_6, "GroupBox2_4_3" );
    GroupBox2_4_3->setTitle( tr( "Window Frame" ) );
    GroupBox2_4_3->setColumnLayout(0, Qt::Vertical );
    GroupBox2_4_3->layout()->setSpacing( 0 );
    GroupBox2_4_3->layout()->setMargin( 0 );
    GroupBox2_4_3Layout = new QHBoxLayout( GroupBox2_4_3->layout() );
    GroupBox2_4_3Layout->setAlignment( Qt::AlignTop );
    GroupBox2_4_3Layout->setSpacing( 6 );
    GroupBox2_4_3Layout->setMargin( 11 );

    TextLabel1_4_3_4_3_3_2 = new QLabel( GroupBox2_4_3, "TextLabel1_4_3_4_3_3_2" );
    TextLabel1_4_3_4_3_3_2->setText( tr( "Unfocused Color:" ) );
    GroupBox2_4_3Layout->addWidget( TextLabel1_4_3_4_3_3_2 );

    win_frame_unfocused_color = new ColorButton( GroupBox2_4_3, "win_frame_unfocused_color" );
    GroupBox2_4_3Layout->addWidget( win_frame_unfocused_color );

    TextLabel1_4_3_6_3_2 = new QLabel( GroupBox2_4_3, "TextLabel1_4_3_6_3_2" );
    TextLabel1_4_3_6_3_2->setText( tr( "Focused Color:" ) );
    GroupBox2_4_3Layout->addWidget( TextLabel1_4_3_6_3_2 );

    win_frame_focused_color = new ColorButton( GroupBox2_4_3, "win_frame_focused_color" );
    GroupBox2_4_3Layout->addWidget( win_frame_focused_color );
    tabLayout_6->addWidget( GroupBox2_4_3 );

    GroupBox2_4 = new QGroupBox( tab_6, "GroupBox2_4" );
    GroupBox2_4->setTitle( tr( "Pressed Button" ) );
    GroupBox2_4->setColumnLayout(0, Qt::Vertical );
    GroupBox2_4->layout()->setSpacing( 0 );
    GroupBox2_4->layout()->setMargin( 0 );
    GroupBox2_4Layout = new QVBoxLayout( GroupBox2_4->layout() );
    GroupBox2_4Layout->setAlignment( Qt::AlignTop );
    GroupBox2_4Layout->setSpacing( 6 );
    GroupBox2_4Layout->setMargin( 11 );

    win_button_pressed = new TWBasic( GroupBox2_4, "win_button_pressed" );
    GroupBox2_4Layout->addWidget( win_button_pressed );
    tabLayout_6->addWidget( GroupBox2_4 );

    GroupBox184_2 = new QGroupBox( tab_6, "GroupBox184_2" );
    GroupBox184_2->setTitle( tr( "Misc. Window Settings" ) );
    GroupBox184_2->setColumnLayout(0, Qt::Vertical );
    GroupBox184_2->layout()->setSpacing( 0 );
    GroupBox184_2->layout()->setMargin( 0 );
    GroupBox184_2Layout = new QGridLayout( GroupBox184_2->layout() );
    GroupBox184_2Layout->setAlignment( Qt::AlignTop );
    GroupBox184_2Layout->setSpacing( 6 );
    GroupBox184_2Layout->setMargin( 11 );

    TextLabel1_4_3_4_3_4_3_2_3_2_3 = new QLabel( GroupBox184_2, "TextLabel1_4_3_4_3_4_3_2_3_2_3" );
    TextLabel1_4_3_4_3_4_3_2_3_2_3->setText( tr( "Handle Width:" ) );

    GroupBox184_2Layout->addWidget( TextLabel1_4_3_4_3_4_3_2_3_2_3, 0, 0 );

    frame_width = new QSpinBox( GroupBox184_2, "frame_width" );

    GroupBox184_2Layout->addWidget( frame_width, 1, 1 );

    handle_width = new QSpinBox( GroupBox184_2, "handle_width" );

    GroupBox184_2Layout->addWidget( handle_width, 0, 1 );

    TextLabel1_4_3_4_3_4_3_2_3_2_2_2_3 = new QLabel( GroupBox184_2, "TextLabel1_4_3_4_3_4_3_2_3_2_2_2_3" );
    TextLabel1_4_3_4_3_4_3_2_3_2_2_2_3->setText( tr( "Bevel Width:" ) );

    GroupBox184_2Layout->addWidget( TextLabel1_4_3_4_3_4_3_2_3_2_2_2_3, 0, 2 );

    bevel_width = new QSpinBox( GroupBox184_2, "bevel_width" );

    GroupBox184_2Layout->addWidget( bevel_width, 0, 3 );

    TextLabel1_4_3_4_3_4_3_2_3_2_2_2_2_2 = new QLabel( GroupBox184_2, "TextLabel1_4_3_4_3_4_3_2_3_2_2_2_2_2" );
    TextLabel1_4_3_4_3_4_3_2_3_2_2_2_2_2->setText( tr( "Border Width:" ) );

    GroupBox184_2Layout->addWidget( TextLabel1_4_3_4_3_4_3_2_3_2_2_2_2_2, 1, 2 );

    border_width = new QSpinBox( GroupBox184_2, "border_width" );

    GroupBox184_2Layout->addWidget( border_width, 1, 3 );

    TextLabel1_4_3_4_3_4_3_2_3_2_2_3 = new QLabel( GroupBox184_2, "TextLabel1_4_3_4_3_4_3_2_3_2_2_3" );
    TextLabel1_4_3_4_3_4_3_2_3_2_2_3->setText( tr( "Frame Width:" ) );

    GroupBox184_2Layout->addWidget( TextLabel1_4_3_4_3_4_3_2_3_2_2_3, 1, 0 );

    TextLabel1_4_3_6_4_3_2_2_2_2 = new QLabel( GroupBox184_2, "TextLabel1_4_3_6_4_3_2_2_2_2" );
    TextLabel1_4_3_6_4_3_2_2_2_2->setText( tr( "Border Color:" ) );

    GroupBox184_2Layout->addWidget( TextLabel1_4_3_6_4_3_2_2_2_2, 2, 0 );

    border_color = new ColorButton( GroupBox184_2, "border_color" );

    GroupBox184_2Layout->addWidget( border_color, 2, 1 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    GroupBox184_2Layout->addMultiCell( spacer, 2, 2, 2, 3 );
    tabLayout_6->addWidget( GroupBox184_2 );
    tab_top->insertTab( tab_6, tr( "Frame / Misc." ) );
    ToolboxWindowBaseLayout->addWidget( tab_top );

    // signals and slots connections
    connect( win_button_focus, SIGNAL( changed() ), this, SLOT( modified() ) );
    connect( win_button_unfocus, SIGNAL( changed() ), this, SLOT( modified() ) );
    connect( win_grip_focus, SIGNAL( changed() ), this, SLOT( modified() ) );
    connect( win_grip_unfocus, SIGNAL( changed() ), this, SLOT( modified() ) );
    connect( win_handle_focus, SIGNAL( changed() ), this, SLOT( modified() ) );
    connect( win_handle_unfocus, SIGNAL( changed() ), this, SLOT( modified() ) );
    connect( win_label_focus, SIGNAL( changed() ), this, SLOT( modified() ) );
    connect( win_label_unfocus, SIGNAL( changed() ), this, SLOT( modified() ) );
    connect( win_title_focus, SIGNAL( changed() ), this, SLOT( modified() ) );
    connect( win_title_unfocus, SIGNAL( changed() ), this, SLOT( modified() ) );
    connect( win_frame_unfocused_color, SIGNAL( changed() ), this, SLOT( modified() ) );
    connect( win_frame_focused_color, SIGNAL( changed() ), this, SLOT( modified() ) );
    connect( win_button_pressed, SIGNAL( changed() ), this, SLOT( modified() ) );
    connect( border_color, SIGNAL( changed() ), this, SLOT( modified() ) );
    connect( handle_width, SIGNAL( valueChanged(int) ), this, SLOT( modified() ) );
    connect( frame_width, SIGNAL( valueChanged(int) ), this, SLOT( modified() ) );
    connect( bevel_width, SIGNAL( valueChanged(int) ), this, SLOT( modified() ) );
    connect( border_width, SIGNAL( valueChanged(int) ), this, SLOT( modified() ) );

    // tab order
    setTabOrder( tab_top, win_button_focus );
    setTabOrder( win_button_focus, win_button_unfocus );
    setTabOrder( win_button_unfocus, win_grip_focus );
    setTabOrder( win_grip_focus, win_grip_unfocus );
    setTabOrder( win_grip_unfocus, win_handle_focus );
    setTabOrder( win_handle_focus, win_handle_unfocus );
    setTabOrder( win_handle_unfocus, win_label_focus );
    setTabOrder( win_label_focus, win_label_unfocus );
    setTabOrder( win_label_unfocus, win_title_focus );
    setTabOrder( win_title_focus, win_title_unfocus );
    setTabOrder( win_title_unfocus, win_frame_unfocused_color );
    setTabOrder( win_frame_unfocused_color, win_frame_focused_color );
    setTabOrder( win_frame_focused_color, win_button_pressed );
    setTabOrder( win_button_pressed, handle_width );
    setTabOrder( handle_width, frame_width );
    setTabOrder( frame_width, border_color );
    setTabOrder( border_color, bevel_width );
    setTabOrder( bevel_width, border_width );
}

/*  
 *  Destroys the object and frees any allocated resources
 */
ToolboxWindowBase::~ToolboxWindowBase()
{
    // no need to delete child widgets, Qt does it all for us
}

void ToolboxWindowBase::modified()
{
    qWarning( "ToolboxWindowBase::modified(): Not implemented yet!" );
}


Generated by  Doxygen 1.6.0   Back to index