#include "filter_dialog.h"
#include "file_picker_ctrl.h"
#include "dir_picker_ctrl.h"
-#include "isdcf_metadata_dialog.h"
#include "server_dialog.h"
#include "make_chain_dialog.h"
#include "email_dialog.h"
#include "name_format_editor.h"
#include "nag_dialog.h"
-#include "monitor_dialog.h"
#include "check_box.h"
#include "static_text.h"
#include "lib/config.h"
#include <wx/filepicker.h>
#include <RtAudio.h>
#include <boost/filesystem.hpp>
-#include <boost/foreach.hpp>
#include <iostream>
using std::vector;
using std::map;
using boost::bind;
using std::shared_ptr;
-using boost::function;
+using std::function;
using boost::optional;
#if BOOST_VERSION >= 106100
using namespace boost::placeholders;
table->Add (_respect_kdm, wxGBPosition(r, 0), wxGBSpan(1, 2));
++r;
- add_label_to_sizer (table, _panel, _("Activity log file"), true, wxGBPosition (r, 0));
- _activity_log_file = new FilePickerCtrl (_panel, _("Select activity log file"), "*", true, true);
- table->Add (_activity_log_file, wxGBPosition(r, 1));
- ++r;
-
add_label_to_sizer (table, _panel, _("Debug log file"), true, wxGBPosition (r, 0));
- _debug_log_file = new FilePickerCtrl (_panel, _("Select debug log file"), "*", true, true);
+ _debug_log_file = new FilePickerCtrl (_panel, _("Select debug log file"), "*", false, true);
table->Add (_debug_log_file, wxGBPosition(r, 1));
++r;
_image_display->Bind (wxEVT_CHOICE, bind(&PlayerGeneralPage::image_display_changed, this));
_video_display_mode->Bind (wxEVT_CHOICE, bind(&PlayerGeneralPage::video_display_mode_changed, this));
_respect_kdm->Bind (wxEVT_CHECKBOX, bind(&PlayerGeneralPage::respect_kdm_changed, this));
- _activity_log_file->Bind (wxEVT_FILEPICKER_CHANGED, bind(&PlayerGeneralPage::activity_log_file_changed, this));
_debug_log_file->Bind (wxEVT_FILEPICKER_CHANGED, bind(&PlayerGeneralPage::debug_log_file_changed, this));
}
checked_set (_image_display, config->image_display());
checked_set (_respect_kdm, config->respect_kdm_validity_periods());
- if (config->player_activity_log_file()) {
- checked_set (_activity_log_file, *config->player_activity_log_file());
- }
if (config->player_debug_log_file()) {
checked_set (_debug_log_file, *config->player_debug_log_file());
}
Config::instance()->set_respect_kdm_validity_periods(_respect_kdm->GetValue());
}
- void activity_log_file_changed ()
- {
- Config::instance()->set_player_activity_log_file(wx_to_std(_activity_log_file->GetPath()));
- }
-
void debug_log_file_changed ()
{
Config::instance()->set_player_debug_log_file(wx_to_std(_debug_log_file->GetPath()));
wxChoice* _image_display;
wxChoice* _video_display_mode;
wxCheckBox* _respect_kdm;
- FilePickerCtrl* _activity_log_file;
FilePickerCtrl* _debug_log_file;
};