luksaddkey::luksaddkey( QWidget * parent ) : QDialog( parent ) { m_ui = new Ui::luksaddkey() ; m_ui->setupUi( this ) ; m_isWindowClosable = true ; m_ui->textEditPathToVolume->setText( QString() ) ; m_ui->textEditExistingPassphrase->setEchoMode( QLineEdit::Password ) ; m_ui->textEditPassphraseToAdd->setEchoMode( QLineEdit::Password ) ; this->setFixedSize( this->size() ) ; this->setFont( parent->font() ) ; connect( m_ui->pushButtonOpenFile,SIGNAL( clicked() ),this,SLOT( pbOpenFile() ) ) ; connect( m_ui->pushButtonOpenExistingKeyFile,SIGNAL( clicked() ),this,SLOT( pbOpenExisitingKeyFile() ) ) ; connect( m_ui->pushButtonOpenNewKeyFile,SIGNAL( clicked() ),this,SLOT( pbOpenNewKeyFile() ) ) ; connect( m_ui->pushButtonOpenPartition,SIGNAL( clicked() ),this,SLOT( pbOpenPartition( void ) ) ) ; connect( m_ui->pushButtonAdd,SIGNAL( clicked() ),this,SLOT( pbAdd() ) ) ; connect( m_ui->pushButtonCancel,SIGNAL( clicked() ),this,SLOT( pbCancel() ) ) ; if( m_ui->cbNewKey->currentIndex() == 0 && m_keystrength.canCheckQuality() ){ connect( m_ui->textEditPassphraseToAdd,SIGNAL( textChanged( QString ) ),this,SLOT( keyChanged_0( QString ) ) ) ; }else{ connect( m_ui->textEditPassphraseToAdd,SIGNAL( textChanged( QString ) ),this,SLOT( keyChanged_1( QString ) ) ) ; } connect( m_ui->cbExistingKey,SIGNAL( activated( int ) ),this,SLOT( cbExistingKey( int ) ) ) ; connect( m_ui->cbNewKey,SIGNAL( activated( int ) ),this,SLOT( cbNewKey( int ) ) ) ; m_ui->lineEditReEnterPassphrase->setEchoMode( QLineEdit::Password ) ; m_ui->pushButtonOpenExistingKeyFile->setEnabled( false ) ; m_ui->pushButtonOpenNewKeyFile->setEnabled( false ) ; m_ui->pushButtonOpenPartition->setIcon( QIcon( ":/partition.png" ) ) ; m_ui->pushButtonOpenFile->setIcon( QIcon( ":/file.png" ) ) ; this->cbExistingKey( 0 ) ; this->cbNewKey( 0 ) ; this->installEventFilter( this ) ; }
luksaddkey::luksaddkey( QWidget * parent ) : QDialog( parent ) { m_ui = new Ui::luksaddkey() ; m_ui->setupUi( this ) ; m_isWindowClosable = true ; m_ui->textEditPathToVolume->setText( QString( "" ) ) ; m_ui->textEditExistingPassphrase->setEchoMode( QLineEdit::Password ) ; m_ui->textEditPassphraseToAdd->setEchoMode( QLineEdit::Password ) ; this->setFixedSize( this->size() ) ; this->setFont( parent->font() ) ; connect( m_ui->pushButtonOpenFile,SIGNAL( clicked() ),this,SLOT( pbOpenFile() ) ) ; connect( m_ui->pushButtonOpenExistingKeyFile,SIGNAL( clicked() ),this,SLOT( pbOpenExisitingKeyFile() ) ) ; connect( m_ui->pushButtonOpenNewKeyFile,SIGNAL( clicked() ),this,SLOT( pbOpenNewKeyFile() ) ) ; connect( m_ui->pushButtonOpenPartition,SIGNAL( clicked() ),this,SLOT( pbOpenPartition( void ) ) ) ; connect( m_ui->pushButtonAdd,SIGNAL( clicked() ),this,SLOT( pbAdd() ) ) ; connect( m_ui->pushButtonCancel,SIGNAL( clicked() ),this,SLOT( pbCancel() ) ) ; connect( m_ui->radioButtonNewPassphrase,SIGNAL( toggled( bool ) ),this,SLOT( rbNewPassphrase() ) ) ; connect( m_ui->radioButtonNewPassphraseFromFile,SIGNAL( toggled( bool ) ),this,SLOT( rbNewPassphraseFromFile() ) ) ; connect( m_ui->radioButtonPassphraseinVolume,SIGNAL( toggled( bool ) ),this,SLOT( rbExistingPassphrase() ) ) ; connect( m_ui->radioButtonPassphraseInVolumeFromFile,SIGNAL( toggled( bool ) ),this,SLOT( rbExistingPassphraseFromFile() ) ) ; connect( m_ui->textEditPassphraseToAdd,SIGNAL( textChanged( QString ) ),this,SLOT( keyChanged( QString ) ) ) ; m_ui->lineEditReEnterPassphrase->setEchoMode( QLineEdit::Password ) ; m_ui->radioButtonNewPassphrase->setChecked( true ) ; m_ui->radioButtonPassphraseinVolume->setChecked( true ) ; m_ui->pushButtonOpenExistingKeyFile->setEnabled( false ) ; m_ui->pushButtonOpenNewKeyFile->setEnabled( false ) ; m_ui->pushButtonOpenPartition->setIcon( QIcon( QString( ":/partition.png" ) ) ) ; m_ui->pushButtonOpenFile->setIcon( QIcon( QString( ":/file.png" ) ) ) ; m_keystrength = new keystrength() ; this->installEventFilter( this ) ; }
managevolumeheader::managevolumeheader( QWidget * parent ) : QDialog( parent ), m_ui( new Ui::managevolumeheader ) { m_ui->setupUi( this ) ; this->setFont( parent->font() ) ; this->setFixedSize( this->size() ) ; //m_ui->pbOpenFolder->setIcon( QIcon( QString( ":/folder.png" ) ) ) ; m_ui->pushButtonPartition->setIcon( QIcon( ":/partition.png" ) ) ; m_ui->pushButtonFile->setIcon( QIcon( ":/file.png" ) ) ; m_ui->lineEditDevicePath->setFocus() ; connect( m_ui->pbCreate,SIGNAL( clicked() ),this,SLOT( pbCreate() ) ) ; connect( m_ui->pbOpenFolder,SIGNAL( clicked() ),this,SLOT( pbOpenLuksHeaderBackUp() ) ) ; connect( m_ui->pbCancel,SIGNAL( clicked() ),this,SLOT( pbCancel() ) ) ; connect( m_ui->pushButtonFile,SIGNAL( clicked() ),this,SLOT( pbOpenFile() ) ) ; connect( m_ui->pushButtonPartition,SIGNAL( clicked() ),this,SLOT( pbOpenPartition() ) ) ; connect( m_ui->lineEditDevicePath,SIGNAL( textChanged( QString ) ),this,SLOT( backUpHeaderNameChange( QString ) ) ) ; connect( m_ui->rbKey,SIGNAL( toggled( bool ) ),this,SLOT( rbKeyToggled( bool ) ) ) ; connect( m_ui->pBKeyFile,SIGNAL( clicked() ),this,SLOT( pbKeyFile() ) ) ; connect( m_ui->rbTrueCryptHeader,SIGNAL( toggled( bool ) ),this,SLOT( rbTrueCryptVolume( bool ) ) ) ; m_OperationInProgress = false ; m_trueCryptWarning = false ; this->enableTrueCrypt( false ) ; this->installEventFilter( this ) ; m_ui->groupBox_2->setEnabled( false ) ; m_ui->rbFDETrueCrypt->setEnabled( false ) ; m_ui->rbNormalTrueCrypt->setEnabled( false ) ; m_ui->rbSystemTrueCrypt->setEnabled( false ) ; #if TCPLAY_NEW_API m_ui->rbTrueCryptHeader->setEnabled( true ) ; #else m_ui->rbTrueCryptHeader->setEnabled( false ) ; #endif }
cryptfiles::cryptfiles( QWidget * parent ) :QDialog( parent ),m_ui( new Ui::cryptfiles ) { m_ui->setupUi( this ) ; this->setFont( parent->font() ) ; this->setFixedSize( this->size() ) ; m_ui->progressBar->setMinimum( 0 ) ; m_ui->progressBar->setMaximum( 100 ) ; m_ui->progressBar->setValue( 0 ) ; m_ui->pbOpenFolder->setIcon( QIcon( ":/folder.png" ) ) ; m_ui->pushButtonFile->setIcon( QIcon( ":/file.png" ) ) ; connect( m_ui->pbCreate,SIGNAL( clicked() ),this,SLOT( pbCreate() ) ) ; connect( m_ui->pushButtonFile,SIGNAL( clicked() ),this,SLOT( pbOpenFile() ) ) ; connect( m_ui->pbOpenFolder,SIGNAL( clicked() ),this,SLOT( pbOpenFolder() ) ) ; connect( m_ui->comboBox,SIGNAL( activated( int ) ),this,SLOT( cbChanged( int ) ) ) ; connect( m_ui->lineEditSourcePath,SIGNAL( textChanged( QString ) ),this,SLOT( sourceTextChanged( QString ) ) ) ; connect( m_ui->pushButtonKeyFile,SIGNAL( clicked() ),this,SLOT( pbKeyFile() ) ) ; connect( m_ui->pushButtonCancel,SIGNAL( clicked() ),this,SLOT( pbCancel() ) ) ; connect( this,SIGNAL( progressUpdate( int ) ),this,SLOT( progressBarUpdate( int ) ) ) ; this->cbChanged( 0 ) ; m_OperationInProgress = false ; m_ui->lineEditPass_2->setEchoMode( QLineEdit::Password ) ; m_ui->lineEditSourcePath->setFocus() ; m_ui->lineEditDestinationPath->setText( QString() ) ; m_ui->lineEditDestinationPath->setEnabled( false ) ; m_ui->lineEditSourcePath->setEnabled( false ) ; this->installEventFilter( this ) ; }
manageluksheader::manageluksheader( QWidget * parent ) : QDialog( parent ), m_ui( new Ui::manageluksheader ) { m_ui->setupUi( this ); this->setFont( parent->font() ); this->setFixedSize( this->size() ); m_ui->pbOpenFolder->setIcon( QIcon( QString( ":/folder.png" ) ) ); m_ui->pushButtonPartition->setIcon( QIcon( QString( ":/partition.png" ) ) ); m_ui->pushButtonFile->setIcon( QIcon( QString( ":/file.png" ) ) ); m_ui->lineEditDevicePath->setFocus(); connect( m_ui->pbCreate,SIGNAL( clicked() ),this,SLOT( pbCreate() ) ) ; connect( m_ui->pbOpenFolder,SIGNAL( clicked() ),this,SLOT( pbOpenLuksHeaderBackUp() ) ) ; connect( m_ui->pbCancel,SIGNAL( clicked() ),this,SLOT( pbCancel() ) ) ; connect( m_ui->pushButtonFile,SIGNAL( clicked() ),this,SLOT( pbOpenFile() ) ); connect( m_ui->pushButtonPartition,SIGNAL( clicked() ),this,SLOT( pbOpenPartition() ) ); connect( m_ui->lineEditDevicePath,SIGNAL( textChanged( QString ) ),this,SLOT( backUpHeaderNameChange( QString ) ) ); m_OperationInProgress = false ; }