mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Changed config path, config name and executable name
This commit is contained in:
parent
48897c15ba
commit
33e4b2c55d
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1,7 @@
|
|||||||
|
# The final executable after `make clean`
|
||||||
|
|
||||||
|
iaito
|
||||||
|
|
||||||
# C++ objects and libs
|
# C++ objects and libs
|
||||||
|
|
||||||
*.slo
|
*.slo
|
||||||
|
@ -33,7 +33,7 @@ CONFIG += c++11
|
|||||||
|
|
||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||||
|
|
||||||
TARGET = Iaito
|
TARGET = iaito
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
|
|
||||||
SOURCES += main.cpp\
|
SOURCES += main.cpp\
|
||||||
|
@ -313,7 +313,7 @@ void MainWindow::closeEvent(QCloseEvent *event)
|
|||||||
QMessageBox::Ok | QMessageBox::Cancel);
|
QMessageBox::Ok | QMessageBox::Cancel);
|
||||||
//qDebug() << ret;
|
//qDebug() << ret;
|
||||||
if (ret == QMessageBox::Ok) {
|
if (ret == QMessageBox::Ok) {
|
||||||
QSettings settings("Radare Corp", "Iaito");
|
QSettings settings("iaito", "iaito");
|
||||||
settings.setValue("geometry", saveGeometry());
|
settings.setValue("geometry", saveGeometry());
|
||||||
settings.setValue("size", size());
|
settings.setValue("size", size());
|
||||||
settings.setValue("pos", pos());
|
settings.setValue("pos", pos());
|
||||||
@ -326,7 +326,7 @@ void MainWindow::closeEvent(QCloseEvent *event)
|
|||||||
|
|
||||||
void MainWindow::readSettings()
|
void MainWindow::readSettings()
|
||||||
{
|
{
|
||||||
QSettings settings("Radare Corp", "Iaito");
|
QSettings settings("iaito", "iaito");
|
||||||
QByteArray geo = settings.value("geometry", QByteArray()).toByteArray();
|
QByteArray geo = settings.value("geometry", QByteArray()).toByteArray();
|
||||||
restoreGeometry(geo);
|
restoreGeometry(geo);
|
||||||
QByteArray state = settings.value("state", QByteArray()).toByteArray();
|
QByteArray state = settings.value("state", QByteArray()).toByteArray();
|
||||||
@ -340,14 +340,14 @@ void MainWindow::readSettings()
|
|||||||
void MainWindow::dark() {
|
void MainWindow::dark() {
|
||||||
qApp->setStyleSheet("QPlainTextEdit { background-color: rgb(64, 64, 64); color: rgb(222, 222, 222);} QTextEdit { background-color: rgb(64, 64, 64); color: rgb(222, 222, 222);} ");
|
qApp->setStyleSheet("QPlainTextEdit { background-color: rgb(64, 64, 64); color: rgb(222, 222, 222);} QTextEdit { background-color: rgb(64, 64, 64); color: rgb(222, 222, 222);} ");
|
||||||
this->memoryDock->switchTheme(true);
|
this->memoryDock->switchTheme(true);
|
||||||
QSettings settings("Radare Corp", "Iaito");
|
QSettings settings("iaito", "iaito");
|
||||||
settings.setValue("dark", true);
|
settings.setValue("dark", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::def_theme() {
|
void MainWindow::def_theme() {
|
||||||
qApp->setStyleSheet("");
|
qApp->setStyleSheet("");
|
||||||
this->memoryDock->switchTheme(false);
|
this->memoryDock->switchTheme(false);
|
||||||
QSettings settings("Radare Corp", "Iaito");
|
QSettings settings("iaito", "iaito");
|
||||||
settings.setValue("dark", false);
|
settings.setValue("dark", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -965,7 +965,7 @@ void MainWindow::on_actionNew_triggered()
|
|||||||
if (pid==-1)
|
if (pid==-1)
|
||||||
return;
|
return;
|
||||||
if(!pid) {
|
if(!pid) {
|
||||||
QString cmd = path+ "/Iaito";
|
QString cmd = path+ "/iaito";
|
||||||
system (cmd.toLocal8Bit().data());
|
system (cmd.toLocal8Bit().data());
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
@ -1022,7 +1022,7 @@ void MainWindow::on_actionLoad_triggered()
|
|||||||
if (pid==-1)
|
if (pid==-1)
|
||||||
return;
|
return;
|
||||||
if(!pid) {
|
if(!pid) {
|
||||||
QString cmd = path+ "/Iaito";
|
QString cmd = path+ "/iaito";
|
||||||
exit(system (cmd.toLocal8Bit().data()));
|
exit(system (cmd.toLocal8Bit().data()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1090,7 +1090,7 @@ void MainWindow::on_actionForward_triggered()
|
|||||||
void MainWindow::toggleResponsive(bool maybe) {
|
void MainWindow::toggleResponsive(bool maybe) {
|
||||||
this->responsive = maybe;
|
this->responsive = maybe;
|
||||||
// Save options in settings
|
// Save options in settings
|
||||||
QSettings settings("Radare Corp", "Iaito");
|
QSettings settings("iaito", "iaito");
|
||||||
settings.setValue("responsive", this->responsive);
|
settings.setValue("responsive", this->responsive);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1106,7 +1106,7 @@ void MainWindow::on_actionReset_settings_triggered()
|
|||||||
QMessageBox::Ok | QMessageBox::Cancel);
|
QMessageBox::Ok | QMessageBox::Cancel);
|
||||||
if (ret == QMessageBox::Ok) {
|
if (ret == QMessageBox::Ok) {
|
||||||
// Save options in settings
|
// Save options in settings
|
||||||
QSettings settings("Radare Corp", "Iaito");
|
QSettings settings("iaito", "iaito");
|
||||||
settings.clear();
|
settings.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ NewFileDialog::NewFileDialog(QWidget *parent) :
|
|||||||
ui->recentsList->setIconSize(QSize(48, 48));
|
ui->recentsList->setIconSize(QSize(48, 48));
|
||||||
|
|
||||||
// Fill list with recent opened files
|
// Fill list with recent opened files
|
||||||
QSettings settings("Radare Corp", "Iaito");
|
QSettings settings("iaito", "iaito");
|
||||||
|
|
||||||
QStringList files = settings.value("recentFileList").toStringList();
|
QStringList files = settings.value("recentFileList").toStringList();
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ void NewFileDialog::on_newFileButton_clicked()
|
|||||||
ui->newFileEdit->setText(fileName);
|
ui->newFileEdit->setText(fileName);
|
||||||
|
|
||||||
// Add file to recent file list
|
// Add file to recent file list
|
||||||
QSettings settings("Radare Corp", "Iaito");
|
QSettings settings("iaito", "iaito");
|
||||||
QStringList files = settings.value("recentFileList").toStringList();
|
QStringList files = settings.value("recentFileList").toStringList();
|
||||||
files.removeAll(fileName);
|
files.removeAll(fileName);
|
||||||
files.prepend(fileName);
|
files.prepend(fileName);
|
||||||
@ -163,7 +163,7 @@ void NewFileDialog::on_actionRemove_item_triggered()
|
|||||||
QVariant data = item->data( Qt::UserRole );
|
QVariant data = item->data( Qt::UserRole );
|
||||||
QString sitem = data.toString();
|
QString sitem = data.toString();
|
||||||
|
|
||||||
QSettings settings("Radare Corp", "Iaito");
|
QSettings settings("iaito", "iaito");
|
||||||
QStringList files = settings.value("recentFileList").toStringList();
|
QStringList files = settings.value("recentFileList").toStringList();
|
||||||
files.removeAll(sitem);
|
files.removeAll(sitem);
|
||||||
settings.setValue("recentFileList", files);
|
settings.setValue("recentFileList", files);
|
||||||
@ -184,7 +184,7 @@ void NewFileDialog::on_createButton_clicked()
|
|||||||
void NewFileDialog::on_actionClear_all_triggered()
|
void NewFileDialog::on_actionClear_all_triggered()
|
||||||
{
|
{
|
||||||
// Clear recent file list
|
// Clear recent file list
|
||||||
QSettings settings("Radare Corp", "Iaito");
|
QSettings settings("iaito", "iaito");
|
||||||
QStringList files = settings.value("recentFileList").toStringList();
|
QStringList files = settings.value("recentFileList").toStringList();
|
||||||
files.clear();
|
files.clear();
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ OptionsDialog::OptionsDialog(QWidget *parent):
|
|||||||
ui->processorComboBox->insertItems(1, plugins);
|
ui->processorComboBox->insertItems(1, plugins);
|
||||||
|
|
||||||
// Restore settings
|
// Restore settings
|
||||||
QSettings settings("Radare Corp", "Iaito");
|
QSettings settings("iaito", "iaito");
|
||||||
ui->bytesCheckBox->setChecked(settings.value("bytes").toBool());
|
ui->bytesCheckBox->setChecked(settings.value("bytes").toBool());
|
||||||
ui->attCheckBox->setChecked(settings.value("syntax").toBool());
|
ui->attCheckBox->setChecked(settings.value("syntax").toBool());
|
||||||
ui->descriptionCheckBox->setChecked(settings.value("describe").toBool());
|
ui->descriptionCheckBox->setChecked(settings.value("describe").toBool());
|
||||||
@ -89,7 +89,7 @@ void OptionsDialog::on_okButton_clicked()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Save options in settings
|
// Save options in settings
|
||||||
QSettings settings("Radare Corp", "Iaito");
|
QSettings settings("iaito", "iaito");
|
||||||
|
|
||||||
// Show asm bytes
|
// Show asm bytes
|
||||||
if (ui->bytesCheckBox->isChecked()) {
|
if (ui->bytesCheckBox->isChecked()) {
|
||||||
|
@ -14,7 +14,7 @@ SideBar::SideBar(MainWindow *main, QWidget *parent) :
|
|||||||
// Radare core found in:
|
// Radare core found in:
|
||||||
this->main = main;
|
this->main = main;
|
||||||
|
|
||||||
QSettings settings("Radare Corp", "Iaito");
|
QSettings settings("iaito", "iaito");
|
||||||
if (settings.value("responsive").toBool()) {
|
if (settings.value("responsive").toBool()) {
|
||||||
ui->respButton->setChecked(true);
|
ui->respButton->setChecked(true);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user