From f92c11dfdcde621a6b7384bcf867b87cdb14280c Mon Sep 17 00:00:00 2001 From: gregory guy Date: Tue, 9 Apr 2019 18:02:42 +0200 Subject: conversion to the cmake building system MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed cpp files generated from ui files. This resolves issue #1. Signed-off-by: gregory guy Signed-off-by: Slávek Banko --- src/CMakeLists.txt | 68 ++++++++++ src/Q_bookmarkdialog.cpp | 214 ------------------------------- src/Q_colorspreferencesdialog.cpp | 100 --------------- src/Q_customconnectdialog.cpp | 180 -------------------------- src/Q_fileexistsdialog.cpp | 111 ---------------- src/Q_generalpreferencesdialog.cpp | 176 ------------------------- src/Q_importdialog.cpp | 70 ---------- src/Q_mainwindow.cpp | 185 -------------------------- src/Q_userinterfacepreferencesdialog.cpp | 102 --------------- src/bookmarkdialog.cpp | 14 +- src/customconnectdialog.cpp | 10 +- src/eventhandler.cpp | 2 +- src/eventhandler.h | 4 +- src/fileexistsdialog.h | 2 +- src/ftpsession.cpp | 26 ++-- src/ftpsession.h | 10 +- src/ftpthread.cpp | 6 +- src/ftpthread.h | 8 +- src/importdialog.cpp | 8 +- src/kasablanca.cpp | 14 +- src/kasablanca.h | 8 +- src/kbbookmarkitem.h | 2 +- src/kbdir.h | 2 +- src/kbdirinfo.cpp | 2 +- src/kbfile.h | 2 +- src/kbfileinfo.cpp | 4 +- src/kbfileinfo.h | 2 +- src/kbitem.cpp | 2 +- src/kbitem.h | 2 +- src/kbsiteinfo.cpp | 8 +- src/kbsiteinfo.h | 2 +- src/kbstatustip.cpp | 2 +- src/kbstatustip.h | 2 +- src/kbtaskview.cpp | 4 +- src/kbtransferfile.cpp | 4 +- src/kbtransferitem.h | 4 +- 36 files changed, 146 insertions(+), 1216 deletions(-) create mode 100644 src/CMakeLists.txt delete mode 100644 src/Q_bookmarkdialog.cpp delete mode 100644 src/Q_colorspreferencesdialog.cpp delete mode 100644 src/Q_customconnectdialog.cpp delete mode 100644 src/Q_fileexistsdialog.cpp delete mode 100644 src/Q_generalpreferencesdialog.cpp delete mode 100644 src/Q_importdialog.cpp delete mode 100644 src/Q_mainwindow.cpp delete mode 100644 src/Q_userinterfacepreferencesdialog.cpp (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..acff4ad --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,68 @@ +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${OPENSSL_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### kasablanca (executable) + +tde_add_executable( ${PROJECT_NAME} AUTOMOC + + SOURCES + kbconfig.kcfgc + Q_bookmarkdialog.ui Q_fileexistsdialog.ui + Q_mainwindow.ui Q_colorspreferencesdialog.ui + Q_userinterfacepreferencesdialog.ui + Q_generalpreferencesdialog.ui + Q_customconnectdialog.ui Q_importdialog.ui + main.cpp kasablanca.cpp + bookmarkdialog.cpp customconnectdialog.cpp + fileexistsdialog.cpp kbitem.cpp + eventhandler.cpp ftpthread.cpp + ftplib.cpp ftpsession.cpp + kbfileinfo.cpp kbdirinfo.cpp + kbdir.cpp kbfile.cpp + kbtransferitem.cpp kbtransferdir.cpp + kbtransferfile.cpp kbtaskview.cpp + kbbookmarkitem.cpp kbsiteinfo.cpp + importdialog.cpp kbstatustip.cpp + LINK + tdecore-shared + tdeui-shared + tdeio-shared + ${OPENSSL_LIBRARIES} + + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### icons + +tde_install_icons( ${PROJECT_NAME} ) + + +##### other data + +install( + FILES kasablancaui.rc about.png + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +install( + FILES ${PROJECT_NAME}.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + +install( + FILES kbconfig.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) diff --git a/src/Q_bookmarkdialog.cpp b/src/Q_bookmarkdialog.cpp deleted file mode 100644 index c3f016d..0000000 --- a/src/Q_bookmarkdialog.cpp +++ /dev/null @@ -1,214 +0,0 @@ -#include -#include -/**************************************************************************** -** Form implementation generated from reading ui file '/home/mkulke/Development/kasablanca/src/Q_bookmarkdialog.ui' -** -** Created: Mo Jan 31 15:02:05 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_bookmarkdialog.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/* - * Constructs a KasablancaBookmarkDialog as a child of 'parent', with the - * name 'name' and widget flags set to 'f'. - */ -KasablancaBookmarkDialog::KasablancaBookmarkDialog( TQWidget* parent, const char* name, WFlags fl ) - : TQWidget( parent, name, fl ) -{ - if ( !name ) - setName( "KasablancaBookmarkDialog" ); - setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) ); - KasablancaBookmarkDialogLayout = new TQGridLayout( this, 1, 1, 2, 6, "KasablancaBookmarkDialogLayout"); - - splitter1 = new TQSplitter( this, "splitter1" ); - splitter1->setOrientation( TQSplitter::Horizontal ); - - BookmarkListView = new TDEListView( splitter1, "BookmarkListView" ); - BookmarkListView->addColumn( tr2i18n( "Name" ) ); - BookmarkListView->header()->setClickEnabled( FALSE, BookmarkListView->header()->count() - 1 ); - BookmarkListView->setMinimumSize( TQSize( 0, 0 ) ); - BookmarkListView->setAcceptDrops( TRUE ); - BookmarkListView->setDragEnabled( TRUE ); - - SettingsTab = new TQTabWidget( splitter1, "SettingsTab" ); - SettingsTab->setEnabled( TRUE ); - SettingsTab->setMinimumSize( TQSize( 360, 232 ) ); - - tab = new TQWidget( SettingsTab, "tab" ); - tabLayout = new TQGridLayout( tab, 1, 1, 2, 6, "tabLayout"); - - PassEdit = new KLineEdit( tab, "PassEdit" ); - PassEdit->setEnabled( FALSE ); - PassEdit->setEchoMode( KLineEdit::Password ); - - tabLayout->addMultiCellWidget( PassEdit, 3, 3, 1, 2 ); - - UserEdit = new KLineEdit( tab, "UserEdit" ); - UserEdit->setEnabled( FALSE ); - - tabLayout->addMultiCellWidget( UserEdit, 2, 2, 1, 2 ); - - InfoEdit = new KLineEdit( tab, "InfoEdit" ); - InfoEdit->setEnabled( FALSE ); - - tabLayout->addMultiCellWidget( InfoEdit, 1, 1, 1, 2 ); - - NameEdit = new KLineEdit( tab, "NameEdit" ); - NameEdit->setEnabled( FALSE ); - NameEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, NameEdit->sizePolicy().hasHeightForWidth() ) ); - - tabLayout->addMultiCellWidget( NameEdit, 0, 0, 1, 2 ); - - textLabel1_3 = new TQLabel( tab, "textLabel1_3" ); - - tabLayout->addWidget( textLabel1_3, 2, 0 ); - - textLabel1 = new TQLabel( tab, "textLabel1" ); - - tabLayout->addWidget( textLabel1, 0, 0 ); - - textLabel1_2_2_2 = new TQLabel( tab, "textLabel1_2_2_2" ); - - tabLayout->addWidget( textLabel1_2_2_2, 4, 0 ); - - textLabel1_2 = new TQLabel( tab, "textLabel1_2" ); - - tabLayout->addWidget( textLabel1_2, 1, 0 ); - - textLabel1_2_2 = new TQLabel( tab, "textLabel1_2_2" ); - - tabLayout->addWidget( textLabel1_2_2, 3, 0 ); - - textLabel1_2_2_3 = new TQLabel( tab, "textLabel1_2_2_3" ); - - tabLayout->addWidget( textLabel1_2_2_3, 5, 0 ); - spacer8 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); - tabLayout->addItem( spacer8, 6, 2 ); - - ModeComboBox = new KComboBox( FALSE, tab, "ModeComboBox" ); - ModeComboBox->setEnabled( FALSE ); - - tabLayout->addWidget( ModeComboBox, 5, 1 ); - - EncryptionComboBox = new KComboBox( FALSE, tab, "EncryptionComboBox" ); - EncryptionComboBox->setEnabled( FALSE ); - - tabLayout->addWidget( EncryptionComboBox, 4, 1 ); - spacer10 = new TQSpacerItem( 111, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); - tabLayout->addMultiCell( spacer10, 4, 5, 2, 2 ); - SettingsTab->insertTab( tab, TQString("") ); - - tab_2 = new TQWidget( SettingsTab, "tab_2" ); - tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 2, 6, "tabLayout_2"); - - textLabel3 = new TQLabel( tab_2, "textLabel3" ); - - tabLayout_2->addWidget( textLabel3, 0, 0 ); - - DefaultDirectoryEdit = new TQLineEdit( tab_2, "DefaultDirectoryEdit" ); - DefaultDirectoryEdit->setEnabled( FALSE ); - - tabLayout_2->addMultiCellWidget( DefaultDirectoryEdit, 0, 0, 1, 3 ); - - textLabel2 = new TQLabel( tab_2, "textLabel2" ); - - tabLayout_2->addWidget( textLabel2, 1, 0 ); - - AlternativeFxpCheckBox = new TQCheckBox( tab_2, "AlternativeFxpCheckBox" ); - AlternativeFxpCheckBox->setEnabled( FALSE ); - - tabLayout_2->addWidget( AlternativeFxpCheckBox, 1, 3 ); - - CorrectPasvCheckBox = new TQCheckBox( tab_2, "CorrectPasvCheckBox" ); - CorrectPasvCheckBox->setEnabled( FALSE ); - - tabLayout_2->addWidget( CorrectPasvCheckBox, 2, 3 ); - - textLabel1_2_2_2_2 = new TQLabel( tab_2, "textLabel1_2_2_2_2" ); - - tabLayout_2->addMultiCellWidget( textLabel1_2_2_2_2, 2, 2, 0, 1 ); - spacer16 = new TQSpacerItem( 60, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); - tabLayout_2->addMultiCell( spacer16, 1, 2, 2, 2 ); - spacer7 = new TQSpacerItem( 20, 71, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); - tabLayout_2->addItem( spacer7, 3, 1 ); - SettingsTab->insertTab( tab_2, TQString("") ); - - KasablancaBookmarkDialogLayout->addWidget( splitter1, 0, 0 ); - languageChange(); - resize( TQSize(541, 240).expandedTo(minimumSizeHint()) ); - clearWState( WState_Polished ); - - // tab order - setTabOrder( NameEdit, InfoEdit ); - setTabOrder( InfoEdit, UserEdit ); - setTabOrder( UserEdit, PassEdit ); - setTabOrder( PassEdit, EncryptionComboBox ); - setTabOrder( EncryptionComboBox, ModeComboBox ); -} - -/* - * Destroys the object and frees any allocated resources - */ -KasablancaBookmarkDialog::~KasablancaBookmarkDialog() -{ - // no need to delete child widgets, TQt does it all for us -} - -/* - * Sets the strings of the subwidgets using the current - * language. - */ -void KasablancaBookmarkDialog::languageChange() -{ - setCaption( tr2i18n( "Bookmarks" ) ); - BookmarkListView->header()->setLabel( 0, tr2i18n( "Name" ) ); - TQWhatsThis::add( PassEdit, tr2i18n( "The user's password. Anonymous ftp servers ussually don't use passwords or accept passwords in the form of \"user@emailaddress.com\"." ) ); - TQWhatsThis::add( UserEdit, tr2i18n( "The ftp Login Username. On open ftp servers you usually login using \"anonymous\"." ) ); - InfoEdit->setInputMask( TQString::null ); - TQWhatsThis::add( InfoEdit, tr2i18n( "This information points to the the ftp server. HOST can either be a standard ip adress like 192.168.2.1 or a domain name. PORT is the port number on which the ftp server listens. In most cases this is 21. Both are seperated by a \":\" character. A legit input would be \"ftp.kde.org:21\"." ) ); - TQWhatsThis::add( NameEdit, tr2i18n( "The ftp's name is entered here." ) ); - textLabel1_3->setText( tr2i18n( "Username:" ) ); - textLabel1->setText( tr2i18n( "Name:" ) ); - textLabel1_2_2_2->setText( tr2i18n( "Encryption:" ) ); - TQWhatsThis::add( textLabel1_2_2_2, TQString::null ); - textLabel1_2->setText( tr2i18n( "Host:Port:" ) ); - textLabel1_2_2->setText( tr2i18n( "Password:" ) ); - textLabel1_2_2_3->setText( tr2i18n( "Mode:" ) ); - ModeComboBox->clear(); - ModeComboBox->insertItem( tr2i18n( "Active Mode" ) ); - ModeComboBox->insertItem( tr2i18n( "Passive Mode" ) ); - TQWhatsThis::add( ModeComboBox, tr2i18n( "The mode you are using for data transfer. This is quite important in case you're behind a firewall or a router. In these cases you depend on the passive mode, which makes the client connects to the ftp server for data transfer. Passive mode is the standard method today, while active mode is the old way to do data transfers, the client listens for the server to connect in active mode." ) ); - EncryptionComboBox->clear(); - EncryptionComboBox->insertItem( tr2i18n( "Unencrypted" ) ); - EncryptionComboBox->insertItem( tr2i18n( "Level 1" ) ); - EncryptionComboBox->insertItem( tr2i18n( "Level 2" ) ); - EncryptionComboBox->insertItem( tr2i18n( "Level 3" ) ); - TQWhatsThis::add( EncryptionComboBox, tr2i18n( "There are 4 encryption levels available. Unencrypted leaves all traffic clear and without encryption. Most ftp servers allow only this mode. Level 1 encryption means that the traffic on the control connection is encrypted while data transfer remains clear. Level 2 is basically the same with the exception of directory information which is transfered on the data channel, but is encrypted too. Eventually Level 3 encrypts everything all communication and all data traffic." ) ); - SettingsTab->changeTab( tab, tr2i18n( "General" ) ); - textLabel3->setText( tr2i18n( "Default directory:" ) ); - textLabel2->setText( tr2i18n( "Alternative fxp:" ) ); - AlternativeFxpCheckBox->setText( tr2i18n( "Enabled" ) ); - CorrectPasvCheckBox->setText( tr2i18n( "Enabled" ) ); - textLabel1_2_2_2_2->setText( tr2i18n( "Correct pasv responses:" ) ); - SettingsTab->changeTab( tab_2, tr2i18n( "Advanced" ) ); -} - -#include "Q_bookmarkdialog.moc" diff --git a/src/Q_colorspreferencesdialog.cpp b/src/Q_colorspreferencesdialog.cpp deleted file mode 100644 index ef15f86..0000000 --- a/src/Q_colorspreferencesdialog.cpp +++ /dev/null @@ -1,100 +0,0 @@ -#include -#include -/**************************************************************************** -** Form implementation generated from reading ui file '/home/mkulke/Development/kasablanca/src/Q_colorspreferencesdialog.ui' -** -** Created: Mo Jan 31 15:02:07 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_colorspreferencesdialog.h" - -#include -#include -#include -#include -#include -#include - -/* - * Constructs a KasablancaColorsPreferencesDialog 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. - */ -KasablancaColorsPreferencesDialog::KasablancaColorsPreferencesDialog( TQWidget* parent, const char* name, bool modal, WFlags fl ) - : TQDialog( parent, name, modal, fl ) -{ - if ( !name ) - setName( "KasablancaColorsPreferencesDialog" ); - KasablancaColorsPreferencesDialogLayout = new TQGridLayout( this, 1, 1, 11, 6, "KasablancaColorsPreferencesDialogLayout"); - - textLabel1_2 = new TQLabel( this, "textLabel1_2" ); - - KasablancaColorsPreferencesDialogLayout->addWidget( textLabel1_2, 0, 0 ); - - textLabel1_3_3 = new TQLabel( this, "textLabel1_3_3" ); - - KasablancaColorsPreferencesDialogLayout->addWidget( textLabel1_3_3, 1, 0 ); - - textLabel1_3 = new TQLabel( this, "textLabel1_3" ); - - KasablancaColorsPreferencesDialogLayout->addWidget( textLabel1_3, 2, 0 ); - - textLabel1_3_2 = new TQLabel( this, "textLabel1_3_2" ); - - KasablancaColorsPreferencesDialogLayout->addWidget( textLabel1_3_2, 3, 0 ); - spacer3 = new TQSpacerItem( 30, 60, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); - KasablancaColorsPreferencesDialogLayout->addMultiCell( spacer3, 0, 2, 1, 1 ); - - kcfg_FailureColor = new KColorButton( this, "kcfg_FailureColor" ); - - KasablancaColorsPreferencesDialogLayout->addWidget( kcfg_FailureColor, 2, 2 ); - - kcfg_SuccessColor = new KColorButton( this, "kcfg_SuccessColor" ); - - KasablancaColorsPreferencesDialogLayout->addWidget( kcfg_SuccessColor, 1, 2 ); - - kcfg_LocalColor = new KColorButton( this, "kcfg_LocalColor" ); - - KasablancaColorsPreferencesDialogLayout->addWidget( kcfg_LocalColor, 3, 2 ); - - kcfg_BackgroundColor = new KColorButton( this, "kcfg_BackgroundColor" ); - - KasablancaColorsPreferencesDialogLayout->addWidget( kcfg_BackgroundColor, 0, 2 ); - spacer5 = new TQSpacerItem( 31, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); - KasablancaColorsPreferencesDialogLayout->addItem( spacer5, 4, 1 ); - languageChange(); - resize( TQSize(241, 183).expandedTo(minimumSizeHint()) ); - clearWState( WState_Polished ); -} - -/* - * Destroys the object and frees any allocated resources - */ -KasablancaColorsPreferencesDialog::~KasablancaColorsPreferencesDialog() -{ - // no need to delete child widgets, TQt does it all for us -} - -/* - * Sets the strings of the subwidgets using the current - * language. - */ -void KasablancaColorsPreferencesDialog::languageChange() -{ - setCaption( tr2i18n( "Colors" ) ); - textLabel1_2->setText( tr2i18n( "Background:" ) ); - textLabel1_3_3->setText( tr2i18n( "Success Text:" ) ); - textLabel1_3->setText( tr2i18n( "Failure Text:" ) ); - textLabel1_3_2->setText( tr2i18n( "Local Text:" ) ); - kcfg_FailureColor->setText( TQString::null ); - kcfg_SuccessColor->setText( TQString::null ); - kcfg_LocalColor->setText( TQString::null ); - kcfg_BackgroundColor->setText( TQString::null ); -} - -#include "Q_colorspreferencesdialog.moc" diff --git a/src/Q_customconnectdialog.cpp b/src/Q_customconnectdialog.cpp deleted file mode 100644 index eea10e2..0000000 --- a/src/Q_customconnectdialog.cpp +++ /dev/null @@ -1,180 +0,0 @@ -#include -#include -/**************************************************************************** -** Form implementation generated from reading ui file '/home/mkulke/Development/kasablanca/src/Q_customconnectdialog.ui' -** -** Created: Mo Jan 31 15:02:09 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_customconnectdialog.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/* - * Constructs a KasablancaCustomConnectDialog as a child of 'parent', with the - * name 'name' and widget flags set to 'f'. - */ -KasablancaCustomConnectDialog::KasablancaCustomConnectDialog( TQWidget* parent, const char* name, WFlags fl ) - : TQWidget( parent, name, fl ) -{ - if ( !name ) - setName( "KasablancaCustomConnectDialog" ); - KasablancaCustomConnectDialogLayout = new TQGridLayout( this, 1, 1, 2, 6, "KasablancaCustomConnectDialogLayout"); - - Custom = new TQTabWidget( this, "Custom" ); - - tab = new TQWidget( Custom, "tab" ); - tabLayout = new TQGridLayout( tab, 1, 1, 2, 6, "tabLayout"); - - textLabel4 = new TQLabel( tab, "textLabel4" ); - textLabel4->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignLeft ) ); - - tabLayout->addWidget( textLabel4, 2, 0 ); - - UserLineEdit = new TQLineEdit( tab, "UserLineEdit" ); - UserLineEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, UserLineEdit->sizePolicy().hasHeightForWidth() ) ); - - tabLayout->addMultiCellWidget( UserLineEdit, 1, 1, 1, 2 ); - - PassLineEdit = new TQLineEdit( tab, "PassLineEdit" ); - PassLineEdit->setEchoMode( TQLineEdit::Password ); - - tabLayout->addMultiCellWidget( PassLineEdit, 2, 2, 1, 2 ); - - InfoEdit = new TQLineEdit( tab, "InfoEdit" ); - InfoEdit->setAlignment( int( TQLineEdit::AlignAuto ) ); - - tabLayout->addMultiCellWidget( InfoEdit, 0, 0, 1, 2 ); - - textLabel3 = new TQLabel( tab, "textLabel3" ); - textLabel3->setAlignment( int( TQLabel::AlignVCenter ) ); - - tabLayout->addWidget( textLabel3, 1, 0 ); - - textLabel2 = new TQLabel( tab, "textLabel2" ); - textLabel2->setAlignment( int( TQLabel::AlignVCenter ) ); - - tabLayout->addWidget( textLabel2, 0, 0 ); - - textLabel1 = new TQLabel( tab, "textLabel1" ); - textLabel1->setAlignment( int( TQLabel::AlignVCenter ) ); - - tabLayout->addWidget( textLabel1, 3, 0 ); - - textLabel1_2 = new TQLabel( tab, "textLabel1_2" ); - textLabel1_2->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) ); - - tabLayout->addWidget( textLabel1_2, 4, 0 ); - - AnonymousCheckBox = new TQCheckBox( tab, "AnonymousCheckBox" ); - - tabLayout->addWidget( AnonymousCheckBox, 1, 3 ); - spacer12 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); - tabLayout->addItem( spacer12, 5, 1 ); - - EncryptionComboBox = new TQComboBox( FALSE, tab, "EncryptionComboBox" ); - - tabLayout->addWidget( EncryptionComboBox, 3, 1 ); - - ModeComboBox = new TQComboBox( FALSE, tab, "ModeComboBox" ); - - tabLayout->addWidget( ModeComboBox, 4, 1 ); - spacer10 = new TQSpacerItem( 120, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); - tabLayout->addMultiCell( spacer10, 3, 4, 2, 3 ); - Custom->insertTab( tab, TQString("") ); - - tab_2 = new TQWidget( Custom, "tab_2" ); - tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 2, 6, "tabLayout_2"); - - textLabel2_2 = new TQLabel( tab_2, "textLabel2_2" ); - - tabLayout_2->addWidget( textLabel2_2, 1, 0 ); - - AlternativeFxpCheckBox = new TQCheckBox( tab_2, "AlternativeFxpCheckBox" ); - - tabLayout_2->addWidget( AlternativeFxpCheckBox, 1, 3 ); - - DefaultDirectoryEdit = new TQLineEdit( tab_2, "DefaultDirectoryEdit" ); - - tabLayout_2->addMultiCellWidget( DefaultDirectoryEdit, 0, 0, 1, 3 ); - - textLabel1_2_2_2_2 = new TQLabel( tab_2, "textLabel1_2_2_2_2" ); - - tabLayout_2->addMultiCellWidget( textLabel1_2_2_2_2, 2, 2, 0, 1 ); - - CorrectPasvCheckBox = new TQCheckBox( tab_2, "CorrectPasvCheckBox" ); - - tabLayout_2->addWidget( CorrectPasvCheckBox, 2, 3 ); - - textLabel3_2 = new TQLabel( tab_2, "textLabel3_2" ); - - tabLayout_2->addWidget( textLabel3_2, 0, 0 ); - spacer16 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); - tabLayout_2->addItem( spacer16, 3, 1 ); - spacer17 = new TQSpacerItem( 21, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); - tabLayout_2->addMultiCell( spacer17, 1, 2, 2, 2 ); - Custom->insertTab( tab_2, TQString("") ); - - KasablancaCustomConnectDialogLayout->addWidget( Custom, 0, 0 ); - languageChange(); - resize( TQSize(370, 214).expandedTo(minimumSizeHint()) ); - clearWState( WState_Polished ); -} - -/* - * Destroys the object and frees any allocated resources - */ -KasablancaCustomConnectDialog::~KasablancaCustomConnectDialog() -{ - // no need to delete child widgets, TQt does it all for us -} - -/* - * Sets the strings of the subwidgets using the current - * language. - */ -void KasablancaCustomConnectDialog::languageChange() -{ - setCaption( tr2i18n( "Custom Site" ) ); - textLabel4->setText( tr2i18n( "Password:" ) ); - TQWhatsThis::add( UserLineEdit, tr2i18n( "The ftp Login Username. On open ftp servers you usually login using \"anonymous\"." ) ); - TQWhatsThis::add( PassLineEdit, tr2i18n( "The user's password. Anonymous ftp servers ussually don't use passwords or accept passwords in the form of \"user@emailaddress.com\"." ) ); - InfoEdit->setText( TQString::null ); - TQWhatsThis::add( InfoEdit, tr2i18n( "This information points to the the ftp server. HOST can either be a standard ip adress like \"192.168.2.1\" or a domain name. PORT is the port number on which the ftp server listens. In most cases this is 21. Both are seperated by a \":\" character. A legit input would be \"ftp.kde.org:21\"." ) ); - textLabel3->setText( tr2i18n( "Username:" ) ); - textLabel2->setText( tr2i18n( "Host:Port:" ) ); - textLabel1->setText( tr2i18n( "Encryption:" ) ); - textLabel1_2->setText( tr2i18n( "Mode:" ) ); - AnonymousCheckBox->setText( tr2i18n( "Anonymous" ) ); - EncryptionComboBox->clear(); - EncryptionComboBox->insertItem( tr2i18n( "Unencrypted" ) ); - EncryptionComboBox->insertItem( tr2i18n( "Level 1" ) ); - EncryptionComboBox->insertItem( tr2i18n( "Level 2" ) ); - EncryptionComboBox->insertItem( tr2i18n( "Level 3" ) ); - TQWhatsThis::add( EncryptionComboBox, tr2i18n( "There are 4 encryption levels available. Unencrypted leaves all traffic clear and without encryption. Most ftp servers allow only this mode. Level 1 encryption means that the traffic on the control connection is encrypted while data transfer remains clear. Level 2 is basically the same with the exception of directory information which is transfered on the data channel, but is encrypted too. Eventually Level 3 encrypts everything all communication and all data traffic." ) ); - ModeComboBox->clear(); - ModeComboBox->insertItem( tr2i18n( "Passive Mode" ) ); - ModeComboBox->insertItem( tr2i18n( "Active Mode" ) ); - TQWhatsThis::add( ModeComboBox, tr2i18n( "The mode you are using for data transfer. This is quite important in case you're behind a firewall or a router. In these cases you depend on the passive mode, which makes the client connects to the ftp server for data transfer. Passive mode is the standard method today, while active mode is the old way to do data transfers, the client listens for the server to connect in active mode." ) ); - Custom->changeTab( tab, tr2i18n( "General" ) ); - textLabel2_2->setText( tr2i18n( "Alternative fxp:" ) ); - AlternativeFxpCheckBox->setText( tr2i18n( "Enabled" ) ); - textLabel1_2_2_2_2->setText( tr2i18n( "Correct pasv responses:" ) ); - CorrectPasvCheckBox->setText( tr2i18n( "Enabled" ) ); - textLabel3_2->setText( tr2i18n( "Default directory:" ) ); - Custom->changeTab( tab_2, tr2i18n( "Advanced" ) ); -} - -#include "Q_customconnectdialog.moc" diff --git a/src/Q_fileexistsdialog.cpp b/src/Q_fileexistsdialog.cpp deleted file mode 100644 index c3cba9b..0000000 --- a/src/Q_fileexistsdialog.cpp +++ /dev/null @@ -1,111 +0,0 @@ -#include -#include -/**************************************************************************** -** Form implementation generated from reading ui file '/home/mkulke/Development/kasablanca/src/Q_fileexistsdialog.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_fileexistsdialog.h" - -#include -#include -#include -#include -#include - -/* - * Constructs a KasablancaFileExistsDialog 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. - */ -KasablancaFileExistsDialog::KasablancaFileExistsDialog( TQWidget* parent, const char* name, bool modal, WFlags fl ) - : TQDialog( parent, name, modal, fl ) -{ - if ( !name ) - setName( "KasablancaFileExistsDialog" ); - setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) ); - setModal( TRUE ); - KasablancaFileExistsDialogLayout = new TQGridLayout( this, 1, 1, 2, 6, "KasablancaFileExistsDialogLayout"); - KasablancaFileExistsDialogLayout->setResizeMode( TQLayout::Fixed ); - - SkipButton = new TQPushButton( this, "SkipButton" ); - - KasablancaFileExistsDialogLayout->addWidget( SkipButton, 0, 3 ); - - ResumeButton = new TQPushButton( this, "ResumeButton" ); - ResumeButton->setEnabled( TRUE ); - - KasablancaFileExistsDialogLayout->addWidget( ResumeButton, 0, 1 ); - - RenameButton = new TQPushButton( this, "RenameButton" ); - RenameButton->setEnabled( TRUE ); - - KasablancaFileExistsDialogLayout->addWidget( RenameButton, 0, 2 ); - - OverwriteButton = new TQPushButton( this, "OverwriteButton" ); - - KasablancaFileExistsDialogLayout->addWidget( OverwriteButton, 0, 0 ); - languageChange(); - resize( TQSize(514, 57).expandedTo(minimumSizeHint()) ); - clearWState( WState_Polished ); - - // signals and slots connections - connect( SkipButton, SIGNAL( clicked() ), this, SLOT( Skip() ) ); - connect( OverwriteButton, SIGNAL( clicked() ), this, SLOT( Overwrite() ) ); - connect( ResumeButton, SIGNAL( clicked() ), this, SLOT( Resume() ) ); - connect( RenameButton, SIGNAL( clicked() ), this, SLOT( Rename() ) ); - - // tab order - setTabOrder( OverwriteButton, ResumeButton ); - setTabOrder( ResumeButton, RenameButton ); - setTabOrder( RenameButton, SkipButton ); -} - -/* - * Destroys the object and frees any allocated resources - */ -KasablancaFileExistsDialog::~KasablancaFileExistsDialog() -{ - // no need to delete child widgets, TQt does it all for us -} - -/* - * Sets the strings of the subwidgets using the current - * language. - */ -void KasablancaFileExistsDialog::languageChange() -{ - setCaption( tr2i18n( "File Exists" ) ); - SkipButton->setText( tr2i18n( "Skip" ) ); - ResumeButton->setText( tr2i18n( "Resume" ) ); - RenameButton->setText( tr2i18n( "Rename" ) ); - OverwriteButton->setText( tr2i18n( "Overwrite" ) ); -} - -void KasablancaFileExistsDialog::Skip() -{ - tqWarning( "KasablancaFileExistsDialog::Skip(): Not implemented yet" ); -} - -void KasablancaFileExistsDialog::Overwrite() -{ - tqWarning( "KasablancaFileExistsDialog::Overwrite(): Not implemented yet" ); -} - -void KasablancaFileExistsDialog::Resume() -{ - tqWarning( "KasablancaFileExistsDialog::Resume(): Not implemented yet" ); -} - -void KasablancaFileExistsDialog::Rename() -{ - tqWarning( "KasablancaFileExistsDialog::Rename(): Not implemented yet" ); -} - -#include "Q_fileexistsdialog.moc" diff --git a/src/Q_generalpreferencesdialog.cpp b/src/Q_generalpreferencesdialog.cpp deleted file mode 100644 index 4e97d05..0000000 --- a/src/Q_generalpreferencesdialog.cpp +++ /dev/null @@ -1,176 +0,0 @@ -#include -#include -/**************************************************************************** -** Form implementation generated from reading ui file '/home/mkulke/Development/kasablanca/src/Q_generalpreferencesdialog.ui' -** -** Created: Mo Jan 31 15:02:08 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_generalpreferencesdialog.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/* - * Constructs a KasablancaGeneralPreferencesDialog 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. - */ -KasablancaGeneralPreferencesDialog::KasablancaGeneralPreferencesDialog( TQWidget* parent, const char* name, bool modal, WFlags fl ) - : TQDialog( parent, name, modal, fl ) -{ - if ( !name ) - setName( "KasablancaGeneralPreferencesDialog" ); - setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) ); - setSizeGripEnabled( FALSE ); - KasablancaGeneralPreferencesDialogLayout = new TQGridLayout( this, 1, 1, 11, 6, "KasablancaGeneralPreferencesDialogLayout"); - KasablancaGeneralPreferencesDialogLayout->setResizeMode( TQLayout::Minimum ); - spacer2_2 = new TQSpacerItem( 20, 78, TQSizePolicy::Minimum, TQSizePolicy::Fixed ); - KasablancaGeneralPreferencesDialogLayout->addItem( spacer2_2, 3, 0 ); - - textLabel1_3 = new TQLabel( this, "textLabel1_3" ); - - KasablancaGeneralPreferencesDialogLayout->addWidget( textLabel1_3, 4, 0 ); - - textLabel1 = new TQLabel( this, "textLabel1" ); - - KasablancaGeneralPreferencesDialogLayout->addWidget( textLabel1, 0, 0 ); - - textLabel1_2 = new TQLabel( this, "textLabel1_2" ); - - KasablancaGeneralPreferencesDialogLayout->addWidget( textLabel1_2, 1, 0 ); - - textLabel1_2_2 = new TQLabel( this, "textLabel1_2_2" ); - - KasablancaGeneralPreferencesDialogLayout->addWidget( textLabel1_2_2, 2, 0 ); - spacer2 = new TQSpacerItem( 20, 78, TQSizePolicy::Minimum, TQSizePolicy::Fixed ); - KasablancaGeneralPreferencesDialogLayout->addItem( spacer2, 3, 3 ); - - kcfg_Skiplist = new TQLineEdit( this, "kcfg_Skiplist" ); - - KasablancaGeneralPreferencesDialogLayout->addMultiCellWidget( kcfg_Skiplist, 0, 0, 1, 2 ); - - kcfg_OnQueueFinished = new TQLineEdit( this, "kcfg_OnQueueFinished" ); - - KasablancaGeneralPreferencesDialogLayout->addMultiCellWidget( kcfg_OnQueueFinished, 1, 1, 1, 2 ); - - buttonGroup1 = new TQButtonGroup( this, "buttonGroup1" ); - buttonGroup1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, buttonGroup1->sizePolicy().hasHeightForWidth() ) ); - buttonGroup1->setColumnLayout(0, TQt::Vertical ); - buttonGroup1->layout()->setSpacing( 6 ); - buttonGroup1->layout()->setMargin( 11 ); - buttonGroup1Layout = new TQGridLayout( buttonGroup1->layout() ); - buttonGroup1Layout->setAlignment( TQt::AlignTop ); - - kcfg_OnFileExistsResume = new TQRadioButton( buttonGroup1, "kcfg_OnFileExistsResume" ); - - buttonGroup1Layout->addWidget( kcfg_OnFileExistsResume, 1, 0 ); - - kcfg_OnFileExistsSkip = new TQRadioButton( buttonGroup1, "kcfg_OnFileExistsSkip" ); - - buttonGroup1Layout->addWidget( kcfg_OnFileExistsSkip, 2, 0 ); - - kcfg_OnFileExistsOverwrite = new TQRadioButton( buttonGroup1, "kcfg_OnFileExistsOverwrite" ); - - buttonGroup1Layout->addWidget( kcfg_OnFileExistsOverwrite, 0, 0 ); - - KasablancaGeneralPreferencesDialogLayout->addMultiCellWidget( buttonGroup1, 2, 3, 1, 2 ); - - kcfg_Prioritylist = new TQLineEdit( this, "kcfg_Prioritylist" ); - - KasablancaGeneralPreferencesDialogLayout->addMultiCellWidget( kcfg_Prioritylist, 4, 4, 1, 2 ); - - textLabel1_3_2 = new TQLabel( this, "textLabel1_3_2" ); - - KasablancaGeneralPreferencesDialogLayout->addMultiCellWidget( textLabel1_3_2, 5, 5, 0, 1 ); - - textLabel1_3_2_2 = new TQLabel( this, "textLabel1_3_2_2" ); - - KasablancaGeneralPreferencesDialogLayout->addMultiCellWidget( textLabel1_3_2_2, 6, 6, 0, 1 ); - spacer9 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); - KasablancaGeneralPreferencesDialogLayout->addItem( spacer9, 7, 2 ); - - kcfg_SkiplistIsEnabled = new TQCheckBox( this, "kcfg_SkiplistIsEnabled" ); - - KasablancaGeneralPreferencesDialogLayout->addWidget( kcfg_SkiplistIsEnabled, 0, 3 ); - - kcfg_OnQueueFinishedIsEnabled = new TQCheckBox( this, "kcfg_OnQueueFinishedIsEnabled" ); - - KasablancaGeneralPreferencesDialogLayout->addWidget( kcfg_OnQueueFinishedIsEnabled, 1, 3 ); - - kcfg_OnFileExistsIsEnabled = new TQCheckBox( this, "kcfg_OnFileExistsIsEnabled" ); - - KasablancaGeneralPreferencesDialogLayout->addWidget( kcfg_OnFileExistsIsEnabled, 2, 3 ); - - kcfg_PrioritylistIsEnabled = new TQCheckBox( this, "kcfg_PrioritylistIsEnabled" ); - - KasablancaGeneralPreferencesDialogLayout->addWidget( kcfg_PrioritylistIsEnabled, 4, 3 ); - - kcfg_DirCachingIsEnabled = new TQCheckBox( this, "kcfg_DirCachingIsEnabled" ); - - KasablancaGeneralPreferencesDialogLayout->addWidget( kcfg_DirCachingIsEnabled, 5, 3 ); - - kcfg_DeleteMovesIntoTrashIsEnabled = new TQCheckBox( this, "kcfg_DeleteMovesIntoTrashIsEnabled" ); - - KasablancaGeneralPreferencesDialogLayout->addWidget( kcfg_DeleteMovesIntoTrashIsEnabled, 6, 3 ); - spacer10 = new TQSpacerItem( 81, 51, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); - KasablancaGeneralPreferencesDialogLayout->addMultiCell( spacer10, 5, 6, 2, 2 ); - languageChange(); - resize( TQSize(455, 303).expandedTo(minimumSizeHint()) ); - clearWState( WState_Polished ); -} - -/* - * Destroys the object and frees any allocated resources - */ -KasablancaGeneralPreferencesDialog::~KasablancaGeneralPreferencesDialog() -{ - // no need to delete child widgets, TQt does it all for us -} - -/* - * Sets the strings of the subwidgets using the current - * language. - */ -void KasablancaGeneralPreferencesDialog::languageChange() -{ - setCaption( tr2i18n( "General" ) ); - TQWhatsThis::add( this, tr2i18n( "Directory caching means that once you browsed a folder on a ftp session the content of that folder is cached, and will be loaded from there in case you enter it again. This can speed up browsing especially with large dirs. If you want a fresh representation of the dir content, you can press the refresh button." ) ); - textLabel1_3->setText( tr2i18n( "Priority list:" ) ); - textLabel1->setText( tr2i18n( "Skiplist:" ) ); - textLabel1_2->setText( tr2i18n( "On queue finished:" ) ); - textLabel1_2_2->setText( tr2i18n( "On file exist:" ) ); - TQWhatsThis::add( kcfg_Skiplist, tr2i18n( "Here you can enter a Regular Expression. Transfer items which match this Regular Expression are skipped. For example a value of \"^\\.\" excludes every entry beginning with \".\" from transfer." ) ); - TQWhatsThis::add( kcfg_OnQueueFinished, tr2i18n( "This field can hold an executable and its arguments which will be run, when last item of in queue has finished transferring. For Example, on TDE desktops the entry \"dcop ksmserver ksmserver logout 0 0 0\" would shutdown the computer automatically." ) ); - buttonGroup1->setTitle( TQString::null ); - kcfg_OnFileExistsResume->setText( tr2i18n( "Resume (if possible)" ) ); - TQWhatsThis::add( kcfg_OnFileExistsResume, tr2i18n( "These Radio Buttons indicate how the application should proceed if a file to be transfered already exists on the destination. Usually the user is asked by the application how to proceed if this occurs, in case you aren't present during the transfer you can enable this feature." ) ); - kcfg_OnFileExistsSkip->setText( tr2i18n( "Skip" ) ); - TQWhatsThis::add( kcfg_OnFileExistsSkip, tr2i18n( "These Radio Buttons indicate how the application should proceed if a file to be transfered already exists on the destination. Usually the user is asked by the application how to proceed if this occurs, in case you aren't present during the transfer you can enable this feature." ) ); - kcfg_OnFileExistsOverwrite->setText( tr2i18n( "Overwrite" ) ); - TQWhatsThis::add( kcfg_OnFileExistsOverwrite, tr2i18n( "These Radio Buttons indicate how the application should proceed if a file to be transfered already exists on the destination. Usually the user is asked by the application how to proceed if this occurs, in case you aren't present during the transfer you can enable this feature." ) ); - TQWhatsThis::add( kcfg_Prioritylist, tr2i18n( "This Field contains a regular expression, which queues the items matching this regular expression before the items which don't. For example, \".sfv\" would make the common checksum files with this fileending transfer first." ) ); - textLabel1_3_2->setText( tr2i18n( "Directory caching:" ) ); - textLabel1_3_2_2->setText( tr2i18n( "Delete moves files into trash:" ) ); - kcfg_SkiplistIsEnabled->setText( tr2i18n( "Enabled" ) ); - kcfg_OnQueueFinishedIsEnabled->setText( tr2i18n( "Enabled" ) ); - kcfg_OnFileExistsIsEnabled->setText( tr2i18n( "Enabled" ) ); - kcfg_PrioritylistIsEnabled->setText( tr2i18n( "Enabled" ) ); - kcfg_DirCachingIsEnabled->setText( tr2i18n( "Enabled" ) ); - kcfg_DeleteMovesIntoTrashIsEnabled->setText( tr2i18n( "Enabled" ) ); -} - -#include "Q_generalpreferencesdialog.moc" diff --git a/src/Q_importdialog.cpp b/src/Q_importdialog.cpp deleted file mode 100644 index 4b5679b..0000000 --- a/src/Q_importdialog.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include -#include -/**************************************************************************** -** Form implementation generated from reading ui file '/home/mkulke/Development/kasablanca/src/Q_importdialog.ui' -** -** Created: Mo Jan 31 15:02:10 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_importdialog.h" - -#include -#include -#include -#include -#include -#include -#include - -/* - * Constructs a KasablancaImportDialog as a child of 'parent', with the - * name 'name' and widget flags set to 'f'. - */ -KasablancaImportDialog::KasablancaImportDialog( TQWidget* parent, const char* name, WFlags fl ) - : TQWidget( parent, name, fl ) -{ - if ( !name ) - setName( "KasablancaImportDialog" ); - KasablancaImportDialogLayout = new TQGridLayout( this, 1, 1, 11, 6, "KasablancaImportDialogLayout"); - - ImportGroupBox = new TQButtonGroup( this, "ImportGroupBox" ); - ImportGroupBox->setColumnLayout(0, TQt::Vertical ); - ImportGroupBox->layout()->setSpacing( 6 ); - ImportGroupBox->layout()->setMargin( 11 ); - ImportGroupBoxLayout = new TQGridLayout( ImportGroupBox->layout() ); - ImportGroupBoxLayout->setAlignment( TQt::AlignTop ); - - GftpRadioButton = new TQRadioButton( ImportGroupBox, "GftpRadioButton" ); - GftpRadioButton->setChecked( TRUE ); - - ImportGroupBoxLayout->addWidget( GftpRadioButton, 0, 0 ); - - KasablancaImportDialogLayout->addWidget( ImportGroupBox, 0, 0 ); - languageChange(); - resize( TQSize(231, 80).expandedTo(minimumSizeHint()) ); - clearWState( WState_Polished ); -} - -/* - * Destroys the object and frees any allocated resources - */ -KasablancaImportDialog::~KasablancaImportDialog() -{ - // no need to delete child widgets, TQt does it all for us -} - -/* - * Sets the strings of the subwidgets using the current - * language. - */ -void KasablancaImportDialog::languageChange() -{ - setCaption( tr2i18n( "Import Bookmarks" ) ); - ImportGroupBox->setTitle( tr2i18n( "Import filter" ) ); - GftpRadioButton->setText( tr2i18n( "gFtp" ) ); -} - -#include "Q_importdialog.moc" 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 -#include -/**************************************************************************** -** 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 -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#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" diff --git a/src/Q_userinterfacepreferencesdialog.cpp b/src/Q_userinterfacepreferencesdialog.cpp deleted file mode 100644 index 5433cfa..0000000 --- a/src/Q_userinterfacepreferencesdialog.cpp +++ /dev/null @@ -1,102 +0,0 @@ -#include -#include -/**************************************************************************** -** Form implementation generated from reading ui file '/home/mkulke/Development/kasablanca/src/Q_userinterfacepreferencesdialog.ui' -** -** Created: Mo Jan 31 15:02:09 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_userinterfacepreferencesdialog.h" - -#include -#include -#include -#include -#include -#include -#include - -/* - * Constructs a KasablancaUserInterfacePreferencesDialog 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. - */ -KasablancaUserInterfacePreferencesDialog::KasablancaUserInterfacePreferencesDialog( TQWidget* parent, const char* name, bool modal, WFlags fl ) - : TQDialog( parent, name, modal, fl ) -{ - if ( !name ) - setName( "KasablancaUserInterfacePreferencesDialog" ); - KasablancaUserInterfacePreferencesDialogLayout = new TQGridLayout( this, 1, 1, 11, 6, "KasablancaUserInterfacePreferencesDialogLayout"); - spacer4 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); - KasablancaUserInterfacePreferencesDialogLayout->addItem( spacer4, 4, 3 ); - - textLabel1_2_2_2_2 = new TQLabel( this, "textLabel1_2_2_2_2" ); - - KasablancaUserInterfacePreferencesDialogLayout->addMultiCellWidget( textLabel1_2_2_2_2, 0, 0, 0, 1 ); - - textLabel1_2_2_2_2_2 = new TQLabel( this, "textLabel1_2_2_2_2_2" ); - - KasablancaUserInterfacePreferencesDialogLayout->addMultiCellWidget( textLabel1_2_2_2_2_2, 1, 1, 0, 1 ); - - textLabel1_2_2_2_2_2_3 = new TQLabel( this, "textLabel1_2_2_2_2_2_3" ); - - KasablancaUserInterfacePreferencesDialogLayout->addMultiCellWidget( textLabel1_2_2_2_2_2_3, 2, 2, 0, 2 ); - - kcfg_SystrayIsEnabled = new TQCheckBox( this, "kcfg_SystrayIsEnabled" ); - - KasablancaUserInterfacePreferencesDialogLayout->addWidget( kcfg_SystrayIsEnabled, 0, 4 ); - - kcfg_CommandLineIsEnabled = new TQCheckBox( this, "kcfg_CommandLineIsEnabled" ); - - KasablancaUserInterfacePreferencesDialogLayout->addWidget( kcfg_CommandLineIsEnabled, 1, 4 ); - - kcfg_HideHiddenFilesIsEnabled = new TQCheckBox( this, "kcfg_HideHiddenFilesIsEnabled" ); - - KasablancaUserInterfacePreferencesDialogLayout->addWidget( kcfg_HideHiddenFilesIsEnabled, 2, 4 ); - - kcfg_LogwindowFont = new TDEFontRequester( this, "kcfg_LogwindowFont" ); - - KasablancaUserInterfacePreferencesDialogLayout->addMultiCellWidget( kcfg_LogwindowFont, 3, 3, 2, 4 ); - - textLabel1_2_2_2_2_2_2 = new TQLabel( this, "textLabel1_2_2_2_2_2_2" ); - - KasablancaUserInterfacePreferencesDialogLayout->addWidget( textLabel1_2_2_2_2_2_2, 3, 0 ); - spacer3 = new TQSpacerItem( 140, 58, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); - KasablancaUserInterfacePreferencesDialogLayout->addMultiCell( spacer3, 0, 1, 2, 3 ); - spacer3_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); - KasablancaUserInterfacePreferencesDialogLayout->addItem( spacer3_2, 3, 1 ); - languageChange(); - resize( TQSize(448, 165).expandedTo(minimumSizeHint()) ); - clearWState( WState_Polished ); -} - -/* - * Destroys the object and frees any allocated resources - */ -KasablancaUserInterfacePreferencesDialog::~KasablancaUserInterfacePreferencesDialog() -{ - // no need to delete child widgets, TQt does it all for us -} - -/* - * Sets the strings of the subwidgets using the current - * language. - */ -void KasablancaUserInterfacePreferencesDialog::languageChange() -{ - setCaption( tr2i18n( "User Interface" ) ); - textLabel1_2_2_2_2->setText( tr2i18n( "Show system tray icon:" ) ); - textLabel1_2_2_2_2_2->setText( tr2i18n( "Show command lines:" ) ); - textLabel1_2_2_2_2_2_3->setText( tr2i18n( "Hide hidden files from view:" ) ); - kcfg_SystrayIsEnabled->setText( tr2i18n( "Enabled" ) ); - kcfg_CommandLineIsEnabled->setText( tr2i18n( "Enabled" ) ); - kcfg_HideHiddenFilesIsEnabled->setText( tr2i18n( "Enabled" ) ); - textLabel1_2_2_2_2_2_2->setText( tr2i18n( "Logwindow Font:" ) ); -} - -#include "Q_userinterfacepreferencesdialog.moc" diff --git a/src/bookmarkdialog.cpp b/src/bookmarkdialog.cpp index 1cb0a83..0422dd2 100644 --- a/src/bookmarkdialog.cpp +++ b/src/bookmarkdialog.cpp @@ -17,13 +17,13 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include #include diff --git a/src/customconnectdialog.cpp b/src/customconnectdialog.cpp index a187d3e..8fb2e3c 100644 --- a/src/customconnectdialog.cpp +++ b/src/customconnectdialog.cpp @@ -17,11 +17,11 @@ #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include "kbsiteinfo.h" #include "customconnectdialog.h" diff --git a/src/eventhandler.cpp b/src/eventhandler.cpp index 242c05f..3f66b2b 100644 --- a/src/eventhandler.cpp +++ b/src/eventhandler.cpp @@ -18,7 +18,7 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#include +#include #include "ftpthread.h" #include "eventhandler.h" diff --git a/src/eventhandler.h b/src/eventhandler.h index f4dd2fc..df29b07 100644 --- a/src/eventhandler.h +++ b/src/eventhandler.h @@ -20,8 +20,8 @@ #ifndef EVENTHANDLER_H #define EVENTHANDLER_H -#include -#include +#include +#include #include #include "kbfileinfo.h" diff --git a/src/fileexistsdialog.h b/src/fileexistsdialog.h index 9da932d..937162c 100644 --- a/src/fileexistsdialog.h +++ b/src/fileexistsdialog.h @@ -18,7 +18,7 @@ #ifndef FILEEXISTSDIALOG_H #define FILEEXISTSDIALOG_H -#include +#include #include "Q_fileexistsdialog.h" /** diff --git a/src/ftpsession.cpp b/src/ftpsession.cpp index 3b8e236..5c62f3a 100644 --- a/src/ftpsession.cpp +++ b/src/ftpsession.cpp @@ -23,19 +23,19 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "fileexistsdialog.h" #include "customconnectdialog.h" diff --git a/src/ftpsession.h b/src/ftpsession.h index ce4cf1b..58914eb 100644 --- a/src/ftpsession.h +++ b/src/ftpsession.h @@ -13,11 +13,11 @@ #define FTPSESSION_H #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include "kbfileinfo.h" diff --git a/src/ftpthread.cpp b/src/ftpthread.cpp index 17a0f1f..f171918 100644 --- a/src/ftpthread.cpp +++ b/src/ftpthread.cpp @@ -25,9 +25,9 @@ #include -#include -#include -#include +#include +#include +#include #include #include diff --git a/src/ftpthread.h b/src/ftpthread.h index 04609b5..704ec66 100644 --- a/src/ftpthread.h +++ b/src/ftpthread.h @@ -23,10 +23,10 @@ #define KB_THREAD_TIMEOUT 1000 #include -#include -#include -#include -#include +#include +#include +#include +#include #include "eventhandler.h" #include "kbfileinfo.h" diff --git a/src/importdialog.cpp b/src/importdialog.cpp index 80f3525..e138a93 100644 --- a/src/importdialog.cpp +++ b/src/importdialog.cpp @@ -12,10 +12,10 @@ // // -#include -#include -#include -#include +#include +#include +#include +#include #include #include diff --git a/src/kasablanca.cpp b/src/kasablanca.cpp index 84f36ad..500330e 100644 --- a/src/kasablanca.cpp +++ b/src/kasablanca.cpp @@ -36,13 +36,13 @@ #include #include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include "Q_colorspreferencesdialog.h" #include "Q_generalpreferencesdialog.h" diff --git a/src/kasablanca.h b/src/kasablanca.h index 54a9456..41d6bf8 100644 --- a/src/kasablanca.h +++ b/src/kasablanca.h @@ -38,10 +38,10 @@ class KbStatusTip; #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include diff --git a/src/kbbookmarkitem.h b/src/kbbookmarkitem.h index a98db32..1967676 100644 --- a/src/kbbookmarkitem.h +++ b/src/kbbookmarkitem.h @@ -12,7 +12,7 @@ #ifndef KBBOOKMARKITEM_H #define KBBOOKMARKITEM_H -#include +#include class KbSiteInfo; diff --git a/src/kbdir.h b/src/kbdir.h index 8329bd1..9c9a678 100644 --- a/src/kbdir.h +++ b/src/kbdir.h @@ -19,7 +19,7 @@ #define DIRITEM_H #include "kbitem.h" -#include +#include /** *@author mkulke diff --git a/src/kbdirinfo.cpp b/src/kbdirinfo.cpp index 220427f..db4b668 100644 --- a/src/kbdirinfo.cpp +++ b/src/kbdirinfo.cpp @@ -10,7 +10,7 @@ // // -#include +#include #include diff --git a/src/kbfile.h b/src/kbfile.h index c388245..156f150 100644 --- a/src/kbfile.h +++ b/src/kbfile.h @@ -18,7 +18,7 @@ #ifndef FILEITEM_H #define FILEITEM_H -#include +#include #include "kbitem.h" class KbFileInfo; diff --git a/src/kbfileinfo.cpp b/src/kbfileinfo.cpp index 6b74173..60e68d0 100644 --- a/src/kbfileinfo.cpp +++ b/src/kbfileinfo.cpp @@ -15,8 +15,8 @@ #define _LARGEFILE_SOURCE #define _LARGEFILE64_SOURCE -#include -#include +#include +#include #include "kbconfig.h" #include "kbitem.h" diff --git a/src/kbfileinfo.h b/src/kbfileinfo.h index 6f0bd4a..8fd40c6 100644 --- a/src/kbfileinfo.h +++ b/src/kbfileinfo.h @@ -12,7 +12,7 @@ #ifndef KBFILEINFO_H #define KBFILEINFO_H -#include +#include class KbItem; diff --git a/src/kbitem.cpp b/src/kbitem.cpp index 5082e0f..7eee111 100644 --- a/src/kbitem.cpp +++ b/src/kbitem.cpp @@ -15,7 +15,7 @@ #define _LARGEFILE_SOURCE #define _LARGEFILE64_SOURCE -#include +#include #include "kbfileinfo.h" #include "kbitem.h" diff --git a/src/kbitem.h b/src/kbitem.h index f4ff79f..c2a6849 100644 --- a/src/kbitem.h +++ b/src/kbitem.h @@ -12,7 +12,7 @@ #ifndef KBITEM_H #define KBITEM_H -#include +#include class KbFileInfo; diff --git a/src/kbsiteinfo.cpp b/src/kbsiteinfo.cpp index 353f9a4..78e59ab 100644 --- a/src/kbsiteinfo.cpp +++ b/src/kbsiteinfo.cpp @@ -13,10 +13,10 @@ #include -#include -#include -#include -#include +#include +#include +#include +#include #include "kbsiteinfo.h" diff --git a/src/kbsiteinfo.h b/src/kbsiteinfo.h index a49a22a..fb9854a 100644 --- a/src/kbsiteinfo.h +++ b/src/kbsiteinfo.h @@ -12,7 +12,7 @@ #ifndef KBSITEINFO_H #define KBSITEINFO_H -#include +#include #include diff --git a/src/kbstatustip.cpp b/src/kbstatustip.cpp index 5cc99f6..18b6043 100644 --- a/src/kbstatustip.cpp +++ b/src/kbstatustip.cpp @@ -10,7 +10,7 @@ // // -#include +#include #include "kbstatustip.h" diff --git a/src/kbstatustip.h b/src/kbstatustip.h index 26a3c01..8b957cd 100644 --- a/src/kbstatustip.h +++ b/src/kbstatustip.h @@ -12,7 +12,7 @@ #ifndef KBSTATUSTIP_H #define KBSTATUSTIP_H -#include +#include /** @author Magnus Kulke diff --git a/src/kbtaskview.cpp b/src/kbtaskview.cpp index ed1912c..9b00adf 100644 --- a/src/kbtaskview.cpp +++ b/src/kbtaskview.cpp @@ -13,8 +13,8 @@ #include -#include -#include +#include +#include #include "kbtaskview.h" #include "kbfileinfo.h" diff --git a/src/kbtransferfile.cpp b/src/kbtransferfile.cpp index b55ba1b..6ec142a 100644 --- a/src/kbtransferfile.cpp +++ b/src/kbtransferfile.cpp @@ -23,8 +23,8 @@ #define _LARGEFILE_SOURCE #define _LARGEFILE64_SOURCE -#include -#include +#include +#include #include "kbstatustip.h" #include "kbsiteinfo.h" diff --git a/src/kbtransferitem.h b/src/kbtransferitem.h index 00f3fb9..b99234b 100644 --- a/src/kbtransferitem.h +++ b/src/kbtransferitem.h @@ -22,8 +22,8 @@ #include #include -#include -#include +#include +#include #include "ftpsession.h" #include "kbfileinfo.h" -- cgit v1.2.1