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 }
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 ; }