SilentEye 0.4.1
|
Mother class for encode and decode dialog. More...
#include <optiondialog.h>
Mother class for encode and decode dialog.
Definition at line 32 of file optiondialog.h.
SilentEye::OptionDialog::OptionDialog | ( | QWidget * | parent = 0 | ) |
Definition at line 25 of file optiondialog.cpp.
References connectSignals(), loadEncryptionTypes(), m_checkSize, m_logger, m_optionWidget, m_originalHeight, setupDialog(), and SEFormatBMP::setupUi().
SilentEye::OptionDialog::~OptionDialog | ( | ) |
Definition at line 40 of file optiondialog.cpp.
void SilentEye::OptionDialog::addFile | ( | const QString & | filename | ) | [protected, slot] |
Definition at line 123 of file optiondialog.cpp.
References m_filePath, and valueChanged().
Referenced by SilentEye::EncodeDialog::dropEvent(), and selectFile().
bool SilentEye::OptionDialog::checkCryptoPassword | ( | ) | [protected] |
Definition at line 274 of file optiondialog.cpp.
Referenced by cryptoPwd1TextEdited(), cryptoPwd2TextEdited(), cryptoStatusChanged(), isDialogReady(), SilentEye::EncodeDialog::showEvent(), and SilentEye::DecodeDialog::showEvent().
void SilentEye::OptionDialog::connectSignals | ( | ) | [private] |
Definition at line 477 of file optiondialog.cpp.
References SilentEye::connect(), cryptoPwd1TextEdited(), cryptoPwd2TextEdited(), cryptoStatusChanged(), formatChanged(), ok(), rejected(), removeFile(), selectFolder(), and valueChanged().
Referenced by OptionDialog().
void SilentEye::OptionDialog::cryptoPwd1TextEdited | ( | QString | ) | [protected, slot] |
Definition at line 311 of file optiondialog.cpp.
References checkCryptoPassword().
Referenced by connectSignals().
void SilentEye::OptionDialog::cryptoPwd2TextEdited | ( | QString | ) | [protected, slot] |
Definition at line 316 of file optiondialog.cpp.
References checkCryptoPassword().
Referenced by connectSignals().
void SilentEye::OptionDialog::cryptoStatusChanged | ( | int | status | ) | [protected, slot] |
Definition at line 295 of file optiondialog.cpp.
References checkCryptoPassword(), and updateDialogSize().
Referenced by connectSignals().
Data::DataFormat SilentEye::OptionDialog::currentCharset | ( | ) | [protected] |
Definition at line 218 of file optiondialog.cpp.
Referenced by dataSizeRemaining(), and SilentEye::EncodeDialog::ok().
CryptoModuleInterface * SilentEye::OptionDialog::currentCryptoModule | ( | ) | [protected] |
Definition at line 212 of file optiondialog.cpp.
References SilentEye::ModuleManager::CRYPTO, and SilentEye::ModuleManager::get().
Referenced by SilentEye::EncodeDialog::ok(), and SilentEye::DecodeDialog::ok().
FormatModuleInterface * SilentEye::OptionDialog::currentFormatModule | ( | ) | [protected] |
Definition at line 190 of file optiondialog.cpp.
References SilentEye::ModuleManager::AUDIOFORMAT, SilentEye::connect(), SilentEye::ModuleManager::get(), SilentEye::ModuleManager::IMAGEFORMAT, m_checkSize, m_logger, m_md, valueChanged(), and SilentEye::ModuleManager::VIDEOFORMAT.
Referenced by dataSizeRemaining(), SilentEye::EncodeDialog::ok(), SilentEye::DecodeDialog::ok(), and valueChanged().
virtual QWidget* SilentEye::OptionDialog::currentFormatWidget | ( | FormatModuleInterface * | ) | [protected, pure virtual] |
Implemented in SilentEye::DecodeDialog, and SilentEye::EncodeDialog.
Referenced by formatChanged().
int SilentEye::OptionDialog::dataSizeRemaining | ( | FormatModuleInterface * | module = NULL , |
QPointer< Media > | media = QPointer<Media>() |
||
) | [protected] |
Definition at line 351 of file optiondialog.cpp.
References currentCharset(), currentFormatModule(), m_filePath, m_md, and SilentEyeFramework::EncodedData::size().
Referenced by isDialogReady(), and valueChanged().
void SilentEye::OptionDialog::displayException | ( | const QString & | title, |
const SilentEyeException | e | ||
) | [protected] |
Definition at line 497 of file optiondialog.cpp.
References SilentEyeFramework::SilentEyeException::details(), and SilentEyeFramework::SilentEyeException::message().
Referenced by SilentEye::EncodeDialog::ok(), and SilentEye::DecodeDialog::ok().
void SilentEye::OptionDialog::formatChanged | ( | const QString & | imageFormat | ) | [protected, slot] |
Definition at line 237 of file optiondialog.cpp.
References SilentEye::ModuleManager::AUDIOFORMAT, currentFormatWidget(), SilentEye::ModuleManager::get(), SilentEye::ModuleManager::IMAGEFORMAT, m_logger, m_md, m_optionWidget, valueChanged(), and SilentEye::ModuleManager::VIDEOFORMAT.
Referenced by connectSignals(), SilentEye::EncodeDialog::showEvent(), and SilentEye::DecodeDialog::showEvent().
bool SilentEye::OptionDialog::isDialogReady | ( | ) | [protected] |
Definition at line 162 of file optiondialog.cpp.
References checkCryptoPassword(), dataSizeRemaining(), m_checkSize, and m_md.
Referenced by SilentEye::EncodeDialog::ok(), and SilentEye::DecodeDialog::ok().
void SilentEye::OptionDialog::loadEncryptionTypes | ( | ) | [protected] |
Definition at line 425 of file optiondialog.cpp.
References SilentEye::ModuleManager::CRYPTO, SilentEye::ModuleManager::get(), SilentEye::Controller::instance(), and SilentEyeFramework::ModuleInterface::typeSupported().
Referenced by OptionDialog().
void SilentEye::OptionDialog::loadFormats | ( | ) | [protected] |
Definition at line 393 of file optiondialog.cpp.
References SilentEye::ModuleManager::AUDIOFORMAT, SilentEye::ModuleManager::get(), SilentEye::ModuleManager::IMAGEFORMAT, SilentEye::Controller::instance(), m_logger, m_md, SilentEyeFramework::ModuleInterface::typeSupported(), and SilentEye::ModuleManager::VIDEOFORMAT.
Referenced by setMedia().
virtual void SilentEye::OptionDialog::ok | ( | ) | [protected, pure virtual, slot] |
Implemented in SilentEye::DecodeDialog, and SilentEye::EncodeDialog.
Referenced by connectSignals().
void SilentEye::OptionDialog::rejected | ( | ) | [protected, slot] |
Definition at line 158 of file optiondialog.cpp.
Referenced by connectSignals().
void SilentEye::OptionDialog::removeFile | ( | ) | [protected, slot] |
Definition at line 149 of file optiondialog.cpp.
References m_filePath, and valueChanged().
Referenced by connectSignals(), SilentEye::DecodeDialog::ok(), SilentEye::EncodeDialog::showEvent(), and SilentEye::DecodeDialog::showEvent().
void SilentEye::OptionDialog::selectFile | ( | ) | [protected, slot] |
Definition at line 91 of file optiondialog.cpp.
References addFile(), SilentEye::Controller::instance(), m_filePath, and m_md.
void SilentEye::OptionDialog::selectFolder | ( | ) | [protected, slot] |
Definition at line 67 of file optiondialog.cpp.
References SilentEye::Controller::instance().
Referenced by connectSignals().
void SilentEye::OptionDialog::setMedia | ( | QPointer< Media > | md | ) |
Definition at line 47 of file optiondialog.cpp.
References loadFormats(), m_logger, m_md, and SilentEyeFramework::Media().
Referenced by SilentEye::MainWindow::execDecodeDialog(), SilentEye::MainWindow::execEncodeDialog(), and main().
void SilentEye::OptionDialog::setupDialog | ( | ) | [protected] |
Definition at line 454 of file optiondialog.cpp.
References SilentEye::ModuleManager::count(), SilentEye::ModuleManager::CRYPTO, SilentEye::ModuleManager::IMAGEFORMAT, SilentEye::Controller::instance(), and updateDialogSize().
Referenced by OptionDialog().
void SilentEye::OptionDialog::updateDialogSize | ( | ) | [protected] |
Definition at line 438 of file optiondialog.cpp.
References m_originalHeight.
Referenced by cryptoStatusChanged(), SilentEye::DecodeDialog::ok(), setupDialog(), SilentEye::EncodeDialog::showEvent(), and SilentEye::DecodeDialog::showEvent().
void SilentEye::OptionDialog::valueChanged | ( | ) | [protected, slot] |
Definition at line 321 of file optiondialog.cpp.
References currentFormatModule(), dataSizeRemaining(), m_checkSize, and m_md.
Referenced by addFile(), connectSignals(), currentFormatModule(), formatChanged(), and removeFile().
bool SilentEye::OptionDialog::m_checkSize [protected] |
Definition at line 43 of file optiondialog.h.
Referenced by currentFormatModule(), isDialogReady(), OptionDialog(), and valueChanged().
QString SilentEye::OptionDialog::m_filePath [protected] |
Definition at line 40 of file optiondialog.h.
Referenced by addFile(), dataSizeRemaining(), SilentEye::EncodeDialog::ok(), SilentEye::DecodeDialog::ok(), SilentEye::DecodeDialog::releaseFileButton(), removeFile(), and selectFile().
QPointer<Logger> SilentEye::OptionDialog::m_logger [protected] |
Definition at line 34 of file optiondialog.h.
Referenced by currentFormatModule(), SilentEye::EncodeDialog::dragEnterEvent(), formatChanged(), loadFormats(), SilentEye::EncodeDialog::ok(), SilentEye::DecodeDialog::ok(), OptionDialog(), setMedia(), SilentEye::EncodeDialog::showEvent(), and ~OptionDialog().
QPointer<Media> SilentEye::OptionDialog::m_md [protected] |
Definition at line 39 of file optiondialog.h.
Referenced by currentFormatModule(), dataSizeRemaining(), formatChanged(), isDialogReady(), loadFormats(), SilentEye::EncodeDialog::ok(), SilentEye::DecodeDialog::ok(), selectFile(), setMedia(), SilentEye::EncodeDialog::showEvent(), SilentEye::DecodeDialog::showEvent(), valueChanged(), and ~OptionDialog().
QWidget* SilentEye::OptionDialog::m_optionWidget [protected] |
Definition at line 41 of file optiondialog.h.
Referenced by formatChanged(), and OptionDialog().
int SilentEye::OptionDialog::m_originalHeight [protected] |
Definition at line 44 of file optiondialog.h.
Referenced by OptionDialog(), and updateDialogSize().