diff options
Diffstat (limited to 'src/Q_mainwindow.cpp')
-rw-r--r-- | src/Q_mainwindow.cpp | 185 |
1 files changed, 0 insertions, 185 deletions
diff --git a/src/Q_mainwindow.cpp b/src/Q_mainwindow.cpp deleted file mode 100644 index b42aafa..0000000 --- a/src/Q_mainwindow.cpp +++ /dev/null @@ -1,185 +0,0 @@ -#include <kdialog.h> -#include <tdelocale.h> -/**************************************************************************** -** Form implementation generated from reading ui file '/home/mkulke/Development/kasablanca/src/Q_mainwindow.ui' -** -** Created: Mo Jan 31 15:02:06 2005 -** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $) -** -** WARNING! All changes made in this file will be lost! -****************************************************************************/ - -#include "Q_mainwindow.h" - -#include <ntqvariant.h> -#include <ntqpushbutton.h> -#include <ntqtoolbutton.h> -#include <ntqheader.h> -#include <ntqlistview.h> -#include <klineedit.h> -#include <ntqsplitter.h> -#include <ntqtextedit.h> -#include <ntqlayout.h> -#include <ntqtooltip.h> -#include <ntqwhatsthis.h> -#include "kbtaskview.h" - -/* - * Constructs a KasablancaMainWindow as a child of 'parent', with the - * name 'name' and widget flags set to 'f'. - */ -KasablancaMainWindow::KasablancaMainWindow( TQWidget* parent, const char* name, WFlags fl ) - : TQWidget( parent, name, fl ) -{ - if ( !name ) - setName( "KasablancaMainWindow" ); - setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) ); - KasablancaMainWindowLayout = new TQGridLayout( this, 1, 1, 2, 6, "KasablancaMainWindowLayout"); - - ConnectButtonA = new TQToolButton( this, "ConnectButtonA" ); - ConnectButtonA->setEnabled( TRUE ); - ConnectButtonA->setAutoRaise( FALSE ); - - KasablancaMainWindowLayout->addWidget( ConnectButtonA, 0, 0 ); - - RefreshButtonA = new TQToolButton( this, "RefreshButtonA" ); - RefreshButtonA->setEnabled( TRUE ); - RefreshButtonA->setAutoRaise( FALSE ); - - KasablancaMainWindowLayout->addWidget( RefreshButtonA, 0, 1 ); - - TransferButtonA = new TQToolButton( this, "TransferButtonA" ); - TransferButtonA->setEnabled( FALSE ); - TransferButtonA->setAutoRaise( FALSE ); - - KasablancaMainWindowLayout->addWidget( TransferButtonA, 0, 2 ); - - ConnectButtonB = new TQToolButton( this, "ConnectButtonB" ); - ConnectButtonB->setEnabled( TRUE ); - ConnectButtonB->setAutoRaise( FALSE ); - - KasablancaMainWindowLayout->addWidget( ConnectButtonB, 0, 4 ); - - RefreshButtonB = new TQToolButton( this, "RefreshButtonB" ); - RefreshButtonB->setEnabled( TRUE ); - RefreshButtonB->setAutoRaise( FALSE ); - - KasablancaMainWindowLayout->addWidget( RefreshButtonB, 0, 5 ); - - TransferButtonB = new TQToolButton( this, "TransferButtonB" ); - TransferButtonB->setEnabled( FALSE ); - TransferButtonB->setAutoRaise( FALSE ); - - KasablancaMainWindowLayout->addWidget( TransferButtonB, 0, 6 ); - - BrowserA = new TQListView( this, "BrowserA" ); - BrowserA->addColumn( tr2i18n( "Name" ) ); - BrowserA->addColumn( tr2i18n( "Size" ) ); - BrowserA->addColumn( tr2i18n( "Date" ) ); - BrowserA->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)2, (TQSizePolicy::SizeType)7, 0, 0, BrowserA->sizePolicy().hasHeightForWidth() ) ); - BrowserA->setResizePolicy( TQScrollView::Manual ); - BrowserA->setSelectionMode( TQListView::Extended ); - - KasablancaMainWindowLayout->addMultiCellWidget( BrowserA, 1, 1, 0, 3 ); - - BrowserB = new TQListView( this, "BrowserB" ); - BrowserB->addColumn( tr2i18n( "Name" ) ); - BrowserB->addColumn( tr2i18n( "Size" ) ); - BrowserB->addColumn( tr2i18n( "Date" ) ); - BrowserB->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)2, (TQSizePolicy::SizeType)7, 0, 0, BrowserB->sizePolicy().hasHeightForWidth() ) ); - BrowserB->setSelectionMode( TQListView::Extended ); - - KasablancaMainWindowLayout->addMultiCellWidget( BrowserB, 1, 1, 4, 7 ); - - CwdLineA = new KLineEdit( this, "CwdLineA" ); - - KasablancaMainWindowLayout->addWidget( CwdLineA, 0, 3 ); - - CwdLineB = new KLineEdit( this, "CwdLineB" ); - - KasablancaMainWindowLayout->addWidget( CwdLineB, 0, 7 ); - - CommandLineA = new KLineEdit( this, "CommandLineA" ); - - KasablancaMainWindowLayout->addMultiCellWidget( CommandLineA, 2, 2, 0, 3 ); - - CommandLineB = new KLineEdit( this, "CommandLineB" ); - - KasablancaMainWindowLayout->addMultiCellWidget( CommandLineB, 2, 2, 4, 7 ); - - splitter4 = new TQSplitter( this, "splitter4" ); - splitter4->setOrientation( TQSplitter::Vertical ); - - TaskView = new KbTaskView( splitter4, "TaskView" ); - - TQWidget* privateLayoutWidget = new TQWidget( splitter4, "layout2" ); - layout2 = new TQGridLayout( privateLayoutWidget, 1, 1, 0, 6, "layout2"); - - LogWindowB = new TQTextEdit( privateLayoutWidget, "LogWindowB" ); - LogWindowB->setPaletteForegroundColor( TQColor( 255, 255, 255 ) ); - LogWindowB->setPaletteBackgroundColor( TQColor( 82, 194, 255 ) ); - TQFont LogWindowB_font( LogWindowB->font() ); - LogWindowB_font.setFamily( "Dec Terminal" ); - LogWindowB->setFont( LogWindowB_font ); - LogWindowB->setHScrollBarMode( TQTextEdit::AlwaysOff ); - LogWindowB->setTextFormat( TQTextEdit::PlainText ); - LogWindowB->setWrapPolicy( TQTextEdit::AtWordOrDocumentBoundary ); - LogWindowB->setReadOnly( TRUE ); - - layout2->addWidget( LogWindowB, 0, 1 ); - - LogWindowA = new TQTextEdit( privateLayoutWidget, "LogWindowA" ); - LogWindowA->setPaletteForegroundColor( TQColor( 255, 255, 255 ) ); - LogWindowA->setPaletteBackgroundColor( TQColor( 82, 194, 255 ) ); - TQFont LogWindowA_font( LogWindowA->font() ); - LogWindowA_font.setFamily( "Dec Terminal" ); - LogWindowA->setFont( LogWindowA_font ); - LogWindowA->setHScrollBarMode( TQTextEdit::AlwaysOff ); - LogWindowA->setTextFormat( TQTextEdit::PlainText ); - LogWindowA->setWrapPolicy( TQTextEdit::AtWordOrDocumentBoundary ); - LogWindowA->setReadOnly( TRUE ); - - layout2->addWidget( LogWindowA, 0, 0 ); - - KasablancaMainWindowLayout->addMultiCellWidget( splitter4, 3, 3, 0, 7 ); - languageChange(); - resize( TQSize(689, 626).expandedTo(minimumSizeHint()) ); - clearWState( WState_Polished ); - - // tab order - setTabOrder( BrowserA, BrowserB ); - setTabOrder( BrowserB, LogWindowA ); -} - -/* - * Destroys the object and frees any allocated resources - */ -KasablancaMainWindow::~KasablancaMainWindow() -{ - // no need to delete child widgets, TQt does it all for us -} - -/* - * Sets the strings of the subwidgets using the current - * language. - */ -void KasablancaMainWindow::languageChange() -{ - setCaption( tr2i18n( "Kasablanca x" ) ); - ConnectButtonA->setText( TQString::null ); - RefreshButtonA->setText( TQString::null ); - TransferButtonA->setText( TQString::null ); - ConnectButtonB->setText( TQString::null ); - RefreshButtonB->setText( TQString::null ); - TransferButtonB->setText( TQString::null ); - BrowserA->header()->setLabel( 0, tr2i18n( "Name" ) ); - BrowserA->header()->setLabel( 1, tr2i18n( "Size" ) ); - BrowserA->header()->setLabel( 2, tr2i18n( "Date" ) ); - BrowserB->header()->setLabel( 0, tr2i18n( "Name" ) ); - BrowserB->header()->setLabel( 1, tr2i18n( "Size" ) ); - BrowserB->header()->setLabel( 2, tr2i18n( "Date" ) ); - LogWindowB->setText( TQString::null ); - LogWindowA->setText( TQString::null ); -} - -#include "Q_mainwindow.moc" |