/[svn]/gigedit/trunk/src/gigedit/mainwindow.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/mainwindow.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3635 by schoenebeck, Thu Oct 24 11:16:26 2019 UTC revision 3636 by schoenebeck, Thu Oct 24 12:06:18 2019 UTC
# Line 1484  MainWindow::MainWindow() : Line 1484  MainWindow::MainWindow() :
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));
# Line 2603  void MainWindow::__import_queued_samples Line 2603  void MainWindow::__import_queued_samples
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() {
# Line 2675  void MainWindow::on_action_help_about() Line 2675  void MainWindow::on_action_help_about()
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")),
# Line 2709  PropDialog::PropDialog() Line 2709  PropDialog::PropDialog()
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);
# Line 2770  PropDialog::PropDialog() Line 2770  PropDialog::PropDialog()
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();
# Line 2779  PropDialog::PropDialog() Line 2779  PropDialog::PropDialog()
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);
# Line 2805  void PropDialog::set_file(gig::File* fil Line 2805  void PropDialog::set_file(gig::File* fil
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  }  }
# Line 3155  void MainWindow::load_gig(gig::File* gig Line 3155  void MainWindow::load_gig(gig::File* gig
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;

Legend:
Removed from v.3635  
changed lines
  Added in v.3636

  ViewVC Help
Powered by ViewVC