-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
beede4d
commit affaba9
Showing
12 changed files
with
221 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>CompressDialog</class> | ||
<widget class="QDialog" name="CompressDialog"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>424</width> | ||
<height>207</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Compress Files</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<layout class="QGridLayout" name="gridLayout"> | ||
<item row="1" column="1"> | ||
<widget class="QComboBox" name="cmbCompression"/> | ||
</item> | ||
<item row="3" column="0"> | ||
<spacer name="verticalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Vertical</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>20</width> | ||
<height>40</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
<item row="1" column="0"> | ||
<widget class="QLabel" name="label"> | ||
<property name="text"> | ||
<string>Compression</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="4" column="1"> | ||
<widget class="QCheckBox" name="chkEncrypt"> | ||
<property name="toolTip"> | ||
<string>When sellected you will be prompted for a password after clicking OK</string> | ||
</property> | ||
<property name="text"> | ||
<string>Encrypt archive content</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="2" column="1"> | ||
<widget class="QCheckBox" name="chkSolid"> | ||
<property name="toolTip"> | ||
<string>Solid archiving improves compression ratios by treating multiple files as a single continuous data block. Ideal for a large number of small files, it makes the archive more compact but may increase the time required for extracting individual files.</string> | ||
</property> | ||
<property name="text"> | ||
<string>Create Solide Archive</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="0" colspan="2"> | ||
<widget class="QLabel" name="label_2"> | ||
<property name="text"> | ||
<string>Export Sandbox to a 7z archive, Choose Your Compression Rate and Customize Additional Compression Settings.</string> | ||
</property> | ||
<property name="wordWrap"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
<item> | ||
<widget class="QDialogButtonBox" name="buttonBox"> | ||
<property name="standardButtons"> | ||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#include "stdafx.h" | ||
#include "CompressDialog.h" | ||
#include "SandMan.h" | ||
#include "../MiscHelpers/Common/Settings.h" | ||
#include "../MiscHelpers/Common/Common.h" | ||
|
||
|
||
CCompressDialog::CCompressDialog(QWidget *parent) | ||
: QDialog(parent) | ||
{ | ||
Qt::WindowFlags flags = windowFlags(); | ||
flags |= Qt::CustomizeWindowHint; | ||
//flags &= ~Qt::WindowContextHelpButtonHint; | ||
//flags &= ~Qt::WindowSystemMenuHint; | ||
//flags &= ~Qt::WindowMinMaxButtonsHint; | ||
//flags |= Qt::WindowMinimizeButtonHint; | ||
//flags &= ~Qt::WindowCloseButtonHint; | ||
flags &= ~Qt::WindowContextHelpButtonHint; | ||
//flags &= ~Qt::WindowSystemMenuHint; | ||
setWindowFlags(flags); | ||
|
||
ui.setupUi(this); | ||
this->setWindowTitle(tr("Sandboxie-Plus - Sandbox Export")); | ||
|
||
ui.cmbCompression->addItem(tr("Store"), 0); | ||
ui.cmbCompression->addItem(tr("Fastest"), 1); | ||
ui.cmbCompression->addItem(tr("Fast"), 3); | ||
ui.cmbCompression->addItem(tr("Normal"), 5); | ||
ui.cmbCompression->addItem(tr("Maximum"), 7); | ||
ui.cmbCompression->addItem(tr("Ultra"), 9); | ||
ui.cmbCompression->setCurrentIndex(ui.cmbCompression->findData(theConf->GetInt("Options/ExportCompression", 3))); | ||
|
||
connect(ui.buttonBox, SIGNAL(accepted()), SLOT(accept())); | ||
connect(ui.buttonBox, SIGNAL(rejected()), SLOT(reject())); | ||
|
||
//restoreGeometry(theConf->GetBlob("CompressDialog/Window_Geometry")); | ||
} | ||
|
||
CCompressDialog::~CCompressDialog() | ||
{ | ||
//theConf->SetBlob("CompressDialog/Window_Geometry", saveGeometry()); | ||
} | ||
|
||
int CCompressDialog::GetLevel() | ||
{ | ||
return ui.cmbCompression->currentData().toInt(); | ||
} | ||
|
||
bool CCompressDialog::MakeSolid() | ||
{ | ||
return ui.chkSolid->isChecked(); | ||
} | ||
|
||
void CCompressDialog::SetMustEncrypt() | ||
{ | ||
ui.chkEncrypt->setChecked(true); | ||
ui.chkEncrypt->setEnabled(false); | ||
} | ||
|
||
bool CCompressDialog::UseEncryption() | ||
{ | ||
return ui.chkEncrypt->isChecked(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
|
||
#include <QtWidgets/QMainWindow> | ||
#include "ui_CompressDialog.h" | ||
#include "SbiePlusAPI.h" | ||
|
||
class CCompressDialog : public QDialog | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
CCompressDialog(QWidget *parent = Q_NULLPTR); | ||
~CCompressDialog(); | ||
|
||
int GetLevel(); | ||
bool MakeSolid(); | ||
|
||
void SetMustEncrypt(); | ||
bool UseEncryption(); | ||
|
||
private: | ||
Ui::CompressDialog ui; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters