mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-12 09:52:05 +00:00
* Added displayNewFileDialog() * Added MainWindow::displayNewFileDialog() * Use displayNewFileDialog()
This commit is contained in:
parent
fc6159c6b3
commit
ef8118a52e
@ -280,6 +280,13 @@ void MainWindow::openNewFile(const QString &fn, int analLevel, QList<QString> ad
|
|||||||
displayAnalysisOptionsDialog(analLevel, advancedOptions);
|
displayAnalysisOptionsDialog(analLevel, advancedOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::displayNewFileDialog()
|
||||||
|
{
|
||||||
|
NewFileDialog *n = new NewFileDialog();
|
||||||
|
n->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
n->show();
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::displayAnalysisOptionsDialog(int analLevel, QList<QString> advancedOptions)
|
void MainWindow::displayAnalysisOptionsDialog(int analLevel, QList<QString> advancedOptions)
|
||||||
{
|
{
|
||||||
OptionsDialog *o = new OptionsDialog(this);
|
OptionsDialog *o = new OptionsDialog(this);
|
||||||
|
@ -58,6 +58,7 @@ public:
|
|||||||
~MainWindow();
|
~MainWindow();
|
||||||
|
|
||||||
void openNewFile(const QString &fn, int analLevel = -1, QList<QString> advancedOptions = QList<QString>());
|
void openNewFile(const QString &fn, int analLevel = -1, QList<QString> advancedOptions = QList<QString>());
|
||||||
|
void displayNewFileDialog();
|
||||||
void displayAnalysisOptionsDialog(int analLevel, QList<QString> advancedOptions);
|
void displayAnalysisOptionsDialog(int analLevel, QList<QString> advancedOptions);
|
||||||
void openProject(const QString &project_name);
|
void openProject(const QString &project_name);
|
||||||
|
|
||||||
|
@ -98,9 +98,8 @@ int main(int argc, char *argv[])
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
NewFileDialog *n = new NewFileDialog();
|
MainWindow *main = new MainWindow();
|
||||||
n->setAttribute(Qt::WA_DeleteOnClose);
|
main->displayNewFileDialog();
|
||||||
n->show();
|
|
||||||
}
|
}
|
||||||
else // filename specified as positional argument
|
else // filename specified as positional argument
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user