/* * 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 ); }
/* * 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 ); }
KMdiDockContainer::KMdiDockContainer( TQWidget *parent, TQWidget *win, int position, int flags ) : TQWidget( parent ), KDockContainer() { m_tabSwitching = false; m_block = false; m_inserted = -1; m_mainWin = win; oldtab = -1; mTabCnt = 0; m_position = position; m_previousTab = -1; m_separatorPos = 18000; m_movingState = NotMoving; m_startEvent = 0; kdDebug( 760 ) << k_funcinfo << endl; TQBoxLayout *l; m_horizontal = ( ( position == KDockWidget::DockTop ) || ( position == KDockWidget::DockBottom ) ); if ( m_horizontal ) l = new TQVBoxLayout( this ); //vertical layout for top and bottom docks else l = new TQHBoxLayout( this ); //horizontal layout for left and right docks l->setAutoAdd( false ); m_tb = new KMultiTabBar( m_horizontal ? KMultiTabBar::Horizontal : KMultiTabBar::Vertical, this ); m_tb->setStyle( KMultiTabBar::KMultiTabBarStyle( flags ) ); m_tb->showActiveTabTexts( true ); KMultiTabBar::KMultiTabBarPosition kmtbPos; switch( position ) { case KDockWidget::DockLeft: kmtbPos = KMultiTabBar::Left; break; case KDockWidget::DockRight: kmtbPos = KMultiTabBar::Right; break; case KDockWidget::DockTop: kmtbPos = KMultiTabBar::Top; break; case KDockWidget::DockBottom: kmtbPos = KMultiTabBar::Bottom; break; default: kmtbPos = KMultiTabBar::Right; break; } m_tb->setPosition( kmtbPos ); m_ws = new TQWidgetStack( this ); m_ws->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) ); //layout the tabbar if ( position == KDockWidget::DockLeft || position == KDockWidget::DockTop ) { //add the tabbar then the widget stack l->add( m_tb ); l->add( m_ws ); } else { //add the widget stack then the tabbar l->add( m_ws ); l->add( m_tb ); } l->activate(); m_ws->hide(); }
KateFileSelector::KateFileSelector( KateMainWindow *mainWindow, KateViewManager *viewManager, TQWidget * parent, const char * name ) : TQVBox (parent, name), mainwin(mainWindow), viewmanager(viewManager) { mActionCollection = new TDEActionCollection( this ); TQtMsgHandler oldHandler = tqInstallMsgHandler( silenceQToolBar ); KateFileSelectorToolBarParent *tbp=new KateFileSelectorToolBarParent(this); toolbar = new KateFileSelectorToolBar(tbp); tbp->setToolBar(toolbar); toolbar->setMovingEnabled(false); toolbar->setFlat(true); tqInstallMsgHandler( oldHandler ); cmbPath = new KURLComboBox( KURLComboBox::Directories, true, this, "path combo" ); cmbPath->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed )); KURLCompletion* cmpl = new KURLCompletion(KURLCompletion::DirCompletion); cmbPath->setCompletionObject( cmpl ); cmbPath->setAutoDeleteCompletionObject( true ); cmbPath->listBox()->installEventFilter( this ); dir = new KDirOperator(KURL(), this, "operator"); dir->setView(KFile::/* Simple */Detail); dir->view()->setSelectionMode(KFile::Extended); connect ( dir, TQT_SIGNAL( viewChanged(KFileView *) ), this, TQT_SLOT( selectorViewChanged(KFileView *) ) ); setStretchFactor(dir, 2); TDEActionCollection *coll = dir->actionCollection(); // some shortcuts of diroperator that clashes with Kate coll->action( "delete" )->setShortcut( TDEShortcut( ALT + Key_Delete ) ); coll->action( "reload" )->setShortcut( TDEShortcut( ALT + Key_F5 ) ); coll->action( "back" )->setShortcut( TDEShortcut( ALT + SHIFT + Key_Left ) ); coll->action( "forward" )->setShortcut( TDEShortcut( ALT + SHIFT + Key_Right ) ); // some consistency - reset up for dir too coll->action( "up" )->setShortcut( TDEShortcut( ALT + SHIFT + Key_Up ) ); coll->action( "home" )->setShortcut( TDEShortcut( CTRL + ALT + Key_Home ) ); // bookmarks action! TDEActionMenu *acmBookmarks = new TDEActionMenu( i18n("Bookmarks"), "bookmark", mActionCollection, "bookmarks" ); acmBookmarks->setDelayed( false ); bookmarkHandler = new KBookmarkHandler( this, acmBookmarks->popupMenu() ); TQHBox* filterBox = new TQHBox(this); btnFilter = new TQToolButton( filterBox ); btnFilter->setIconSet( SmallIconSet("filter" ) ); btnFilter->setToggleButton( true ); filter = new KHistoryCombo( true, filterBox, "filter"); filter->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed )); filterBox->setStretchFactor(filter, 2); connect( btnFilter, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnFilterClick() ) ); connect( filter, TQT_SIGNAL( activated(const TQString&) ), TQT_SLOT( slotFilterChange(const TQString&) ) ); connect( filter, TQT_SIGNAL( returnPressed(const TQString&) ), filter, TQT_SLOT( addToHistory(const TQString&) ) ); // tdeaction for the dir sync method acSyncDir = new TDEAction( i18n("Current Document Folder"), "curfiledir", 0, TQT_TQOBJECT(this), TQT_SLOT( setActiveDocumentDir() ), mActionCollection, "sync_dir" ); toolbar->setIconText( TDEToolBar::IconOnly ); toolbar->setIconSize( 16 ); toolbar->setEnableContextMenu( false ); connect( cmbPath, TQT_SIGNAL( urlActivated( const KURL& )), this, TQT_SLOT( cmbPathActivated( const KURL& ) )); connect( cmbPath, TQT_SIGNAL( returnPressed( const TQString& )), this, TQT_SLOT( cmbPathReturnPressed( const TQString& ) )); connect(dir, TQT_SIGNAL(urlEntered(const KURL&)), this, TQT_SLOT(dirUrlEntered(const KURL&)) ); connect(dir, TQT_SIGNAL(finishedLoading()), this, TQT_SLOT(dirFinishedLoading()) ); // enable dir sync button if current doc has a valid URL connect ( viewmanager, TQT_SIGNAL( viewChanged() ), this, TQT_SLOT( kateViewChanged() ) ); // Connect the bookmark handler connect( bookmarkHandler, TQT_SIGNAL( openURL( const TQString& )), this, TQT_SLOT( setDir( const TQString& ) ) ); waitingUrl = TQString::null; // whatsthis help TQWhatsThis::add( cmbPath, i18n("<p>Here you can enter a path for a folder to display." "<p>To go to a folder previously entered, press the arrow on " "the right and choose one. <p>The entry has folder " "completion. Right-click to choose how completion should behave.") ); TQWhatsThis::add( filter, i18n("<p>Here you can enter a name filter to limit which files are displayed." "<p>To clear the filter, toggle off the filter button to the left." "<p>To reapply the last filter used, toggle on the filter button." ) ); TQWhatsThis::add( btnFilter, i18n("<p>This button clears the name filter when toggled off, or " "reapplies the last filter used when toggled on.") ); }
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 ); }
KSim::SwapPrefs::SwapPrefs(TQWidget *parent, const char *name) : TQWidget(parent, name) { m_addIcon = SmallIconSet("filenew"); m_removeIcon = SmallIconSet("editdelete"); m_mainLayout = new TQVBoxLayout(this); m_mainLayout->setSpacing(6); m_swapCheck = new TQCheckBox(this); m_swapCheck->setText(i18n("Show swap and free swap")); m_swapCheck->setChecked(true); m_mainLayout->addWidget(m_swapCheck); m_swapCombo = new KComboBox(true, this); m_swapCombo->setDuplicatesEnabled(false); m_swapCombo->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed)); //m_swapCombo->insertItem(i18n("%tM - %fM free")); //m_swapCombo->insertItem(i18n("%tM - %uM used")); connect(m_swapCombo, TQT_SIGNAL(aboutToShowContextMenu(TQPopupMenu *)), TQT_SLOT(swapContextMenu(TQPopupMenu *))); m_swapAdd = new TQPushButton(this); m_swapAdd->setPixmap(SmallIcon("down")); connect(m_swapAdd, TQT_SIGNAL(clicked()), TQT_SLOT(insertSwapItem())); TQToolTip::add(m_swapAdd, i18n("Insert item")); m_subLayout = new TQHBoxLayout; m_subLayout->setSpacing(6); connect(m_swapCheck, TQT_SIGNAL(toggled(bool)), m_swapCombo, TQT_SLOT(setEnabled(bool))); connect(m_swapCheck, TQT_SIGNAL(toggled(bool)), m_swapAdd, TQT_SLOT(setEnabled(bool))); m_swapFormat = new TQLabel(this); m_swapFormat->setText(i18n("Swap format:")); m_subLayout->addWidget(m_swapFormat); m_subLayout->addWidget(m_swapCombo); m_subLayout->addWidget(m_swapAdd); m_mainLayout->addLayout(m_subLayout); m_swapInfo = new TQLabel(this); m_swapInfo->setText(i18n("The text in the edit box will be what is " "displayed as \nthe swap & free swap except the % items " "will be \nreplaced with the legend")); m_mainLayout->addWidget(m_swapInfo); m_swapBox = new TQGroupBox(this); m_swapBox->setTitle(i18n("Swap Legend")); m_swapBox->setColumnLayout(0, Qt::Vertical); m_swapBox->layout()->setSpacing(0); m_swapBox->layout()->setMargin(0); m_boxLayout = new TQVBoxLayout(m_swapBox->layout()); m_boxLayout->setAlignment(TQt::AlignTop); m_boxLayout->setSpacing(6); m_boxLayout->setMargin(11); m_stLabel = new TQLabel(m_swapBox); m_stLabel->setText(i18n("%t - Total swap")); m_boxLayout->addWidget(m_stLabel); m_sfLabel = new TQLabel(m_swapBox); m_sfLabel->setText(i18n("%f - Total free swap")); m_boxLayout->addWidget(m_sfLabel); m_suLabel = new TQLabel(m_swapBox); m_suLabel->setText(i18n("%u - Total used swap")); m_boxLayout->addWidget(m_suLabel); m_mainLayout->addWidget(m_swapBox); TQSpacerItem *spacer = new TQSpacerItem(20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding); m_mainLayout->addItem(spacer); }
KSim::GeneralPrefs::GeneralPrefs(TQWidget *parent, const char *name) : TQWidget(parent, name) { m_mainLayout = new TQGridLayout(this); m_mainLayout->setSpacing(6); m_sizeBox = new TQGroupBox(this); m_sizeBox->setTitle(i18n("Graph Size")); m_sizeBox->setColumnLayout(0, Qt::Horizontal); TQGridLayout *sizeBoxLayout = new TQGridLayout(m_sizeBox->layout()); sizeBoxLayout->setSpacing(6); m_sizeHLabel = new TQLabel(m_sizeBox); m_sizeHLabel->setText(i18n("Graph height:")); sizeBoxLayout->addWidget(m_sizeHLabel, 0, 0); m_sizeHSpin = new KIntSpinBox(m_sizeBox); m_sizeHSpin->setValue(40); m_sizeHSpin->setMinValue(40); m_sizeHSpin->setMaxValue(200); m_sizeHSpin->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed)); sizeBoxLayout->addWidget(m_sizeHSpin, 0, 1); TQSpacerItem *sizeHSpacer = new TQSpacerItem(20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum); sizeBoxLayout->addItem(sizeHSpacer, 0, 2); m_sizeWLabel = new TQLabel(m_sizeBox); m_sizeWLabel->setText(i18n("Graph width:")); sizeBoxLayout->addWidget(m_sizeWLabel, 1, 0); m_sizeWSpin = new KIntSpinBox(m_sizeBox); m_sizeWSpin->setValue(58); m_sizeWSpin->setMinValue(58); m_sizeWSpin->setMaxValue(200); m_sizeWSpin->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed)); sizeBoxLayout->addWidget(m_sizeWSpin, 1, 1); TQSpacerItem *sizeWSpacer = new TQSpacerItem(20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum); sizeBoxLayout->addItem(sizeWSpacer, 1, 2); m_mainLayout->addWidget(m_sizeBox, 0, 0); TQSpacerItem *boxSpacer = new TQSpacerItem(20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum); m_mainLayout->addItem(boxSpacer, 0, 1); m_displayFqdn = new TQCheckBox(this); m_displayFqdn->setText(i18n("Display fully qualified domain name")); m_mainLayout->addMultiCellWidget(m_displayFqdn, 1, 1, 0, 1); m_recolourThemes = new TQCheckBox(this); m_recolourThemes->setText(i18n("Recolor themes to the current color scheme")); m_mainLayout->addMultiCellWidget(m_recolourThemes, 2, 2, 0, 1); TQSpacerItem *spacer = new TQSpacerItem(20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding); m_mainLayout->addItem(spacer, 3, 0); }
KSim::MemoryPrefs::MemoryPrefs(TQWidget *parent, const char *name) : TQWidget(parent, name) { m_addIcon = SmallIconSet("filenew"); m_removeIcon = SmallIconSet("editdelete"); m_mainLayout = new TQVBoxLayout(this); m_mainLayout->setSpacing(6); m_memCombo = new KComboBox(true, this); m_memCombo->setDuplicatesEnabled(false); m_memCombo->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed)); //m_memCombo->insertItem(i18n("%tM - %fM free")); //m_memCombo->insertItem(i18n("%tM - %uM used")); connect(m_memCombo, TQT_SIGNAL(aboutToShowContextMenu(TQPopupMenu *)), TQT_SLOT(memoryContextMenu(TQPopupMenu *))); m_memoryAdd = new TQPushButton(this); m_memoryAdd->setPixmap(SmallIcon("down")); connect(m_memoryAdd, TQT_SIGNAL(clicked()), TQT_SLOT(insertMemoryItem())); TQToolTip::add(m_memoryAdd, i18n("Insert item")); m_memCheck = new TQCheckBox(this); m_memCheck->setText(i18n("Show memory and free memory")); m_memCheck->setChecked(false); connect(m_memCheck, TQT_SIGNAL(toggled(bool)), m_memCombo, TQT_SLOT(setEnabled(bool))); connect(m_memCheck, TQT_SIGNAL(toggled(bool)), m_memoryAdd, TQT_SLOT(setEnabled(bool))); m_mainLayout->addWidget(m_memCheck); m_subLayout = new TQHBoxLayout; m_subLayout->setSpacing(6); m_memFormat = new TQLabel(this); m_memFormat->setText(i18n("Mem format:")); m_subLayout->addWidget(m_memFormat); m_subLayout->addWidget(m_memCombo); m_subLayout->addWidget(m_memoryAdd); m_mainLayout->addLayout(m_subLayout); m_memInfo = new TQLabel(this); m_memInfo->setText(i18n("The text in the edit box will be what " "is displayed as \nthe memory & free memory except the " "% items will be \nreplaced with the legend")); m_mainLayout->addWidget(m_memInfo); m_memBox = new TQGroupBox(this); m_memBox->setTitle(i18n("Memory Legend")); m_memBox->setColumnLayout(0, Qt::Vertical); m_memBox->layout()->setSpacing(0); m_memBox->layout()->setMargin(0); m_boxLayout = new TQVBoxLayout(m_memBox->layout()); m_boxLayout->setAlignment(TQt::AlignTop); m_boxLayout->setSpacing(6); m_boxLayout->setMargin(11); m_mtLabel = new TQLabel(m_memBox); m_mtLabel->setText(i18n("%t - Total memory")); m_boxLayout->addWidget(m_mtLabel); m_mfLabel = new TQLabel(m_memBox); m_mfLabel->setText(i18n("%F - Total free memory including cached and buffered")); m_boxLayout->addWidget(m_mfLabel); m_mfLabel = new TQLabel(m_memBox); m_mfLabel->setText(i18n("%f - Total free memory")); m_boxLayout->addWidget(m_mfLabel); m_muLabel = new TQLabel(m_memBox); m_muLabel->setText(i18n("%u - Total used memory")); m_boxLayout->addWidget(m_muLabel); m_mcLabel = new TQLabel(m_memBox); m_mcLabel->setText(i18n("%c - Total cached memory")); m_boxLayout->addWidget(m_mcLabel); m_mbLabel = new TQLabel(m_memBox); m_mbLabel->setText(i18n("%b - Total buffered memory")); m_boxLayout->addWidget(m_mbLabel); m_msLabel = new TQLabel(m_memBox); m_msLabel->setText(i18n("%s - Total shared memory")); m_boxLayout->addWidget(m_msLabel); m_mainLayout->addWidget(m_memBox); TQSpacerItem *spacer = new TQSpacerItem(20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding); m_mainLayout->addItem(spacer); }
KSim::UptimePrefs::UptimePrefs(TQWidget *parent, const char *name) : TQWidget(parent, name) { m_addIcon = SmallIconSet("filenew"); m_removeIcon = SmallIconSet("editdelete"); m_mainLayout = new TQVBoxLayout(this); m_mainLayout->setSpacing(6); m_uptimeCombo = new KComboBox(true, this); m_uptimeCombo->setDuplicatesEnabled(false); m_uptimeCombo->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed)); m_uptimeCombo->insertItem(i18n("%hh:%mm:%ss")); m_uptimeCombo->insertItem(i18n("%dd %h:%m")); m_uptimeCombo->insertItem(i18n("Uptime: %h:%m:%s")); connect(m_uptimeCombo, TQT_SIGNAL(aboutToShowContextMenu(TQPopupMenu *)), TQT_SLOT(uptimeContextMenu(TQPopupMenu *))); m_uptimeAdd = new TQPushButton(this); m_uptimeAdd->setPixmap(SmallIcon("down")); connect(m_uptimeAdd, TQT_SIGNAL(clicked()), TQT_SLOT(insertUptimeItem())); TQToolTip::add(m_uptimeAdd, i18n("Insert item")); m_uptimeCheck = new TQCheckBox(this); m_uptimeCheck->setText(i18n("Show uptime")); m_uptimeCheck->setChecked(true); connect(m_uptimeCheck, TQT_SIGNAL(toggled(bool)), m_uptimeCombo, TQT_SLOT(setEnabled(bool))); connect(m_uptimeCheck, TQT_SIGNAL(toggled(bool)), m_uptimeAdd, TQT_SLOT(setEnabled(bool))); m_mainLayout->addWidget(m_uptimeCheck); m_subLayout = new TQHBoxLayout; m_subLayout->setSpacing(6); m_formatLabel = new TQLabel(this); m_formatLabel->setText(i18n("Uptime format:")); m_subLayout->addWidget(m_formatLabel); m_subLayout->addWidget(m_uptimeCombo); m_subLayout->addWidget(m_uptimeAdd); m_mainLayout->addLayout(m_subLayout); m_uptimeInfo = new TQLabel(this); m_uptimeInfo->setText(i18n("The text in the edit box will be " "what is displayed as \nthe uptime except the % items " "will be replaced with \nthe legend")); m_mainLayout->addWidget(m_uptimeInfo); m_uptimeBox = new TQGroupBox(this); m_uptimeBox->setTitle(i18n("Uptime Legend")); m_uptimeBox->setColumnLayout(0, Qt::Vertical); m_uptimeBox->layout()->setSpacing(0); m_uptimeBox->layout()->setMargin(0); m_boxLayout = new TQVBoxLayout(m_uptimeBox->layout()); m_boxLayout->setAlignment(TQt::AlignTop); m_boxLayout->setSpacing(6); m_boxLayout->setMargin(11); m_udLabel = new TQLabel(m_uptimeBox); m_udLabel->setText(i18n("%d - Total days uptime")); m_boxLayout->addWidget(m_udLabel); m_uhLabel = new TQLabel(m_uptimeBox); m_uhLabel->setText(i18n("%h - Total hours uptime")); m_boxLayout->addWidget(m_uhLabel); m_umLabel = new TQLabel(m_uptimeBox); m_umLabel->setText(i18n("%m - Total minutes uptime")); m_boxLayout->addWidget(m_umLabel); m_usLabel = new TQLabel(m_uptimeBox); m_usLabel->setText(i18n("%s - Total seconds uptime")); m_boxLayout->addWidget(m_usLabel); m_mainLayout->addWidget(m_uptimeBox); TQSpacerItem *spacer = new TQSpacerItem(20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding); m_mainLayout->addItem(spacer); }
KSqueezedTextLabel::KSqueezedTextLabel( TQWidget *parent, const char *name ) : TQLabel ( parent, name ) { setSizePolicy(TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed )); }
KSqueezedTextLabel::KSqueezedTextLabel( const TQString &text , TQWidget *parent, const char *name ) : TQLabel ( parent, name ) { setSizePolicy(TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed )); fullText = text; squeezeTextToLabel(); }
TQSizePolicy KRichTextLabel::sizePolicy() const { return TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Minimum, false); }
KTitleBarActionsConfig::KTitleBarActionsConfig (bool _standAlone, TDEConfig *_config, TQWidget * parent, const char *) : TDECModule(parent, "kcmkwm"), config(_config), standAlone(_standAlone) { TQString strWin1, strWin2, strWin3, strAllKey, strAll1, strAll2, strAll3; TQVBoxLayout *layout = new TQVBoxLayout(this, 0, KDialog::spacingHint()); TQGrid *grid; TQGroupBox *box; TQLabel *label; TQString strMouseButton1, strMouseButton3, strMouseWheel; TQString txtButton1, txtButton3, txtButton4; TQStringList items; bool leftHandedMouse = ( TDEGlobalSettings::mouseSettings().handed == TDEGlobalSettings::KMouseSettings::LeftHanded); /** Titlebar doubleclick ************/ TQHBoxLayout *hlayout = new TQHBoxLayout(layout); label = new TQLabel(i18n("&Titlebar double-click:"), this); hlayout->addWidget(label); TQWhatsThis::add( label, i18n("Here you can customize mouse click behavior when double clicking on the" " titlebar of a window.") ); TQComboBox* combo = new TQComboBox(this); combo->insertItem(i18n("Maximize")); combo->insertItem(i18n("Maximize (vertical only)")); combo->insertItem(i18n("Maximize (horizontal only)")); combo->insertItem(i18n("Minimize")); combo->insertItem(i18n("Shade")); combo->insertItem(i18n("Lower")); combo->insertItem(i18n("On All Desktops")); combo->insertItem(i18n("Nothing")); combo->setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Fixed)); connect(combo, TQT_SIGNAL(activated(int)), TQT_SLOT(changed())); hlayout->addWidget(combo); coTiDbl = combo; TQWhatsThis::add(combo, i18n("Behavior on <em>double</em> click into the titlebar.")); label->setBuddy(combo); /** Mouse Wheel Events **************/ TQHBoxLayout *hlayoutW = new TQHBoxLayout(layout); strMouseWheel = i18n("Titlebar wheel event:"); label = new TQLabel(strMouseWheel, this); hlayoutW->addWidget(label); txtButton4 = i18n("Handle mouse wheel events"); TQWhatsThis::add( label, txtButton4); // Titlebar and frame mouse Wheel TQComboBox* comboW = new TQComboBox(this); comboW->insertItem(i18n("Raise/Lower")); comboW->insertItem(i18n("Shade/Unshade")); comboW->insertItem(i18n("Maximize/Restore")); comboW->insertItem(i18n("Keep Above/Below")); comboW->insertItem(i18n("Move to Previous/Next Desktop")); comboW->insertItem(i18n("Change Opacity")); comboW->insertItem(i18n("Nothing")); comboW->setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Fixed)); connect(comboW, TQT_SIGNAL(activated(int)), TQT_SLOT(changed())); hlayoutW->addWidget(comboW); coTiAct4 = comboW; TQWhatsThis::add(comboW, txtButton4); label->setBuddy(comboW); /** Titlebar and frame **************/ box = new TQVGroupBox( i18n("Titlebar && Frame"), this, "Titlebar and Frame"); box->layout()->setMargin(KDialog::marginHint()); box->layout()->setSpacing(KDialog::spacingHint()); layout->addWidget(box); TQWhatsThis::add( box, i18n("Here you can customize mouse click behavior when clicking on the" " titlebar or the frame of a window.") ); grid = new TQGrid(4, Qt::Vertical, box); new TQLabel(grid); // dummy strMouseButton1 = i18n("Left button:"); txtButton1 = i18n("In this row you can customize left click behavior when clicking into" " the titlebar or the frame."); strMouseButton3 = i18n("Right button:"); txtButton3 = i18n("In this row you can customize right click behavior when clicking into" " the titlebar or the frame." ); if ( leftHandedMouse ) { tqSwap(strMouseButton1, strMouseButton3); tqSwap(txtButton1, txtButton3); } label = new TQLabel(strMouseButton1, grid); TQWhatsThis::add( label, txtButton1); label = new TQLabel(i18n("Middle button:"), grid); TQWhatsThis::add( label, i18n("In this row you can customize middle click behavior when clicking into" " the titlebar or the frame.") ); label = new TQLabel(strMouseButton3, grid); TQWhatsThis::add( label, txtButton3); label = new TQLabel(i18n("Active"), grid); label->setAlignment(AlignCenter); TQWhatsThis::add( label, i18n("In this column you can customize mouse clicks into the titlebar" " or the frame of an active window.") ); // Titlebar and frame, active, mouse button 1 combo = new TQComboBox(grid); combo->insertItem(i18n("Raise")); combo->insertItem(i18n("Lower")); combo->insertItem(i18n("Operations Menu")); combo->insertItem(i18n("Toggle Raise & Lower")); combo->insertItem(i18n("Nothing")); connect(combo, TQT_SIGNAL(activated(int)), TQT_SLOT(changed())); coTiAct1 = combo; txtButton1 = i18n("Behavior on <em>left</em> click into the titlebar or frame of an " "<em>active</em> window."); txtButton3 = i18n("Behavior on <em>right</em> click into the titlebar or frame of an " "<em>active</em> window."); // Be nice to left handed users if ( leftHandedMouse ) tqSwap(txtButton1, txtButton3); TQWhatsThis::add(combo, txtButton1); // Titlebar and frame, active, mouse button 2 items << i18n("Raise") << i18n("Lower") << i18n("Operations Menu") << i18n("Toggle Raise & Lower") << i18n("Nothing") << i18n("Shade"); combo = new TQComboBox(grid); combo->insertStringList(items); connect(combo, TQT_SIGNAL(activated(int)), TQT_SLOT(changed())); coTiAct2 = combo; TQWhatsThis::add(combo, i18n("Behavior on <em>middle</em> click into the titlebar or frame of an <em>active</em> window.")); // Titlebar and frame, active, mouse button 3 combo = new TQComboBox(grid); combo->insertStringList(items); connect(combo, TQT_SIGNAL(activated(int)), TQT_SLOT(changed())); coTiAct3 = combo; TQWhatsThis::add(combo, txtButton3 ); txtButton1 = i18n("Behavior on <em>left</em> click into the titlebar or frame of an " "<em>inactive</em> window."); txtButton3 = i18n("Behavior on <em>right</em> click into the titlebar or frame of an " "<em>inactive</em> window."); // Be nice to left handed users if ( leftHandedMouse ) tqSwap(txtButton1, txtButton3); label = new TQLabel(i18n("Inactive"), grid); label->setAlignment(AlignCenter); TQWhatsThis::add( label, i18n("In this column you can customize mouse clicks into the titlebar" " or the frame of an inactive window.") ); items.clear(); items << i18n("Activate & Raise") << i18n("Activate & Lower") << i18n("Activate") << i18n("Shade") << i18n("Operations Menu") << i18n("Raise") << i18n("Lower") << i18n("Nothing"); combo = new TQComboBox(grid); combo->insertStringList(items); connect(combo, TQT_SIGNAL(activated(int)), TQT_SLOT(changed())); coTiInAct1 = combo; TQWhatsThis::add(combo, txtButton1); combo = new TQComboBox(grid); combo->insertStringList(items); connect(combo, TQT_SIGNAL(activated(int)), TQT_SLOT(changed())); coTiInAct2 = combo; TQWhatsThis::add(combo, i18n("Behavior on <em>middle</em> click into the titlebar or frame of an <em>inactive</em> window.")); combo = new TQComboBox(grid); combo->insertStringList(items); connect(combo, TQT_SIGNAL(activated(int)), TQT_SLOT(changed())); coTiInAct3 = combo; TQWhatsThis::add(combo, txtButton3); /** Maximize Button ******************/ box = new TQHGroupBox(i18n("Maximize Button"), this, "Maximize Button"); box->layout()->setMargin(KDialog::marginHint()); box->layout()->setSpacing(KDialog::spacingHint()); layout->addWidget(box); TQWhatsThis::add( box, i18n("Here you can customize behavior when clicking on the maximize button.") ); TQString strMouseButton[] = { i18n("Left button:"), i18n("Middle button:"), i18n("Right button:")}; TQString txtButton[] = { i18n("Behavior on <em>left</em> click onto the maximize button." ), i18n("Behavior on <em>middle</em> click onto the maximize button." ), i18n("Behavior on <em>right</em> click onto the maximize button." )}; if ( leftHandedMouse ) // Be nice to lefties { tqSwap(strMouseButton[0], strMouseButton[2]); tqSwap(txtButton[0], txtButton[2]); } createMaxButtonPixmaps(); for (int b = 0; b < 3; ++b) { if (b != 0) new TQWidget(box); // Spacer TQLabel * label = new TQLabel(strMouseButton[b], box); TQWhatsThis::add( label, txtButton[b] ); label ->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Minimum )); coMax[b] = new ToolTipComboBox(box, tbl_Max); for (int t = 0; t < 3; ++t) coMax[b]->insertItem(maxButtonPixmaps[t]); connect(coMax[b], TQT_SIGNAL(activated(int)), TQT_SLOT(changed())); connect(coMax[b], TQT_SIGNAL(activated(int)), coMax[b], TQT_SLOT(changed())); TQWhatsThis::add( coMax[b], txtButton[b] ); coMax[b]->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Minimum )); } connect(kapp, TQT_SIGNAL(tdedisplayPaletteChanged()), TQT_SLOT(paletteChanged())); layout->addStretch(); load(); }
/* * 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()); }
/* * 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 ); }