#include "wx_util.h"
AudioGainDialog::AudioGainDialog (wxWindow* parent, int c, int d, float v)
- : TableDialog (parent, _("Channel gain"), 3, true)
+ : TableDialog (parent, _("Channel gain"), 3, 1, true)
{
add (wxString::Format (_("Gain for content channel %d in DCP channel %d"), c + 1, d + 1), false);
_gain = add (new wxSpinCtrlDouble (this));
using std::string;
CinemaDialog::CinemaDialog (wxWindow* parent, string title, string name, string email)
- : TableDialog (parent, std_to_wx (title), 2, true)
+ : TableDialog (parent, std_to_wx (title), 2, 1, true)
{
add (_("Name"), true);
_name = add (new wxTextCtrl (this, wxID_ANY, std_to_wx (name), wxDefaultPosition, wxSize (256, -1)));
using boost::dynamic_pointer_cast;
ContentPropertiesDialog::ContentPropertiesDialog (wxWindow* parent, shared_ptr<Content> content)
- : TableDialog (parent, _("Content Properties"), 2, false)
+ : TableDialog (parent, _("Content Properties"), 2, 1, false)
{
string n = content->path(0).string();
boost::algorithm::replace_all (n, "&", "&&");
using boost::function;
DownloadCertificateDialog::DownloadCertificateDialog (wxWindow* parent, function<void (boost::filesystem::path)> load)
- : TableDialog (parent, _("Download certificate"), 2, true)
+ : TableDialog (parent, _("Download certificate"), 2, 1, true)
, _load (load)
, _message (0)
, _download (0)
wxButton* ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK, this));
ok->Enable (done);
}
-
-
using namespace boost;
GainCalculatorDialog::GainCalculatorDialog (wxWindow* parent)
- : TableDialog (parent, _("Gain Calculator"), 2, true)
+ : TableDialog (parent, _("Gain Calculator"), 2, 1, true)
{
add (_("I want to play this back at fader"), true);
_wanted = add (new wxTextCtrl (this, wxID_ANY, wxT (""), wxDefaultPosition, wxDefaultSize, 0, wxTextValidator (wxFILTER_NUMERIC)));
#include "lib/raw_convert.h"
ImageSequenceDialog::ImageSequenceDialog (wxWindow* parent)
- : TableDialog (parent, _("Add image sequence"), 2, true)
+ : TableDialog (parent, _("Add image sequence"), 2, 1, true)
{
add (_("Frame rate"), true);
_frame_rate = add (new wxTextCtrl (this, wxID_ANY, N_("24")));
/** @param threed true if the film is in 3D */
ISDCFMetadataDialog::ISDCFMetadataDialog (wxWindow* parent, ISDCFMetadata dm, bool threed)
- : TableDialog (parent, _("ISDCF name"), 2, true)
+ : TableDialog (parent, _("ISDCF name"), 2, 1, true)
{
add (_("Content version"), true);
_content_version = add (new wxSpinCtrl (this, wxID_ANY));
using std::cout;
KeyDialog::KeyDialog (wxWindow* parent, dcp::Key key)
- : TableDialog (parent, _("Key"), 3, true)
+ : TableDialog (parent, _("Key"), 3, 1, true)
{
add (_("Key"), true);
string intermediate_common_name,
string leaf_common_name
)
- : TableDialog (parent, _("Make certificate chain"), 2, true)
+ : TableDialog (parent, _("Make certificate chain"), 2, 1, true)
{
wxTextValidator validator (wxFILTER_EXCLUDE_CHAR_LIST);
validator.SetCharExcludes (wxT ("/"));
boost::optional<boost::filesystem::path> NewFilmDialog::_directory;
NewFilmDialog::NewFilmDialog (wxWindow* parent)
- : TableDialog (parent, _("New Film"), 2, true)
+ : TableDialog (parent, _("New Film"), 2, 1, true)
{
add (_("Film name"), true);
_name = add (new wxTextCtrl (this, wxID_ANY));
#include "wx_util.h"
RepeatDialog::RepeatDialog (wxWindow* parent)
- : TableDialog (parent, _("Repeat Content"), 3, true)
+ : TableDialog (parent, _("Repeat Content"), 3, 1, true)
{
add (_("Repeat"), true);
_number = add (new wxSpinCtrl (this, wxID_ANY));
using boost::optional;
ScreenDialog::ScreenDialog (wxWindow* parent, string title, string name, optional<dcp::Certificate> certificate)
- : TableDialog (parent, std_to_wx (title), 2, true)
+ : TableDialog (parent, std_to_wx (title), 2, 1, true)
, _certificate (certificate)
{
add (_("Name"), true);
using boost::shared_ptr;
ServerDialog::ServerDialog (wxWindow* parent)
- : TableDialog (parent, _("Server"), 2, true)
+ : TableDialog (parent, _("Server"), 2, 1, true)
{
wxClientDC dc (parent);
/* XXX: bit of a mystery why we need such a long string here */
{
return wx_to_std (_host->GetValue ());
}
-