1484 |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
1485 |
instrumentProps.signal_changed().connect( |
instrumentProps.signal_changed().connect( |
1486 |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
1487 |
propDialog.signal_changed().connect( |
fileProps.signal_changed().connect( |
1488 |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
1489 |
midiRules.signal_changed().connect( |
midiRules.signal_changed().connect( |
1490 |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
2603 |
|
|
2604 |
void MainWindow::on_action_file_properties() |
void MainWindow::on_action_file_properties() |
2605 |
{ |
{ |
2606 |
propDialog.show(); |
fileProps.show(); |
2607 |
propDialog.deiconify(); |
fileProps.deiconify(); |
2608 |
} |
} |
2609 |
|
|
2610 |
void MainWindow::on_action_warn_user_on_extensions() { |
void MainWindow::on_action_warn_user_on_extensions() { |
2675 |
dialog.run(); |
dialog.run(); |
2676 |
} |
} |
2677 |
|
|
2678 |
PropDialog::PropDialog() |
FilePropDialog::FilePropDialog() |
2679 |
: eFileFormat(_("File Format")), |
: eFileFormat(_("File Format")), |
2680 |
eName(_("Name")), |
eName(_("Name")), |
2681 |
eCreationDate(_("Creation date")), |
eCreationDate(_("Creation date")), |
2709 |
set_title(_("File Properties")); |
set_title(_("File Properties")); |
2710 |
eName.set_width_chars(50); |
eName.set_width_chars(50); |
2711 |
|
|
2712 |
connect(eFileFormat, &PropDialog::set_FileFormat); |
connect(eFileFormat, &FilePropDialog::set_FileFormat); |
2713 |
connect(eName, &DLS::Info::Name); |
connect(eName, &DLS::Info::Name); |
2714 |
connect(eCreationDate, &DLS::Info::CreationDate); |
connect(eCreationDate, &DLS::Info::CreationDate); |
2715 |
connect(eComments, &DLS::Info::Comments); |
connect(eComments, &DLS::Info::Comments); |
2770 |
quitButton.set_can_default(); |
quitButton.set_can_default(); |
2771 |
quitButton.grab_focus(); |
quitButton.grab_focus(); |
2772 |
quitButton.signal_clicked().connect( |
quitButton.signal_clicked().connect( |
2773 |
sigc::mem_fun(*this, &PropDialog::hide)); |
sigc::mem_fun(*this, &FilePropDialog::hide)); |
2774 |
|
|
2775 |
quitButton.show(); |
quitButton.show(); |
2776 |
vbox.show(); |
vbox.show(); |
2779 |
#endif |
#endif |
2780 |
} |
} |
2781 |
|
|
2782 |
void PropDialog::set_file(gig::File* file) |
void FilePropDialog::set_file(gig::File* file) |
2783 |
{ |
{ |
2784 |
m_file = file; |
m_file = file; |
2785 |
update(file->pInfo); |
update(file->pInfo); |
2805 |
update_model--; |
update_model--; |
2806 |
} |
} |
2807 |
|
|
2808 |
void PropDialog::set_FileFormat(int value) |
void FilePropDialog::set_FileFormat(int value) |
2809 |
{ |
{ |
2810 |
m_file->pVersion->major = value; |
m_file->pVersion->major = value; |
2811 |
} |
} |
3155 |
file_has_name = filename; |
file_has_name = filename; |
3156 |
file_is_changed = false; |
file_is_changed = false; |
3157 |
|
|
3158 |
propDialog.set_file(gig); |
fileProps.set_file(gig); |
3159 |
|
|
3160 |
instrument_name_connection.block(); |
instrument_name_connection.block(); |
3161 |
int index = 0; |
int index = 0; |