本文整理汇总了C#中Gtk.CheckButton.Show方法的典型用法代码示例。如果您正苦于以下问题:C# CheckButton.Show方法的具体用法?C# CheckButton.Show怎么用?C# CheckButton.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gtk.CheckButton
的用法示例。
在下文中一共展示了CheckButton.Show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LiveAnalysisPreferences
public LiveAnalysisPreferences()
{
this.Build ();
rendercb = new CheckButton ();
table1.Attach (rendercb, 1, 2, 0, 1,
AttachOptions.Shrink,
AttachOptions.Shrink, 0, 0);
rendercb.CanFocus = false;
rendercb.Show ();
rendercb.Active = App.Current.Config.AutoRenderPlaysInLive;
rendercb.Toggled += (sender, e) => {
App.Current.Config.AutoRenderPlaysInLive = rendercb.Active;
};
reviewcb = new CheckButton ();
table1.Attach (reviewcb, 1, 2, 2, 3,
AttachOptions.Shrink,
AttachOptions.Shrink, 0, 0);
reviewcb.CanFocus = false;
reviewcb.Show ();
reviewcb.Active = App.Current.Config.ReviewPlaysInSameWindow;
reviewcb.Toggled += (sender, e) => {
App.Current.Config.ReviewPlaysInSameWindow = reviewcb.Active;
};
mediafilechooser1.FileChooserMode = FileChooserMode.Directory;
mediafilechooser1.CurrentPath = App.Current.Config.AutoRenderDir;
mediafilechooser1.ChangedEvent += HandleChangedEvent;
}
示例2: EnableStartupNotesPreference
public EnableStartupNotesPreference ()
{
IPropertyEditorBool enableStartupNotes_peditor;
Gtk.CheckButton enableStartupNotesCheckbox;
Gtk.Label enableStartupNotesLabel;
// Enable Startup Notes option
enableStartupNotesLabel = new Gtk.Label (Catalog.GetString ("Enable startup notes"));
enableStartupNotesLabel.UseMarkup = true;
enableStartupNotesLabel.Justify = Gtk.Justification.Left;
enableStartupNotesLabel.SetAlignment (0.0f, 0.5f);
enableStartupNotesLabel.Show ();
enableStartupNotesCheckbox = new Gtk.CheckButton ();
enableStartupNotesCheckbox.Add (enableStartupNotesLabel);
enableStartupNotesCheckbox.Show ();
enableStartupNotes_peditor =
Services.Factory.CreatePropertyEditorToggleButton (Preferences.ENABLE_STARTUP_NOTES, enableStartupNotesCheckbox);
Preferences.Get (enableStartupNotes_peditor.Key);
enableStartupNotes_peditor.Setup ();
align = new Gtk.Alignment (0.0f, 0.0f, 0.0f, 1.0f);
align.Show ();
align.Add (enableStartupNotesCheckbox);
}
示例3: WidgetBuilderOptionPanelWidget
public WidgetBuilderOptionPanelWidget (Project project) : base (false, 6)
{
this.project = project as DotNetProject;
Gtk.HBox box = new Gtk.HBox (false, 3);
Gtk.Label lbl = new Gtk.Label (GettextCatalog.GetString ("Target Gtk# version:"));
box.PackStart (lbl, false, false, 0);
comboVersions = ComboBox.NewText ();
ReferenceManager refmgr = new ReferenceManager (project as DotNetProject);
foreach (string v in refmgr.SupportedGtkVersions)
comboVersions.AppendText (v);
comboVersions.Active = refmgr.SupportedGtkVersions.IndexOf (refmgr.GtkPackageVersion);
refmgr.Dispose ();
box.PackStart (comboVersions, false, false, 0);
box.ShowAll ();
PackStart (box, false, false, 0);
HSeparator sep = new HSeparator ();
sep.Show ();
PackStart (sep, false, false, 0);
if (!GtkDesignInfo.HasDesignedObjects (project))
return;
GtkDesignInfo designInfo = GtkDesignInfo.FromProject (project);
checkGettext = new CheckButton (GettextCatalog.GetString ("Enable gettext support"));
checkGettext.Active = designInfo.GenerateGettext;
checkGettext.Show ();
PackStart (checkGettext, false, false, 0);
box = new Gtk.HBox (false, 3);
box.PackStart (new Label (GettextCatalog.GetString ("Gettext class:")), false, false, 0);
entryGettext = new Gtk.Entry ();
entryGettext.Text = designInfo.GettextClass;
entryGettext.Sensitive = checkGettext.Active;
box.PackStart (entryGettext, false, false, 0);
box.ShowAll ();
PackStart (box, false, false, 0);
sep= new HSeparator ();
sep.Show ();
PackStart (sep, false, false, 0);
box = new Gtk.HBox (false, 3);
box.PackStart (new Label (GettextCatalog.GetString ("Stetic folder name :")), false, false, 0);
entryFolderName = new Gtk.Entry ();
entryFolderName.Text = designInfo.SteticFolderName;
entryFolderName.Sensitive = false;
box.PackStart (entryFolderName, false, false, 0);
box.ShowAll ();
PackStart (box, false, false, 0);
checkHideFiles = new CheckButton (GettextCatalog.GetString ("Hide designer files"));
checkHideFiles.Active = designInfo.HideGtkxFiles;
checkHideFiles.Show ();
PackStart (checkHideFiles, false, false, 0);
}
示例4: WidgetBuilderOptionPanelWidget
public WidgetBuilderOptionPanelWidget (Project project) : base (false, 6)
{
this.project = project as DotNetProject;
Gtk.HBox box = new Gtk.HBox (false, 3);
Gtk.Label lbl = new Gtk.Label (GettextCatalog.GetString ("Target Gtk# version:"));
box.PackStart (lbl, false, false, 0);
comboVersions = ComboBox.NewText ();
ReferenceManager refmgr = new ReferenceManager (project as DotNetProject);
foreach (string v in refmgr.SupportedGtkVersions)
comboVersions.AppendText (v);
comboVersions.Active = refmgr.SupportedGtkVersions.IndexOf (refmgr.GtkPackageVersion);
refmgr.Dispose ();
box.PackStart (comboVersions, false, false, 0);
box.ShowAll ();
PackStart (box, false, false, 0);
HSeparator sep = new HSeparator ();
sep.Show ();
PackStart (sep, false, false, 0);
if (!GtkDesignInfo.HasDesignedObjects (project))
return;
GtkDesignInfo designInfo = GtkDesignInfo.FromProject (project);
checkGettext = new CheckButton (GettextCatalog.GetString ("Enable gettext support"));
checkGettext.Active = designInfo.GenerateGettext;
checkGettext.Show ();
PackStart (checkGettext, false, false, 0);
box = new Gtk.HBox (false, 3);
box.PackStart (new Label (GettextCatalog.GetString ("Gettext class:")), false, false, 0);
entryGettext = new Gtk.Entry ();
entryGettext.Text = designInfo.GettextClass;
entryGettext.Sensitive = checkGettext.Active;
box.PackStart (entryGettext, false, false, 0);
box.ShowAll ();
PackStart (box, false, false, 0);
box = new Gtk.HBox (false, 3);
box.PackStart (new Label (GettextCatalog.GetString ("Resource loader class:")), false, false, 0);
entryResourceLoader = new Gtk.Entry ();
entryResourceLoader.Text = designInfo.ImageResourceLoaderClass;
entryResourceLoader.Sensitive = checkGettext.Active;
box.PackStart (entryResourceLoader, false, false, 0);
box.ShowAll ();
PackStart (box, false, false, 0);
checkGettext.Clicked += delegate {
box.Sensitive = checkGettext.Active;
if (checkGettext.Active)
entryGettext.Text = "Mono.Unix.Catalog";
};
}
示例5: GeneralPreferencesPanel
public GeneralPreferencesPanel()
{
this.Build ();
FillLangs ();
FillTemplates ();
autosavecb = new CheckButton ();
table1.Attach (autosavecb, 1, 2, 1, 2,
AttachOptions.Shrink,
AttachOptions.Shrink, 0, 0);
autosavecb.CanFocus = false;
autosavecb.Show ();
autosavecb.Active = App.Current.Config.AutoSave;
autosavecb.Toggled += (sender, e) => {
App.Current.Config.AutoSave = autosavecb.Active;
};
}
示例6: DefaultApplicationHelperDialog
private DefaultApplicationHelperDialog()
: base(null, DialogFlags.DestroyWithParent, MessageType.Question, ButtonsType.None,
Catalog.GetString ("Make Banshee the default media player?"),
Catalog.GetString ("Currently another program is configured as the default media player. Would you prefer Banshee to be the default?"))
{
remember = new CheckButton (Catalog.GetString ("Do not ask me this again"));
remember.UseUnderline = true;
remember.Active = DefaultApplicationHelper.EverAskedSchema.Get ()
? DefaultApplicationHelper.RememberChoiceSchema.Get () : false;
remember.Show ();
Alignment align = new Alignment (0f, 0f, 1f, 1f);
align.TopPadding = 6;
align.Child = remember;
align.Show ();
LabelVBox.PackEnd (align, false, false, 0);
AddButton (Gtk.Stock.Cancel, Gtk.ResponseType.No, false);
AddCustomButton (Catalog.GetString ("Make Banshee the Default"), Gtk.ResponseType.Yes, true).HasFocus = true;
}
示例7: Build
void Build ()
{
Title = GettextCatalog.GetString ("Exception Caught");
DefaultHeight = 500;
DefaultWidth = 600;
VBox.Spacing = 0;
VBox.PackStart (CreateExceptionHeader (), false, true, 0);
var paned = new VPaned ();
paned.Add1 (CreateExceptionValueTreeView ());
paned.Add2 (CreateStackTraceTreeView ());
paned.Show ();
var vbox = new VBox (false, 0);
vbox.PackStart (CreateSeparator (), false, true, 0);
vbox.PackStart (paned, true, true, 0);
vbox.PackStart (CreateSeparator (), false, true, 0);
vbox.Show ();
VBox.PackStart (vbox, true, true, 0);
var actionArea = new HBox (false, 12) { BorderWidth = 6 };
OnlyShowMyCodeCheckbox = new CheckButton (GettextCatalog.GetString ("_Only show my code."));
OnlyShowMyCodeCheckbox.Toggled += OnlyShowMyCodeToggled;
OnlyShowMyCodeCheckbox.Show ();
OnlyShowMyCodeCheckbox.Active = DebuggingService.GetUserOptions ().ProjectAssembliesOnly;
var alignment = new Alignment (0.0f, 0.5f, 0.0f, 0.0f) { Child = OnlyShowMyCodeCheckbox };
alignment.Show ();
actionArea.PackStart (alignment, true, true, 0);
actionArea.PackStart (CreateButtonBox (), false, true, 0);
actionArea.Show ();
VBox.PackStart (actionArea, false, true, 0);
ActionArea.Hide ();
}
示例8: PortableRuntimeOptionsPanelWidget
public PortableRuntimeOptionsPanelWidget (PortableDotNetProject project, IEnumerable<ItemConfiguration> configurations)
{
this.project = project;
this.Build ();
SortedDictionary<string, List<Framework>> options = new SortedDictionary<string, List<Framework>> ();
foreach (var fx in Runtime.SystemAssemblyService.GetTargetFrameworks ()) {
if (fx.Hidden || fx.Id.Identifier != ".NETPortable" || !project.TargetRuntime.IsInstalled (fx))
continue;
foreach (var sfx in fx.SupportedFrameworks) {
List<Framework> list;
if (!options.TryGetValue (sfx.DisplayName, out list)) {
list = new List<Framework> ();
options.Add (sfx.DisplayName, list);
}
list.Add (sfx);
}
}
foreach (var opt in options) {
var alignment = new Alignment (0.0f, 0.5f, 1.0f, 1.0f) { LeftPadding = 18 };
List<Framework> versions = opt.Value;
CheckButton check;
// FIXME: VS11 introduces comboboxes for some of these... which I suspect will need to sort based on version
//versions.Sort (CompareFrameworksByVersion);
check = new CheckButton (versions[0].DisplayName + " " + versions[0].MinimumVersionDisplayName);
check.Sensitive = false; // Desensitize until we support changing these values...
foreach (var ver in versions) {
if (ver.TargetFramework == project.TargetFramework) {
check.Active = true;
break;
}
}
check.Show ();
alignment.Add (check);
alignment.Show ();
vbox1.PackStart (alignment, false, false, 0);
}
}
示例9: AddSingleOptionCheckbox
void AddSingleOptionCheckbox (string label, List<TargetFramework> targetFrameworks)
{
var alignment = new Alignment (0.0f, 0.5f, 1.0f, 1.0f) { LeftPadding = 18 };
var check = new CheckButton (label);
foreach (var fx in targetFrameworks) {
if (fx.Id.Equals (project.TargetFramework.Id)) {
check.Active = true;
break;
}
}
check.Toggled += (sender, e) => {
TargetFrameworkChanged (check, targetFrameworks);
};
checkboxes.Add (check, targetFrameworks);
check.Show ();
alignment.Add (check);
alignment.Show ();
vbox1.PackStart (alignment, false, false, 0);
}
示例10: AddMultiOptionCombo
void AddMultiOptionCombo (SortedDictionary<string, List<TargetFramework>> options)
{
var alignment = new Alignment (0.0f, 0.5f, 1.0f, 1.0f) { LeftPadding = 18 };
var model = new ListStore (new Type[] { typeof (string), typeof (object) });
var renderer = new CellRendererText ();
var combo = new ComboBox (model);
var check = new CheckButton ();
List<TargetFramework> targets;
var hbox = new HBox ();
int current = 0;
int active = -1;
string label;
foreach (var kvp in options) {
label = kvp.Key;
if (current + 1 < options.Count)
label += " or later";
targets = kvp.Value;
if (active == -1) {
foreach (var target in targets) {
if (target.Id.Equals (project.TargetFramework.Id)) {
active = current;
break;
}
}
}
model.AppendValues (label, targets);
current++;
}
combo.PackStart (renderer, true);
combo.AddAttribute (renderer, "text", 0);
check.Show ();
combo.Show ();
if (active != -1) {
combo.Active = active;
check.Active = true;
} else {
check.Active = false;
combo.Active = 0;
}
combo.Changed += (sender, e) => {
if (check.Active)
TargetFrameworkChanged (check, combo);
};
check.Toggled += (sender, e) => {
TargetFrameworkChanged (check, combo);
};
comboboxes.Add (check, combo);
hbox.PackStart (check, false, false, 0);
hbox.PackStart (combo, false, true, 0);
hbox.Show ();
alignment.Add (hbox);
alignment.Show ();
vbox1.PackStart (alignment, false, false, 0);
}
示例11: BuildMatchHeader
private HBox BuildMatchHeader()
{
HBox matchHeader = new HBox();
matchHeader.Show();
matchCheckBox = new CheckButton("Match");
matchCheckBox.Show();
matchCheckBox.Toggled += OnMatchCheckBoxToggled;
matchHeader.PackStart(matchCheckBox, false, false, 0);
matchLogicCombo = ComboBox.NewText();
matchLogicCombo.AppendText("all");
matchLogicCombo.AppendText("any");
matchLogicCombo.Show();
matchLogicCombo.Active = 0;
matchHeader.PackStart(matchLogicCombo, false, false, 0);
matchLabelFollowing = new Label("of the following:");
matchLabelFollowing.Show();
matchLabelFollowing.Xalign = 0.0f;
matchHeader.PackStart(matchLabelFollowing, true, true, 0);
matchHeader.Spacing = 5;
matchCheckBox.Active = false;
OnMatchCheckBoxToggled(matchCheckBox, null);
return matchHeader;
}
示例12: Build
void Build ()
{
Title = GettextCatalog.GetString ("Exception Caught");
DefaultHeight = 350;
DefaultWidth = 500;
VBox.Spacing = 0;
VBox.PackStart (CreateExceptionHeader (), false, true, 0);
var vbox = new VBox (false, 0);
vbox.PackStart (CreateSeparator (), false, true, 0);
vbox.PackStart (CreateExceptionValueTreeView (), true, true, 0);
vbox.PackStart (CreateSeparator (), false, true, 0);
vbox.PackStart (CreateStackTraceTreeView (), true, true, 0);
vbox.PackStart (CreateSeparator (), false, true, 0);
vbox.Show ();
VBox.PackStart (vbox, true, true, 0);
var actionArea = new HBox (false, 12) { BorderWidth = 6 };
OnlyShowMyCodeCheckbox = new CheckButton (GettextCatalog.GetString ("_Only show my code."));
OnlyShowMyCodeCheckbox.Toggled += OnlyShowMyCodeToggled;
OnlyShowMyCodeCheckbox.Show ();
var alignment = new Alignment (0.0f, 0.5f, 0.0f, 0.0f) { Child = OnlyShowMyCodeCheckbox };
alignment.Show ();
actionArea.PackStart (alignment, true, true, 0);
actionArea.PackStart (CreateButtonBox (), false, true, 0);
actionArea.Show ();
VBox.PackStart (actionArea, false, true, 0);
ActionArea.Hide ();
}
示例13: HandleOpenWith
public void HandleOpenWith (object sender, ApplicationActivatedEventArgs e)
{
GLib.AppInfo application = e.AppInfo;
Photo[] selected = SelectedPhotos ();
if (selected == null || selected.Length < 1)
return;
string header = Catalog.GetPluralString ("Create New Version?", "Create New Versions?", selected.Length);
string msg = String.Format (Catalog.GetPluralString (
"Before launching {1}, should F-Spot create a new version of the selected photo to preserve the original?",
"Before launching {1}, should F-Spot create new versions of the selected photos to preserve the originals?", selected.Length),
selected.Length, application.Name);
// FIXME add cancel button? add help button?
HigMessageDialog hmd = new HigMessageDialog (GetToplevel (sender), DialogFlags.DestroyWithParent,
MessageType.Question, Gtk.ButtonsType.None,
header, msg);
hmd.AddButton (Gtk.Stock.No, Gtk.ResponseType.No, false);
//hmd.AddButton (Gtk.Stock.Cancel, Gtk.ResponseType.Cancel, false);
hmd.AddButton (Gtk.Stock.Yes, Gtk.ResponseType.Yes, true);
bool support_xcf = false;
;
if (application.Id == "gimp.desktop")
foreach (PixbufFormat format in Gdk.Pixbuf.Formats.Where(format => format.Name == "xcf"))
support_xcf = true;
//This allows creating a version with a .xcf extension.
//There's no need to convert the file to xcf file format, gimp will take care of this
if (support_xcf) {
CheckButton cb = new CheckButton (Catalog.GetString ("XCF version"));
cb.Active = Preferences.Get<bool> (Preferences.EDIT_CREATE_XCF_VERSION);
hmd.VBox.Add (cb);
cb.Toggled += (s, ea) => Preferences.Set (Preferences.EDIT_CREATE_XCF_VERSION, (s as CheckButton).Active);
cb.Show ();
}
Gtk.ResponseType response = Gtk.ResponseType.Cancel;
try {
response = (Gtk.ResponseType)hmd.Run ();
} finally {
hmd.Destroy ();
}
bool create_xcf = false;
if (support_xcf)
create_xcf = Preferences.Get<bool> (Preferences.EDIT_CREATE_XCF_VERSION);
Log.DebugFormat ("XCF ? {0}", create_xcf);
if (response == Gtk.ResponseType.Cancel)
return;
bool create_new_versions = (response == Gtk.ResponseType.Yes);
List<EditException> errors = new List<EditException> ();
GLib.List uri_list = new GLib.List (typeof(string));
foreach (Photo photo in selected) {
try {
if (create_new_versions) {
uint version = photo.CreateNamedVersion (application.Name, create_xcf ? ".xcf" : null, photo.DefaultVersionId, true);
photo.DefaultVersionId = version;
}
} catch (Exception ex) {
errors.Add (new EditException (photo, ex));
}
uri_list.Append (photo.DefaultVersion.Uri.ToString ());
}
// FIXME need to clean up the error dialog here.
if (errors.Count > 0) {
Dialog md = new EditExceptionDialog (GetToplevel (sender), errors.ToArray ());
md.Run ();
md.Destroy ();
}
if (create_new_versions)
Database.Photos.Commit (selected);
try {
application.LaunchUris (uri_list, null);
} catch (Exception) {
Log.ErrorFormat ("Failed to lauch {0}", application.Name);
}
}
示例14: MakeGeneralPage
private Gtk.Widget MakeGeneralPage()
{
VBox vbox = new VBox (false, 6);
vbox.BorderWidth = 10;
//
// ITask Management System
//
VBox sectionVBox = new VBox (false, 4);
Label l = new Label ();
l.Markup = string.Format ("<span size=\"large\" weight=\"bold\">{0}</span>",
Catalog.GetString ("Task Management System"));
l.UseUnderline = false;
l.UseMarkup = true;
l.Wrap = false;
l.Xalign = 0;
l.Show ();
sectionVBox.PackStart (l, false, false, 0);
backendComboBox = ComboBox.NewText ();
backendComboMap = new Dictionary<int, string> ();
// Fill out the ComboBox
int i = 0;
selectedBackend = -1;
foreach (var backend in application.BackendManager.AvailableBackends) {
backendComboBox.AppendText (backend.Value);
backendComboMap [i] = backend.Key;
if (backend.Key == application.BackendManager.CurrentBackend)
selectedBackend = i;
i++;
}
if (selectedBackend >= 0)
backendComboBox.Active = selectedBackend;
backendComboBox.Changed += OnBackendComboBoxChanged;
backendComboBox.Show ();
HBox hbox = new HBox (false, 6);
l = new Label (string.Empty); // spacer
l.Show ();
hbox.PackStart (l, false, false, 0);
hbox.PackStart (backendComboBox, false, false, 0);
hbox.Show ();
sectionVBox.PackStart (hbox, false, false, 0);
sectionVBox.Show ();
vbox.PackStart (sectionVBox, false, false, 0);
//
// ITask Filtering
//
sectionVBox = new VBox (false, 4);
l = new Label ();
l.Markup = string.Format ("<span size=\"large\" weight=\"bold\">{0}</span>",
Catalog.GetString ("Task Filtering"));
l.UseUnderline = false;
l.UseMarkup = true;
l.Wrap = false;
l.Xalign = 0;
l.Show ();
sectionVBox.PackStart (l, false, false, 0);
HBox sectionHBox = new HBox (false, 6);
l = new Label (string.Empty); // spacer
l.Show ();
sectionHBox.PackStart (l, false, false, 0);
VBox innerSectionVBox = new VBox (false, 6);
hbox = new HBox (false, 6);
bool showCompletedTasks = application.Preferences.GetBool (
PreferencesKeys.ShowCompletedTasksKey);
showCompletedTasksCheckButton =
new CheckButton (Catalog.GetString ("Sh_ow completed tasks"));
showCompletedTasksCheckButton.UseUnderline = true;
showCompletedTasksCheckButton.Active = showCompletedTasks;
showCompletedTasksCheckButton.Show ();
hbox.PackStart (showCompletedTasksCheckButton, true, true, 0);
hbox.Show ();
innerSectionVBox.PackStart (hbox, false, false, 0);
// TaskLists TreeView
l = new Label (Catalog.GetString ("Only _show these lists when \"All\" is selected:"));
l.UseUnderline = true;
l.Xalign = 0;
l.Show ();
innerSectionVBox.PackStart (l, false, false, 0);
ScrolledWindow sw = new ScrolledWindow ();
sw.HscrollbarPolicy = PolicyType.Automatic;
sw.VscrollbarPolicy = PolicyType.Automatic;
sw.ShadowType = ShadowType.EtchedIn;
taskListsTree = new TreeView ();
taskListsTree.Selection.Mode = SelectionMode.None;
taskListsTree.RulesHint = false;
taskListsTree.HeadersVisible = false;
l.MnemonicWidget = taskListsTree;
Gtk.TreeViewColumn column = new Gtk.TreeViewColumn ();
column.Title = Catalog.GetString ("Task List");
//.........这里部分代码省略.........
示例15: VideoPreferencesPanel
public VideoPreferencesPanel()
{
this.Build ();
if (App.Current.Config.FPS_N == 30) {
fpscombobox.Active = 1;
} else if (App.Current.Config.FPS_N == 50) {
fpscombobox.Active = 2;
} else if (App.Current.Config.FPS_N == 60) {
fpscombobox.Active = 3;
} else {
fpscombobox.Active = 0;
}
fpscombobox.Changed += HandleFPSChanged;
Misc.FillImageFormat (renderimagecombo, VideoStandards.Rendering, App.Current.Config.RenderVideoStandard);
Misc.FillEncodingFormat (renderenccombo, App.Current.Config.RenderEncodingProfile);
Misc.FillQuality (renderqualcombo, App.Current.Config.RenderEncodingQuality);
Misc.FillImageFormat (captureimagecombo, VideoStandards.Capture, App.Current.Config.CaptureVideoStandard);
Misc.FillEncodingFormat (captureenccombo, App.Current.Config.CaptureEncodingProfile);
Misc.FillQuality (capturequalcombo, App.Current.Config.CaptureEncodingQuality);
renderimagecombo.Changed += HandleImageChanged;
captureimagecombo.Changed += HandleImageChanged;
renderenccombo.Changed += HandleEncodingChanged;
captureenccombo.Changed += HandleEncodingChanged;
renderqualcombo.Changed += HandleQualityChanged;
capturequalcombo.Changed += HandleQualityChanged;
enableSound = new CheckButton ();
rendertable.Attach (enableSound, 1, 2, 3, 4,
AttachOptions.Fill,
AttachOptions.Fill, 0, 0);
enableSound.CanFocus = false;
enableSound.Show ();
enableSound.Active = App.Current.Config.EnableAudio;
enableSound.Toggled += (sender, e) => {
App.Current.Config.EnableAudio = enableSound.Active;
};
overlayTitle = new CheckButton ();
rendertable.Attach (overlayTitle, 1, 2, 4, 5,
AttachOptions.Fill,
AttachOptions.Fill, 0, 0);
overlayTitle.CanFocus = false;
overlayTitle.Show ();
overlayTitle.Active = App.Current.Config.OverlayTitle;
overlayTitle.Toggled += (sender, e) => {
App.Current.Config.OverlayTitle = overlayTitle.Active;
};
SizeGroup sgroup = new SizeGroup (SizeGroupMode.Horizontal);
SizeGroup sgroup2 = new SizeGroup (SizeGroupMode.Horizontal);
foreach (Widget w in generaltable) {
if (w is Label) {
sgroup.AddWidget (w);
} else {
sgroup2.AddWidget (w);
}
}
foreach (Widget w in capturetable) {
if (w is Label) {
sgroup.AddWidget (w);
} else {
sgroup2.AddWidget (w);
}
}
foreach (Widget w in rendertable) {
if (w is Label) {
sgroup.AddWidget (w);
} else {
sgroup2.AddWidget (w);
}
}
}