@ -103,7 +103,7 @@ CameraUI::CameraUI() : TQWidget()
resize ( 700 , 440 ) ;
setMinimumSize ( 600 , 400 ) ;
mCameraList = new CameraList ( TQT_TQOBJECT ( this ) , locateLocal ( " data " , " kipi/cameras.xml " ) ) ;
mCameraList = new CameraList ( this , locateLocal ( " data " , " kipi/cameras.xml " ) ) ;
mCameraType = new CameraType ( ) ;
//---------------------------------------------
@ -193,9 +193,9 @@ CameraUI::CameraUI() : TQWidget()
mSplitter - > setOpaqueResize ( true ) ;
mSplitter - > setResizeMode ( mFolderView , TQSplitter : : Stretch ) ;
mSplitter - > setResizeMode ( mIconView , TQSplitter : : Stretch ) ;
container_ = new GPFileItemContainer ( TQT_TQOBJECT ( this ) , mFolderView , mIconView ) ;
efilter_ = new GPEventFilter ( TQT_TQOBJECT ( this ) ) ;
controller_ = new GPController ( TQT_TQOBJECT ( this ) , * mCameraType ) ;
container_ = new GPFileItemContainer ( this , mFolderView , mIconView ) ;
efilter_ = new GPEventFilter ( this ) ;
controller_ = new GPController ( this , * mCameraType ) ;
controller_ - > start ( ) ;
cameraConnected_ = false ;
@ -243,38 +243,38 @@ void CameraUI::setupAccel() {
mCameraUIAccel = new TDEAccel ( this ) ;
mCameraUIAccel - > insert ( " Select All " , i18n ( " Select All " ) ,
i18n ( " Select all the images from the camera. " ) ,
CTRL + Key_A , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSelectAll ( ) ) ) ;
CTRL + Key_A , this , TQT_SLOT ( slotSelectAll ( ) ) ) ;
mCameraUIAccel - > insert ( " Select None " , i18n ( " Select None " ) ,
i18n ( " Deselect all the images from the camera. " ) ,
CTRL + Key_U , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSelectNone ( ) ) ) ;
CTRL + Key_U , this , TQT_SLOT ( slotSelectNone ( ) ) ) ;
mCameraUIAccel - > insert ( " Invert Selection " , i18n ( " Invert Selection " ) ,
i18n ( " Invert the selection. " ) ,
CTRL + Key_Asterisk , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSelectInvert ( ) ) ) ;
CTRL + Key_Asterisk , this , TQT_SLOT ( slotSelectInvert ( ) ) ) ;
mCameraUIAccel - > insert ( " Select New " , i18n ( " Select New Items " ) ,
i18n ( " Select all the that were not previously downloaded. " ) ,
CTRL + Key_Slash , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSelectNew ( ) ) ) ;
CTRL + Key_Slash , this , TQT_SLOT ( slotSelectNew ( ) ) ) ;
setCameraConnected ( false ) ;
}
void CameraUI : : setupConnections ( ) {
connect ( this , TQT_SIGNAL ( signalStatusMsg ( const TQString & ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSetStatusMsg ( const TQString & ) ) ) ;
connect ( this , TQT_SIGNAL ( signalProgressVal ( int ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSetProgressVal ( int ) ) ) ;
connect ( this , TQT_SIGNAL ( signalBusy ( bool ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotBusy ( bool ) ) ) ;
connect ( efilter_ , TQT_SIGNAL ( signalStatusMsg ( const TQString & ) ) , TQT_TQOBJECT ( this ) , TQT_SIGNAL ( signalStatusMsg ( const TQString & ) ) ) ;
connect ( efilter_ , TQT_SIGNAL ( signalProgressVal ( int ) ) , TQT_TQOBJECT ( this ) , TQT_SIGNAL ( signalProgressVal ( int ) ) ) ;
connect ( efilter_ , TQT_SIGNAL ( signalBusy ( bool ) ) , TQT_TQOBJECT ( this ) , TQT_SIGNAL ( signalBusy ( bool ) ) ) ;
connect ( mFolderView , TQT_SIGNAL ( signalFolderChanged ( CameraFolderItem * ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFolderSelected ( CameraFolderItem * ) ) ) ;
connect ( mIconView , TQT_SIGNAL ( signalDownloadSelectedItems ( ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCameraDownloadSelected ( ) ) ) ;
connect ( mIconView , TQT_SIGNAL ( signalDeleteSelectedItems ( ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCameraDeleteSelected ( ) ) ) ;
connect ( mChangeDownloadDirectoryBtn , TQT_SIGNAL ( pressed ( ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotChangeDownloadDirectory ( ) ) ) ;
connect ( mCameraList , TQT_SIGNAL ( signalCameraListChanged ( ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSyncCameraComboBox ( ) ) ) ;
connect ( mCameraConnectBtn , TQT_SIGNAL ( pressed ( ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCameraConnectToggle ( ) ) ) ;
connect ( mCameraSetupBtn , TQT_SIGNAL ( pressed ( ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSetupCamera ( ) ) ) ;
connect ( mCameraStopBtn , TQT_SIGNAL ( pressed ( ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCameraCancel ( ) ) ) ;
connect ( mCameraDownloadBtn , TQT_SIGNAL ( pressed ( ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCameraDownloadSelected ( ) ) ) ;
connect ( mCameraUploadBtn , TQT_SIGNAL ( pressed ( ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCameraUpload ( ) ) ) ;
connect ( mCameraDeleteBtn , TQT_SIGNAL ( pressed ( ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCameraDeleteSelected ( ) ) ) ;
connect ( mDialogCloseBtn , TQT_SIGNAL ( pressed ( ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( close ( ) ) ) ;
connect ( this , TQT_SIGNAL ( signalStatusMsg ( const TQString & ) ) , this , TQT_SLOT ( slotSetStatusMsg ( const TQString & ) ) ) ;
connect ( this , TQT_SIGNAL ( signalProgressVal ( int ) ) , this , TQT_SLOT ( slotSetProgressVal ( int ) ) ) ;
connect ( this , TQT_SIGNAL ( signalBusy ( bool ) ) , this , TQT_SLOT ( slotBusy ( bool ) ) ) ;
connect ( efilter_ , TQT_SIGNAL ( signalStatusMsg ( const TQString & ) ) , this , TQT_SIGNAL ( signalStatusMsg ( const TQString & ) ) ) ;
connect ( efilter_ , TQT_SIGNAL ( signalProgressVal ( int ) ) , this , TQT_SIGNAL ( signalProgressVal ( int ) ) ) ;
connect ( efilter_ , TQT_SIGNAL ( signalBusy ( bool ) ) , this , TQT_SIGNAL ( signalBusy ( bool ) ) ) ;
connect ( mFolderView , TQT_SIGNAL ( signalFolderChanged ( CameraFolderItem * ) ) , this , TQT_SLOT ( slotFolderSelected ( CameraFolderItem * ) ) ) ;
connect ( mIconView , TQT_SIGNAL ( signalDownloadSelectedItems ( ) ) , this , TQT_SLOT ( slotCameraDownloadSelected ( ) ) ) ;
connect ( mIconView , TQT_SIGNAL ( signalDeleteSelectedItems ( ) ) , this , TQT_SLOT ( slotCameraDeleteSelected ( ) ) ) ;
connect ( mChangeDownloadDirectoryBtn , TQT_SIGNAL ( pressed ( ) ) , this , TQT_SLOT ( slotChangeDownloadDirectory ( ) ) ) ;
connect ( mCameraList , TQT_SIGNAL ( signalCameraListChanged ( ) ) , this , TQT_SLOT ( slotSyncCameraComboBox ( ) ) ) ;
connect ( mCameraConnectBtn , TQT_SIGNAL ( pressed ( ) ) , this , TQT_SLOT ( slotCameraConnectToggle ( ) ) ) ;
connect ( mCameraSetupBtn , TQT_SIGNAL ( pressed ( ) ) , this , TQT_SLOT ( slotSetupCamera ( ) ) ) ;
connect ( mCameraStopBtn , TQT_SIGNAL ( pressed ( ) ) , this , TQT_SLOT ( slotCameraCancel ( ) ) ) ;
connect ( mCameraDownloadBtn , TQT_SIGNAL ( pressed ( ) ) , this , TQT_SLOT ( slotCameraDownloadSelected ( ) ) ) ;
connect ( mCameraUploadBtn , TQT_SIGNAL ( pressed ( ) ) , this , TQT_SLOT ( slotCameraUpload ( ) ) ) ;
connect ( mCameraDeleteBtn , TQT_SIGNAL ( pressed ( ) ) , this , TQT_SLOT ( slotCameraDeleteSelected ( ) ) ) ;
connect ( mDialogCloseBtn , TQT_SIGNAL ( pressed ( ) ) , this , TQT_SLOT ( close ( ) ) ) ;
}
void CameraUI : : setCameraConnected ( bool val ) {
@ -328,7 +328,7 @@ void CameraUI::slotSyncCameraComboBox() {
void CameraUI : : setCameraType ( const CameraType & ctype ) {
* mCameraType = ctype ;
delete controller_ ;
controller_ = new GPController ( TQT_TQOBJECT ( this ) , * mCameraType ) ;
controller_ = new GPController ( this , * mCameraType ) ;
controller_ - > start ( ) ;
}
@ -420,7 +420,7 @@ void CameraUI::slotCameraConnectToggle() {
controller_ - > requestInitialize ( ) ;
} else {
delete controller_ ;
controller_ = new GPController ( TQT_TQOBJECT ( this ) , * mCameraType ) ;
controller_ = new GPController ( this , * mCameraType ) ;
controller_ - > start ( ) ;
cameraConnected_ = false ;
mIconView - > clear ( ) ;