Removed cpp files generated from ui files. This resolves issue #1. Signed-off-by: gregory guy <g-gregory@gmx.fr> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>pull/2/head
parent
0d6799189c
commit
f92c11dfdc
@ -0,0 +1,78 @@
|
|||||||
|
############################################
|
||||||
|
# #
|
||||||
|
# Improvements and feedbacks are welcome #
|
||||||
|
# #
|
||||||
|
# This file is released under GPL >= 3 #
|
||||||
|
# #
|
||||||
|
############################################
|
||||||
|
|
||||||
|
|
||||||
|
cmake_minimum_required( VERSION 2.8 )
|
||||||
|
|
||||||
|
|
||||||
|
#### general package setup
|
||||||
|
|
||||||
|
project( kasablanca )
|
||||||
|
set( VERSION R14.1.0 )
|
||||||
|
|
||||||
|
|
||||||
|
#### include essential cmake modules
|
||||||
|
|
||||||
|
include( FindPkgConfig )
|
||||||
|
include( CheckFunctionExists )
|
||||||
|
include( CheckSymbolExists )
|
||||||
|
include( CheckIncludeFile )
|
||||||
|
include( CheckLibraryExists )
|
||||||
|
include( CheckCSourceCompiles )
|
||||||
|
include( CheckCXXSourceCompiles )
|
||||||
|
|
||||||
|
|
||||||
|
#### include our cmake modules
|
||||||
|
|
||||||
|
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
|
||||||
|
include( TDEMacros )
|
||||||
|
|
||||||
|
|
||||||
|
##### setup install paths
|
||||||
|
|
||||||
|
include( TDESetupPaths )
|
||||||
|
tde_setup_paths( )
|
||||||
|
|
||||||
|
|
||||||
|
##### optional stuff
|
||||||
|
|
||||||
|
option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
|
||||||
|
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
|
||||||
|
|
||||||
|
|
||||||
|
##### user requested modules
|
||||||
|
|
||||||
|
option( BUILD_ALL "Build all" ON )
|
||||||
|
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
|
||||||
|
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
|
||||||
|
|
||||||
|
|
||||||
|
##### configure checks
|
||||||
|
|
||||||
|
include( ConfigureChecks.cmake )
|
||||||
|
|
||||||
|
|
||||||
|
###### global compiler settings
|
||||||
|
|
||||||
|
add_definitions( -DHAVE_CONFIG_H -UTQT_NO_ASCII_CAST )
|
||||||
|
|
||||||
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
|
||||||
|
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
|
||||||
|
set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
|
||||||
|
|
||||||
|
|
||||||
|
##### directories
|
||||||
|
|
||||||
|
add_subdirectory( src )
|
||||||
|
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
||||||
|
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
|
||||||
|
|
||||||
|
|
||||||
|
##### write configure files
|
||||||
|
|
||||||
|
configure_file( config.h.cmake config.h @ONLY )
|
@ -0,0 +1,33 @@
|
|||||||
|
###########################################
|
||||||
|
# #
|
||||||
|
# Improvements and feedback are welcome #
|
||||||
|
# #
|
||||||
|
# This file is released under GPL >= 3 #
|
||||||
|
# #
|
||||||
|
###########################################
|
||||||
|
|
||||||
|
# required stuff
|
||||||
|
find_package( TQt )
|
||||||
|
find_package( TDE )
|
||||||
|
|
||||||
|
tde_setup_architecture_flags( )
|
||||||
|
|
||||||
|
include(TestBigEndian)
|
||||||
|
test_big_endian(WORDS_BIGENDIAN)
|
||||||
|
|
||||||
|
tde_setup_largefiles( )
|
||||||
|
|
||||||
|
|
||||||
|
##### check for gcc visibility support
|
||||||
|
|
||||||
|
if( WITH_GCC_VISIBILITY )
|
||||||
|
tde_setup_gcc_visibility( )
|
||||||
|
endif( WITH_GCC_VISIBILITY )
|
||||||
|
|
||||||
|
|
||||||
|
##### check for OpenSSL
|
||||||
|
|
||||||
|
find_package( OpenSSL )
|
||||||
|
if( NOT OPENSSL_FOUND )
|
||||||
|
tde_message_fatal( "SSL support is required but OpenSSL was not found on your system" )
|
||||||
|
endif( NOT OPENSSL_FOUND )
|
@ -0,0 +1,8 @@
|
|||||||
|
#define VERSION "@VERSION@"
|
||||||
|
|
||||||
|
// Defined if you have fvisibility and fvisibility-inlines-hidden support.
|
||||||
|
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
|
||||||
|
|
||||||
|
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||||
|
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||||
|
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
|
@ -0,0 +1 @@
|
|||||||
|
tde_auto_add_subdirectories( )
|
@ -0,0 +1,2 @@
|
|||||||
|
tde_create_handbook( DESTINATION ${PROJECT_NAME} )
|
||||||
|
|
@ -0,0 +1,5 @@
|
|||||||
|
INSTALL(
|
||||||
|
FILES ${PROJECT_NAME}.1
|
||||||
|
DESTINATION ${MAN_INSTALL_DIR}/man1
|
||||||
|
COMPONENT doc
|
||||||
|
)
|
@ -0,0 +1,72 @@
|
|||||||
|
'\" -*- coding: us-ascii -*-
|
||||||
|
.if \n(.g .ds T< \\FC
|
||||||
|
.if \n(.g .ds T> \\F[\n[.fam]]
|
||||||
|
.de URL
|
||||||
|
\\$2 \(la\\$1\(ra\\$3
|
||||||
|
..
|
||||||
|
.if \n(.g .mso www.tmac
|
||||||
|
.TH kasablanca 1 "mars 22, 2006" "" ""
|
||||||
|
.SH NAME
|
||||||
|
kasablanca \- fast and free ftp client for TDE
|
||||||
|
.SH SYNOPSIS
|
||||||
|
'nh
|
||||||
|
.fi
|
||||||
|
.ad l
|
||||||
|
\fBkasablanca\fR \kx
|
||||||
|
.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
|
||||||
|
'in \n(.iu+\nxu
|
||||||
|
[\fB\fIoptions\fB\fR]
|
||||||
|
'in \n(.iu-\nxu
|
||||||
|
.ad b
|
||||||
|
'hy
|
||||||
|
.SH DESCRIPTION
|
||||||
|
\fBkasablanca\fR is an ftp client, written in c++, using the tde libraries.
|
||||||
|
.PP
|
||||||
|
Features:
|
||||||
|
|
||||||
|
* ftps encryption via AUTH TLS
|
||||||
|
.br
|
||||||
|
* fxp (direct server to server transfer), supporting alternative mode
|
||||||
|
.br
|
||||||
|
* advanced bookmarking system
|
||||||
|
.br
|
||||||
|
* fast responsive multithreaded engine
|
||||||
|
.br
|
||||||
|
* concurrent connections to multiple hosts
|
||||||
|
.br
|
||||||
|
* interactive transfer queue, movable by drag and drop
|
||||||
|
.br
|
||||||
|
* small nifty features, like a skiplist
|
||||||
|
.SH OPTIONS
|
||||||
|
All TDE and Qt programs accept some common command-line options.
|
||||||
|
\fBkasablanca\fR has no application-specific options.
|
||||||
|
.TP
|
||||||
|
\*(T<\fB\-\-help\fR\*(T>
|
||||||
|
Show help about options
|
||||||
|
.TP
|
||||||
|
\*(T<\fB\-\-help\-qt\fR\*(T>
|
||||||
|
Show Qt specific options
|
||||||
|
.TP
|
||||||
|
\*(T<\fB\-\-help\-tde\fR\*(T>
|
||||||
|
Show TDE specific options
|
||||||
|
.TP
|
||||||
|
\*(T<\fB\-\-help\-all\fR\*(T>
|
||||||
|
Show all options
|
||||||
|
.TP
|
||||||
|
\*(T<\fB\-\-author\fR\*(T>
|
||||||
|
Show author information
|
||||||
|
.TP
|
||||||
|
\*(T<\fB\-v\fR\*(T> \*(T<\fB\-\-version\fR\*(T>
|
||||||
|
Show version information
|
||||||
|
.TP
|
||||||
|
\*(T<\fB\-\-license\fR\*(T>
|
||||||
|
Show license information
|
||||||
|
.SH AUTHOR
|
||||||
|
This manual page was written by Fathi Boudra <<\*(T<fboudra@free.fr\*(T>>> for
|
||||||
|
the Debian system (but may be used by others). Permission is
|
||||||
|
granted to copy, distribute and/or modify this document under
|
||||||
|
the terms of the GNU General Public License, Version 2 any
|
||||||
|
later version published by the Free Software Foundation.
|
||||||
|
.PP
|
||||||
|
On Debian systems, the complete text of the GNU General Public
|
||||||
|
License can be found in /usr/share/common-licenses/GPL.
|
@ -0,0 +1,5 @@
|
|||||||
|
file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
|
||||||
|
|
||||||
|
if( _srcs )
|
||||||
|
tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} )
|
||||||
|
endif( )
|
@ -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}
|
||||||
|
)
|
@ -1,214 +0,0 @@
|
|||||||
#include <kdialog.h>
|
|
||||||
#include <tdelocale.h>
|
|
||||||
/****************************************************************************
|
|
||||||
** 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 <ntqvariant.h>
|
|
||||||
#include <ntqpushbutton.h>
|
|
||||||
#include <ntqsplitter.h>
|
|
||||||
#include <ntqheader.h>
|
|
||||||
#include <tdelistview.h>
|
|
||||||
#include <ntqtabwidget.h>
|
|
||||||
#include <klineedit.h>
|
|
||||||
#include <ntqlabel.h>
|
|
||||||
#include <kcombobox.h>
|
|
||||||
#include <ntqlineedit.h>
|
|
||||||
#include <ntqcheckbox.h>
|
|
||||||
#include <ntqlayout.h>
|
|
||||||
#include <ntqtooltip.h>
|
|
||||||
#include <ntqwhatsthis.h>
|
|
||||||
|
|
||||||
/*
|
|
||||||
* 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"
|
|
@ -1,100 +0,0 @@
|
|||||||
#include <kdialog.h>
|
|
||||||
#include <tdelocale.h>
|
|
||||||
/****************************************************************************
|
|
||||||
** 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 <ntqvariant.h>
|
|
||||||
#include <ntqlabel.h>
|
|
||||||
#include <kcolorbutton.h>
|
|
||||||
#include <ntqlayout.h>
|
|
||||||
#include <ntqtooltip.h>
|
|
||||||
#include <ntqwhatsthis.h>
|
|
||||||
|
|
||||||
/*
|
|
||||||
* 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"
|
|
@ -1,180 +0,0 @@
|
|||||||
#include <kdialog.h>
|
|
||||||
#include <tdelocale.h>
|
|
||||||
/****************************************************************************
|
|
||||||
** 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 <ntqvariant.h>
|
|
||||||
#include <ntqpushbutton.h>
|
|
||||||
#include <ntqtabwidget.h>
|
|
||||||
#include <ntqlabel.h>
|
|
||||||
#include <ntqlineedit.h>
|
|
||||||
#include <ntqcheckbox.h>
|
|
||||||
#include <ntqcombobox.h>
|
|
||||||
#include <ntqlayout.h>
|
|
||||||
#include <ntqtooltip.h>
|
|
||||||
#include <ntqwhatsthis.h>
|
|
||||||
|
|
||||||
/*
|
|
||||||
* 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"
|
|
@ -1,111 +0,0 @@
|
|||||||
#include <kdialog.h>
|
|
||||||
#include <tdelocale.h>
|
|
||||||
/****************************************************************************
|
|
||||||
** 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 <ntqvariant.h>
|
|
||||||
#include <ntqpushbutton.h>
|
|
||||||
#include <ntqlayout.h>
|
|
||||||
#include <ntqtooltip.h>
|
|
||||||
#include <ntqwhatsthis.h>
|
|
||||||
|
|
||||||
/*
|
|
||||||
* 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"
|
|
@ -1,176 +0,0 @@
|
|||||||
#include <kdialog.h>
|
|
||||||
#include <tdelocale.h>
|
|
||||||
/****************************************************************************
|
|
||||||
** 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 <ntqvariant.h>
|
|
||||||
#include <ntqpushbutton.h>
|
|
||||||
#include <ntqlabel.h>
|
|
||||||
#include <ntqlineedit.h>
|
|
||||||
#include <ntqbuttongroup.h>
|
|
||||||
#include <ntqradiobutton.h>
|
|
||||||
#include <ntqcheckbox.h>
|
|
||||||
#include <ntqlayout.h>
|
|
||||||
#include <ntqtooltip.h>
|
|
||||||
#include <ntqwhatsthis.h>
|
|
||||||
|
|
||||||
/*
|
|
||||||
* 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"
|
|
@ -1,70 +0,0 @@
|
|||||||
#include <kdialog.h>
|
|
||||||
#include <tdelocale.h>
|
|
||||||
/****************************************************************************
|
|
||||||
** 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 <ntqvariant.h>
|
|
||||||
#include <ntqpushbutton.h>
|
|
||||||
#include <ntqbuttongroup.h>
|
|
||||||
#include <ntqradiobutton.h>
|
|
||||||
#include <ntqlayout.h>
|
|
||||||
#include <ntqtooltip.h>
|
|
||||||
#include <ntqwhatsthis.h>
|
|
||||||
|
|
||||||
/*
|
|
||||||
* 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"
|
|
@ -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"
|
|
@ -1,102 +0,0 @@
|
|||||||
#include <kdialog.h>
|
|
||||||
#include <tdelocale.h>
|
|
||||||
/****************************************************************************
|
|
||||||
** 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 <ntqvariant.h>
|
|
||||||
#include <ntqlabel.h>
|
|
||||||
#include <ntqcheckbox.h>
|
|
||||||
#include <tdefontrequester.h>
|
|
||||||
#include <ntqlayout.h>
|
|
||||||
#include <ntqtooltip.h>
|
|
||||||
#include <ntqwhatsthis.h>
|
|
||||||
|
|
||||||
/*
|
|
||||||
* 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"
|
|
Loading…
Reference in new issue