public ProgressDialog(string title, Gtk.Window parent_window) { this.WidthRequest = 350; Title = title; this.totalCount = 10; if (parent_window != null) this.TransientFor = parent_window; this.Modal =true; HasSeparator = false; BorderWidth = 6; SetDefaultSize (300, -1); messageLabel = new Label (String.Empty); VBox.PackStart (messageLabel, true, true, 12); progressBar = new ProgressBar (); VBox.PackStart (progressBar, true, true, 6); Response += new ResponseHandler (HandleResponse); ShowAll (); while (Application.EventsPending ()) Application.RunIteration (); }
public GettingDialog(VersionControlServer vcs, Workspace workspace, GetRequest[] requests) : base("Progress") { VBox.Spacing = 10; VBox.Add(new Label("Getting files from the server...")); progressBar = new ProgressBar(); VBox.Add(progressBar); fileLabel = new Label(""); VBox.Add(fileLabel); AddCloseButton("Cancel"); DefaultResponse = ResponseType.Cancel; ShowAll(); getLatestList.Clear(); vcs.Getting += MyGettingEventHandler; GetStatus status = workspace.Get(requests, GetOptions.GetAll|GetOptions.Overwrite); foreach (string file in getLatestList) { Console.WriteLine(file); Pulse("Setting permissions: " + file); if (! FileTypeDatabase.ShouldBeExecutable(file)) continue; FileType.MakeExecutable(file); } }
protected void applyProgress(ProgressBar progress, ProgressChangedEventArgs e) { if(e.message!=null) progress.Text = e.message; progress.Sensitive = e.state== ProgressState.None; //progress. //progress.IsIndeterminate = e.state== ProgressState.Indeterminate; switch(e.state) { case ProgressState.Normal: //progress.Foreground = default_progress_color; break; case ProgressState.Error: //progress.Foreground = Brushes.Red; break; case ProgressState.Wait: //progress.Foreground = Brushes.Yellow; break; } progress.Visible = true; if(e.max==0) progress.Fraction = 0; else { progress.Fraction = (double)e.max/(double)e.value; } }
public ProgressDialog(Window parent) : base() { this.Title = "Updating iPod..."; this.HasSeparator = false; this.TransientFor = parent; this.DefaultWidth = 400; VBox vbox = new VBox (false, 6); vbox.BorderWidth = 6; HBox hbox = new HBox (false, 6); Gdk.PixbufAnimation animation = new Gdk.PixbufAnimation (Assembly.GetExecutingAssembly (), "ipod.gif"); hbox.PackStart (new Gtk.Image (animation), false, false, 0); label = new Label (""); label.Xalign = 0.0f; label.UseMarkup = true; SetEllipsize (label); hbox.PackStart (label, true, true, 0); vbox.PackStart (hbox, true, false, 0); bar = new ProgressBar (); vbox.PackStart (bar, true, false, 0); VBox.PackStart (vbox, false, false, 0); VBox.ShowAll (); notify = new ThreadNotify (new ReadyEvent (OnNotify)); }
private void createGui(Gtk.Window app1, ChronopicRegisterPort crp, string labelStr) { chronopic_contacts_real_win = new Window("Chronopic connection"); chronopic_contacts_real_win.AllowGrow = false; chronopic_contacts_real_win.Modal = true; chronopic_contacts_real_win.TransientFor = app1; chronopic_contacts_real_win.BorderWidth = 20; chronopic_contacts_real_win.DeleteEvent += on_delete_event; Gtk.VBox vbox_main = new Gtk.VBox(false, 20); chronopic_contacts_real_win.Add(vbox_main); LogB.Information("Connecting real (starting connection)"); LogB.Information("Press test button on Chronopic"); Gtk.Label labelMessage = new Gtk.Label(); labelMessage.Text = labelStr + "\n" + "\n" + Catalog.GetString("Port") + ": " + crp.Port + "\n" + Catalog.GetString("Serial Number") + ": " + crp.SerialNumber; vbox_main.Add(labelMessage); progressbar = new Gtk.ProgressBar(); vbox_main.Add(progressbar); Gtk.Button button_cancel = new Gtk.Button("Cancel"); button_cancel.Clicked += new EventHandler(on_button_cancel_clicked); Gtk.HButtonBox hbox = new Gtk.HButtonBox(); hbox.Add(button_cancel); vbox_main.Add(hbox); chronopic_contacts_real_win.ShowAll(); }
public ProgressDialog(string title, CancelButtonType cancel_button_type, int total_count, Gtk.Window parent_window) { Title = title; this.total_count = total_count; if (parent_window != null) this.TransientFor = parent_window; HasSeparator = false; BorderWidth = 6; SetDefaultSize (300, -1); message_label = new Label (String.Empty); VBox.PackStart (message_label, true, true, 12); progress_bar = new ProgressBar (); VBox.PackStart (progress_bar, true, true, 6); switch (cancel_button_type) { case CancelButtonType.Cancel: button = (Gtk.Button)AddButton (Gtk.Stock.Cancel, (int) ResponseType.Cancel); break; case CancelButtonType.Stop: button = (Gtk.Button)AddButton (Gtk.Stock.Stop, (int) ResponseType.Cancel); break; } Response += new ResponseHandler (HandleResponse); }
public SdStatusBar(IStatusBarService manager) { Spacing = 3; BorderWidth = 1; progress = new ProgressBar (); this.PackStart (progress, false, false, 0); this.PackStart (txtStatusBarPanel, true, true, 0); statusBox = new HBox (); statusLabel = new Label (); statusLabel.SetAlignment (0, 0.5f); statusLabel.Wrap = false; statusBox.PackEnd (statusLabel, true, true, 0); txtStatusBarPanel.Add (statusBox); this.PackStart (cursorStatusBarPanel, false, false, 0); cursorLabel = new Label (" "); cursorStatusBarPanel.Add (cursorLabel); this.PackStart (modeStatusBarPanel, false, false, 0); modeLabel = new Label (" "); modeStatusBarPanel.Add (modeLabel); this.PackStart (iconsStatusBarPanel, false, false, 0); txtStatusBarPanel.ShowAll (); Progress.Hide (); Progress.PulseStep = 0.3; }
public void Initialize() { Window = (Window) _builder.GetObject("LauncherWindow"); Window.Title = _setup.Title; Window.Hidden += (sender, eventArgs) => Application.Quit(); Window.Show(); PatchNotes = (TextView)_builder.GetObject("PatchNotes"); ProgressBar = (ProgressBar) _builder.GetObject("ProgressBar"); PlayButton = (Button) _builder.GetObject("PlayButton"); PlayButton.Clicked += (sender, args) => { Program.StartGame(_setup); }; HeaderImage = (Image)_builder.GetObject("HeaderImage"); var headerLocation = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "LaunchHeader.png"); if (File.Exists(headerLocation)) HeaderImage.Pixbuf = new Gdk.Pixbuf(headerLocation); var changeLogFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "changelog.txt"); string patchNotesText = "You're using a BETA version of our custom launcher. Please report all issues on the forum at http://onemoreblock.com/."; if (File.Exists(changeLogFile)) patchNotesText += "\n\n" + File.ReadAllText(changeLogFile); PatchNotes.Buffer.Text = patchNotesText; Task.Run(() => CheckAndUpdate()); }
//this is a popup so it behaves like other splashes on Windows, i.e. doesn't show up as a second window in the taskbar. public SplashScreenForm () : base (Gtk.WindowType.Popup) { AppPaintable = true; this.Decorated = false; this.WindowPosition = WindowPosition.Center; this.TypeHint = Gdk.WindowTypeHint.Splashscreen; try { using (var stream = BrandingService.GetStream ("SplashScreen.png", true)) bitmap = new Gdk.Pixbuf (stream); } catch (Exception e) { LoggingService.LogError ("Can't load splash screen pixbuf 'SplashScreen.png'.", e); } progress = new ProgressBar(); progress.Fraction = 0.00; progress.HeightRequest = 6; vbox = new VBox(); vbox.BorderWidth = 12; label = new Gtk.Label (); label.UseMarkup = true; label.Xalign = 0; vbox.PackEnd (progress, false, true, 0); vbox.PackEnd (label, false, true, 3); this.Add (vbox); if (bitmap != null) this.Resize (bitmap.Width, bitmap.Height); }
public ProgressDialog(string title, CancelButtonType cancel_button_type, int totalCount, Gtk.Window parent_window) { this.WidthRequest = 350; Title = title; this.totalCount = totalCount; if (parent_window != null) this.TransientFor = parent_window; this.Modal =true; HasSeparator = false; BorderWidth = 6; SetDefaultSize (300, -1); messageLabel = new Label (String.Empty); VBox.PackStart (messageLabel, true, true, 12); progressBar = new ProgressBar (); VBox.PackStart (progressBar, true, true, 6); switch (cancel_button_type) { case CancelButtonType.Cancel: button = (Gtk.Button)AddButton (Gtk.Stock.Cancel, (int) ResponseType.Cancel); break; case CancelButtonType.Stop: button = (Gtk.Button)AddButton (Gtk.Stock.Stop, (int) ResponseType.Cancel); break; } Response += new ResponseHandler (HandleResponse); ShowAll (); while (Application.EventsPending ()) Application.RunIteration (); }
public MainWindow() : base("Katahdin Debugger") { SetDefaultSize(500, 400); try { PathResolver pathResolver = new PathResolver(); SetIconFromFile(pathResolver.Resolve("katahdin.svg")); } catch { } Destroyed += delegate { if (runtimeThread != null) runtimeThread.Shutdown(); }; VBox vertical = new VBox(); Add(vertical); MenuBuilder menuBuilder = new MenuBuilder(); MenuBar menuBar = menuBuilder.StartMenuBar(); vertical.PackStart(menuBar, false, false, 0); menuBuilder.StartMenu("Debug"); debugRun = menuBuilder.Add("Run", OnDebugRun); menuBuilder.End(); menuBuilder.StartMenu("View"); viewGrammar = menuBuilder.AddCheck("Grammar", OnViewGrammarToggled); viewParseTrace = menuBuilder.AddCheck("Parse Trace", OnViewParseTraceToggled); viewParseTree = menuBuilder.AddCheck("Parse Tree", OnViewParseTreeToggled); menuBuilder.Separate(); menuBuilder.Add("View runtime object", OnViewRuntimeModule); menuBuilder.End(); menuBuilder.End(); console = new ConsoleWidget(); vertical.PackStart(console, true, true, 0); vertical.PackStart(new HSeparator(), false, false, 0); HBox statusBar = new HBox(); vertical.PackStart(statusBar, false, false, 1); progress = new ProgressBar(); statusBar.PackStart(progress, false, false, 1); statusLabel = new Label(); statusLabel.SetAlignment(0, (float) 0.5); statusLabel.LineWrap = true; statusBar.PackStart(statusLabel, true, true, 0); }
private void progressbarEventOrTimeExecution(Gtk.ProgressBar progressbar, bool percentageMode, Gtk.Label label_value, double events) { if (progressbarLimit == -1) //unlimited event (until 'finish' is clicked) { progressbar.Pulse(); //label_value.Text = events.ToString(); if (events != -1) { label_value.Text = Math.Round(events, 3).ToString(); } } else { if (percentageMode) { double myFraction = events / progressbarLimit * 1.0; if (myFraction > 1) { myFraction = 1; } else if (myFraction < 0) { myFraction = 0; } progressbar.Fraction = myFraction; //progressbar.Text = Util.TrimDecimals(events.ToString(), 1) + " / " + progressbarLimit.ToString(); if (events == -1) //we don't want to display nothing //progressbar.Text = ""; { label_value.Text = ""; } else { label_value.Text = Math.Round(events, 3).ToString(); } } else { //activity mode progressbar.Pulse(); //pass -1 in events in activity mode if don't want to use this label if (events != -1) { //label_value.Text = Util.TrimDecimals(events.ToString(), 1); label_value.Text = Math.Round(events, 3).ToString(); } } } }
public TSearch(CInterfaceGateway in_krnGateway,Glade.XML gxml) { krnGateway = in_krnGateway; progressbar = (gxml.GetWidget("progressbar") as ProgressBar); btnBeginSearch = (gxml.GetWidget("btnBeginSearch") as Button); btnStopSearch = (gxml.GetWidget("btnStopSearch") as Button); txtSearch = (gxml.GetWidget("txtSearch") as Entry); tvSearch = (gxml.GetWidget("tvSearch") as TreeView); m_SearchCount = 0; CreateColumns(); CreatePopupMenu(); AddEvents(); }
public ProgressWindow(String name) : base(name) { this.Name = name; progressbar1 = new Gtk.ProgressBar(); progressbar1.Name = "progressbar1"; progressbar1.Visible = true; progressbar1.PulseStep = Convert.ToDouble("0.01"); this.WidthRequest = 100; this.HeightRequest = 100; this.Add(progressbar1); init(); } //constructor
void AddProgressBar(String text) { /* Progress bar */ m_GtkProgressBox = new HBox(false, 0); m_GtkProgressBar = new ProgressBar(); m_GtkProgressBar.Orientation = ProgressBarOrientation.LeftToRight; m_GtkProgressBox.PackStart(m_GtkProgressBar, true, true, 0); m_GtkProgressLabel = new Label(text); m_GtkProgressBox.PackStart(m_GtkProgressLabel, false, false, 0); m_GtkvBoxMain.PackStart(m_GtkProgressBox, false, false, 0); m_GtkProgressBar.Fraction = 0.0; this.ShowAll(); }
public ExecutingGraphData( Gtk.Button Button_cancel, Gtk.Button Button_finish, Gtk.TextView Textview_message, Gtk.Label Label_event_value, Gtk.Label Label_time_value, Gtk.ProgressBar Progressbar_event, Gtk.ProgressBar Progressbar_time) { this.Button_cancel = Button_cancel; this.Button_finish = Button_finish; this.Textview_message = Textview_message; this.Label_event_value = Label_event_value; this.Label_time_value = Label_time_value; this.Progressbar_event = Progressbar_event; this.Progressbar_time = Progressbar_time; }
public ExecutingGraphData( Gtk.Button Button_cancel, Gtk.Button Button_finish, Gtk.Label Label_message, Gtk.Label Label_event_value, Gtk.Label Label_time_value, Gtk.ProgressBar Progressbar_event, Gtk.ProgressBar Progressbar_time) { this.Button_cancel = Button_cancel; this.Button_finish = Button_finish; this.Label_message = Label_message; this.Label_event_value = Label_event_value; this.Label_time_value = Label_time_value; this.Progressbar_event = Progressbar_event; this.Progressbar_time = Progressbar_time; }
ProgressBar CreateProgressBar(Variable<int> performed, Variable<int> total) { var progressBar = new ProgressBar(); performed.ValueChanged += delegate { progressBar.Fraction = (double) performed.Value / total.Value; while (Application.EventsPending()) { Gtk.Application.RunIteration(); } }; return progressBar; }
public ChronopicDetect(SerialPort sp, Gtk.ProgressBar progressbar, Gtk.Button button_cancel, Gtk.Button button_info, Config.AutodetectPortEnum configAutoDetect) { this.sp = sp; this.progressbar = progressbar; this.button_cancel = button_cancel; this.configAutoDetect = configAutoDetect; button_cancel.Clicked += new EventHandler(on_button_cancel_clicked); button_info.Clicked += new EventHandler(on_button_info_clicked); FakeButtonDone = new Gtk.Button(); Detecting = false; }
public TSearch(CInterfaceGateway in_krnGateway, Glade.XML gxml) { krnGateway = in_krnGateway; progressbar = (gxml.GetWidget("progressbar") as ProgressBar); btnBeginSearch = (gxml.GetWidget("btnBeginSearch") as Button); btnStopSearch = (gxml.GetWidget("btnStopSearch") as Button); txtSearch = (gxml.GetWidget("txtSearch") as Entry); tvSearch = (gxml.GetWidget("tvSearch") as TreeView); m_SearchCount = 0; CreateColumns(); CreatePopupMenu(); AddEvents(); }
public void AddOperation(GtkFileOperationProgress progress) { VBox subvbox = new VBox(); Label lbl = new Label(); subvbox.PackStart(lbl, false, false, 0); ProgressBar bar = new ProgressBar(); bar.Adjustment = new Adjustment(0.0, 0.0, 500.0, 1.0, 1.0, 1.0); subvbox.PackStart(bar, true, true, 0); vbox.PackStart(subvbox, false, true, 0); subvbox.ShowAll(); progress.DisplayWidget = bar; progress.Label = lbl; progress.Adjustment = bar.Adjustment; this.ShowAll(); }
public SampleAssistant () { SetSizeRequest (450, 300); Title = "Gtk.Assistant Sample"; Label lbl = new Label ("Click the forward button to continue."); AppendPage (lbl); SetPageTitle (lbl, "Introduction"); SetPageType (lbl, AssistantPageType.Intro); SetPageComplete (lbl, true); HBox box = new HBox (false, 6); box.PackStart (new Label ("Enter some text: "), false, false, 6); Entry entry = new Entry (); entry.Changed += new EventHandler (EntryChanged); box.PackStart (entry, false, false, 6); AppendPage (box); SetPageTitle (box, "Getting Some Input"); SetPageType (box, AssistantPageType.Content); CheckButton chk = new CheckButton ("I think Gtk# is awesome."); chk.Toggled += new EventHandler (ButtonToggled); AppendPage (chk); SetPageTitle (chk, "Provide Feedback"); SetPageType (chk, AssistantPageType.Content); Alignment al = new Alignment (0.5f, 0.5f, 0.0f, 0.0f); box = new HBox (false, 6); progress_bar = new ProgressBar (); box.PackStart (progress_bar, true, true, 6); Button btn = new Button ("Make progress"); btn.Clicked += new EventHandler (ButtonClicked); box.PackStart (btn, false, false, 6); al.Add (box); AppendPage (al); SetPageTitle (al, "Show Some Progress"); SetPageType (al, AssistantPageType.Progress); lbl = new Label ("In addition to being able to type,\nYou obviously have great taste in software."); AppendPage (lbl); SetPageTitle (lbl, "Congratulations"); SetPageType (lbl, AssistantPageType.Confirm); SetPageComplete (lbl, true); Cancel += new EventHandler (AssistantCancel); Close += new EventHandler (AssistantClose); }
public DiskProgressPane() : base() { this.ShadowType = ShadowType.None; pane = new MessagePane (); pane.HeaderIconStock = Stock.DialogInfo; pane.HeaderMarkup = Catalog.GetString ("<b>Creating Hard Disks</b>"); pane.Append (Catalog.GetString ("Creating the hard disk(s) may take several minutes, depending on their size."), false); progressBar = new ProgressBar (); pane.Append (progressBar, AttachOptions.Expand | AttachOptions.Fill, 0, false); progressBar.Show (); Add (pane); pane.Show (); }
public void Start() { currentStep = 0; window = new Window(WindowType.Toplevel); window.Move(10, 10); window.KeepAbove = true; window.Resize(400, 30); window.AcceptFocus = false; window.Title = "Progress Bar"; progressBar = new ProgressBar(); progressBar.Fraction = 0; window.Add(progressBar); window.ShowAll(); }
public Dialog(Drawable drawable, VariableSet variables) : base(_("Swirlies"), drawable, variables, () => new AspectPreview(drawable)) { _progress = new ProgressBar(); Vbox.PackStart(_progress, false, false, 0); var table = new GimpTable(4, 3, false) {ColumnSpacing = 6, RowSpacing = 6}; Vbox.PackStart(table, false, false, 0); var seed = new RandomSeed(GetVariable<UInt32>("seed"), GetVariable<bool>("random_seed")); table.AttachAligned(0, 0, _("Random _Seed:"), 0.0, 0.5, seed, 2, true); new ScaleEntry(table, 0, 1, _("Po_ints:"), 150, 3, GetVariable<int>("points"), 1.0, 16.0, 1.0, 8.0, 0); }
public ProgressPanel (string message, string button, StartWorkDelegate StartWork, FinishWorkDelegate FinishWork) { Gtk.Label l = new Gtk.Label (message); l.UseMarkup = true; l.Show (); PackStart (l); pb = new ProgressBar (); pb.Show (); PackEnd (pb, false, false, 3); Button b = new Button (button); b.Show (); b.Clicked += new EventHandler (OnStartWorking); PackEnd (b, false, false, 3); this.StartWork = StartWork; this.FinishWork = FinishWork; }
private void OnMigrationSlowStarted(string title, string message) { lock (this) { if (slow_window != null) { slow_window.Destroy(); } Gtk.Application.Init(); slow_window = new Gtk.Window(String.Empty); slow_window.BorderWidth = 10; slow_window.WindowPosition = Gtk.WindowPosition.Center; slow_window.DeleteEvent += delegate(object o, Gtk.DeleteEventArgs args) { args.RetVal = true; }; Gtk.VBox box = new Gtk.VBox(); box.Spacing = 5; Gtk.Label title_label = new Gtk.Label(); title_label.Xalign = 0.0f; title_label.Markup = String.Format("<b><big>{0}</big></b>", GLib.Markup.EscapeText(title)); Gtk.Label message_label = new Gtk.Label(); message_label.Xalign = 0.0f; message_label.Text = message; message_label.Wrap = true; slow_progress = new Gtk.ProgressBar(); box.PackStart(title_label, false, false, 0); box.PackStart(message_label, false, false, 0); box.PackStart(slow_progress, false, false, 0); slow_window.Add(box); slow_window.ShowAll(); IterateSlow(); } }
// ============================================ // PRIVATE Methods // ============================================ private void InitializeObject(bool download) { this.hbox = new Gtk.HBox(false, 2); this.Add(this.hbox); // Initialize Image Logo this.imageLogo = StockIcons.GetImage(((download == true) ? "Download": "Upload")); this.hbox.PackStart(this.imageLogo, false, false, 2); // Initialize Delete Button this.deleteButton = new Gtk.Button(StockIcons.GetImage("DlTrash")); this.deleteButton.Relief = ReliefStyle.None; this.deleteButton.Clicked += new EventHandler(OnDeleteClicked); this.hbox.PackEnd(this.deleteButton, false, false, 2); // Initialize VBox this.vbox = new Gtk.VBox(false, 2); this.hbox.PackStart(this.vbox, true, true, 2); // Initialize Name this.labelName = new Gtk.Label(); this.labelName.UseMarkup = true; this.labelName.Xalign = 0.0f; this.vbox.PackStart(this.labelName, false, false, 2); // Initialize Status "5.8Mb of 8.1Mb (at 316.1Kb/s)" this.labelStatus = new Gtk.Label(); this.labelStatus.UseMarkup = true; this.labelStatus.Xalign = 0.0f; this.vbox.PackStart(this.labelStatus, false, false, 2); // Initialize ProgressBar this.progressBar = new Gtk.ProgressBar(); this.vbox.PackStart(this.progressBar, false, false, 2); this.vbox.PackStart(new Gtk.HSeparator(), false, false, 2); this.ShowAll(); }
public BusyDialog(Window parent) { TransientFor = parent; box = new VBox (false, 10); titleLabel = new Label (); progressBar = new ProgressBar (); box.PackStart (titleLabel, true, true, 0); box.PackStart (progressBar, true, true, 0); box.ShowAll (); VBox.PackStart (box); Icon = LongoMatch.Gui.Helpers.Misc.LoadIcon ("longomatch", 28); TypeHint = Gdk.WindowTypeHint.Dialog; WindowPosition = WindowPosition.Center; Modal = true; Resizable = false; Gravity = Gdk.Gravity.Center; SkipPagerHint = true; SkipTaskbarHint = true; DefaultWidth = 300; DefaultHeight = 100; timeout = 0; }
private void Build() { this.Title = ""; this.BorderWidth = 6; this.WindowPosition = WindowPosition.Center; this.TypeHint = Gdk.WindowTypeHint.Dialog; var vbox = new VBox( false, 4 ); m_progressBar = new ProgressBar(); m_progressBar.Fraction = 0.0f; m_progressBar.Text = "0%"; vbox.PackStart( m_progressBar, false, false, 0 ); this.Add( vbox ); this.SetDefaultSize( 300, 100 ); this.SetSizeRequest( 300, -1 ); this.Resizable = false; this.Shown += OnShown; this.DeleteEvent += OnDeleteEvent; }
// ============================================ // PROTECTED Methods // ============================================ // ============================================ // PRIVATE Methods // ============================================ private void InitializeObject() { // Initialize Image Logo this.imageLogo = new Gtk.Image(); this.imageLogo.Xpad = 5; this.PackStart(this.imageLogo, false, false, 2); // Initialize Delete Button this.deleteButton = new Gtk.Button(StockIcons.GetImage("DlTrash")); this.deleteButton.Relief = ReliefStyle.None; this.deleteButton.Clicked += new EventHandler(OnDeleteClicked); this.PackEnd(this.deleteButton, false, false, 2); // Initialize VBox this.vbox = new Gtk.VBox(false, 2); this.PackStart(this.vbox, true, true, 2); // Initialize Name this.labelName = new Gtk.Label(); this.labelName.UseMarkup = true; this.labelName.Xalign = 0.0f; this.vbox.PackStart(this.labelName, false, false, 2); // Initialize Status "6.1Mb of 10.1Mb (60%)" this.labelStatus = new Gtk.Label(); this.labelStatus.UseMarkup = true; this.labelStatus.Xalign = 0.0f; this.vbox.PackStart(this.labelStatus, false, false, 2); // Initialize ProgressBar this.progressBar = new Gtk.ProgressBar(); this.vbox.PackStart(this.progressBar, false, false, 2); this.vbox.PackStart(new Gtk.HSeparator(), false, false, 2); this.ShowAll(); }
// ============================================ // PUBLIC Constructors // ============================================ public ProgressDialog(string password) : base(MyInfo.Name + " Login", null, DialogFlags.Modal) { // Initialize Dialog Options WindowPosition = Gtk.WindowPosition.Center; // Initialize Dialog Events Response += new ResponseHandler(OnResponse); // Initialize Dialog Components AddButton(Gtk.Stock.Close, ResponseType.Close); Gtk.HBox hbox = new Gtk.HBox(false, 2); Gtk.VBox vbox = new Gtk.VBox(false, 2); VBox.PackStart(hbox, true, true, 2); hbox.PackStart(StockIcons.GetImage("Channel"), false, false, 2); hbox.PackStart(vbox, true, true, 2); // Initialize Label labelMessage = new Gtk.Label("<b>Waiting for " + MyInfo.Name + " Login...</b>"); labelMessage.UseMarkup = true; vbox.PackStart(labelMessage, false, false, 2); // Initialize ProgressBar progressBar = new Gtk.ProgressBar(); vbox.PackStart(progressBar, false, false, 2); // Initialize Timer timer = GLib.Timeout.Add(100, new GLib.TimeoutHandler(ProgressTimeout)); // Initialize UserInfo MyInfo.LoginChecked += new LoginEventHandler(OnLoginChecked); MyInfo.Login(password); this.ShowAll(); }
// FIXME: The total parameter makes sense, but doesn't seem to ever be used? public ThreadProgressDialog(Thread thread, int total) { /* * if (parent_window) * this.TransientFor = parent_window; * */ Title = thread.Name; this.thread = thread; HasSeparator = false; BorderWidth = 6; SetDefaultSize(300, -1); message_label = new Gtk.Label(string.Empty); VBox.PackStart(message_label, true, true, 12); progress_bar = new Gtk.ProgressBar(); VBox.PackStart(progress_bar, true, true, 6); retry_button = new Gtk.Button(Catalog.GetString("Retry")); retry_button.Clicked += HandleRetryClicked; skip_button = new Gtk.Button(Catalog.GetString("Skip")); skip_button.Clicked += HandleSkipClicked; ActionArea.Add(retry_button); ActionArea.Add(skip_button); button_label = Gtk.Stock.Cancel; button = (Gtk.Button)AddButton(button_label, (int)Gtk.ResponseType.Cancel); //delay = new DelayedOperation (new GLib.IdleHandler (HandleUpdate)); Response += HandleResponse; Destroyed += HandleDestroy; }
public ThreadProgressDialog(Thread thread, int total) { /* if (parent_window) this.TransientFor = parent_window; */ this.Title = thread.Name; this.thread = thread; HasSeparator = false; BorderWidth = 6; SetDefaultSize (300, -1); message_label = new Gtk.Label (String.Empty); VBox.PackStart (message_label, true, true, 12); progress_bar = new Gtk.ProgressBar (); VBox.PackStart (progress_bar, true, true, 6); retry_button = new Gtk.Button (Mono.Unix.Catalog.GetString ("Retry")); retry_button.Clicked += new EventHandler (HandleRetryClicked); skip_button = new Gtk.Button (Mono.Unix.Catalog.GetString ("Skip")); skip_button.Clicked += new EventHandler (HandleSkipClicked); ActionArea.Add (retry_button); ActionArea.Add (skip_button); button_label = Gtk.Stock.Cancel; button = (Gtk.Button) AddButton (button_label, (int)Gtk.ResponseType.Cancel); delay = new Delay (new GLib.IdleHandler (HandleUpdate)); Response += HandleResponse; Destroyed += HandleDestroy; }
public SplashScreenForm() : base(Gtk.WindowType.Popup) { this.Decorated = false; this.WindowPosition = WindowPosition.Center; this.TypeHint = Gdk.WindowTypeHint.Splashscreen; Gdk.Pixbuf bitmap = new Gdk.Pixbuf(Assembly.GetEntryAssembly(), "SplashScreen.png"); Gtk.Image image = new Gtk.Image (bitmap); image.Show (); HBox hbox = new HBox(); Alignment align = new Alignment (0.5f, 1.0f, 0.90f, 1.0f); progress = new ProgressBar(); progress.Fraction = 0.00; align.Add (progress); hbox.PackStart (align, true, true, 0); hbox.ShowAll(); vbox = new VBox(); vbox.PackStart(image, true, true, 0); vbox.PackStart(hbox, false, true, 5); this.Add (vbox); }
protected void OnStartStreamButtonClicked(object sender, EventArgs e) { bool vlcError = false; if (rtspTunnel != null && rtspTunnel.Running) { SpawnThread(delegate() { vlcWindow.Kill(); }); return; } else { SpawnThread(delegate() { int stepTimeOut = 10000; bool hasError = false; Gtk.ProgressBar progressBar = new Gtk.ProgressBar(); progressBar.WidthRequest = 170; Label label = new Label("Opening RTSP Connection"); //label.HeightRequest = 10; Dialog dialog = new Dialog("Starting video stream", this, Gtk.DialogFlags.DestroyWithParent); dialog.TypeHint = WindowTypeHint.Splashscreen; dialog.Modal = true; dialog.VBox.Add(label); dialog.VBox.Add(progressBar); dialog.HasSeparator = false; System.Timers.Timer timer = new System.Timers.Timer(100); timer.Elapsed += delegate { Gtk.Application.Invoke(delegate { progressBar.Pulse(); }); }; Gtk.Application.Invoke(delegate { dialog.ShowAll(); }); timer.Start(); if (brickType == BrickType.NXT) { rtspTunnel = new RtspTunnel(rtspPort, imagePort, brick.Connection); } else { throw new NotImplementedException("What to do with EV3"); } rtspTunnel.Start(); string errorMessage = ""; if (rtspTunnel.RTSPWaitHandle.WaitOne(stepTimeOut)) { Gtk.Application.Invoke(delegate { label.Text = "Starting stream"; }); vlcWindow = new Process(); string argument = "rtsp://127.0.0.1:" + rtspPort + " --network-caching=" + networkCachingCombobox.GetActiveValue(); Console.WriteLine(argument); vlcWindow.StartInfo = new ProcessStartInfo(settings.Path, argument); try{ vlcError = false; vlcWindow = Process.Start(new ProcessStartInfo(settings.Path, argument)); /*if(vlcWindow.Start()){ * vlcError = false; * }*/ } catch { vlcError = true; } if (!vlcError) { Gtk.Application.Invoke(delegate { label.Text = "Waiting for image stream"; }); if (rtspTunnel.StreamWaitHandle.WaitOne(stepTimeOut)) { //Everything is ok rtspTunnel.Stopped += OnRTSPTunnelStopped; rtspTunnel.NewImageDataRate += OnUpdateStreamRate; OnRTSPTunnelStarted(); } else { errorMessage = "Failed to receive image data"; hasError = true; } } else { errorMessage = "Failed to start vlc window"; hasError = true; } } else { errorMessage = "Failed to start remote RTSP-server"; hasError = true; } timer.Stop(); Gtk.Application.Invoke(delegate { dialog.Destroy(); }); if (hasError && !vlcError) { if (rtspTunnel != null && rtspTunnel.Running) { rtspTunnel.Stop(); } Gtk.Application.Invoke(delegate { MessageDialog md = new MessageDialog(this, DialogFlags.Modal, MessageType.Error, ButtonsType.Close, "\n" + errorMessage); md.Icon = global::Gdk.Pixbuf.LoadFromResource(MessageDialogIconName); md.WindowPosition = Gtk.WindowPosition.CenterOnParent; md.Run(); md.Destroy(); }); } if (vlcError) { rtspTunnel.Stop(); Gtk.Application.Invoke(delegate { /*if(Environment.OSVersion.Platform == PlatformID.MacOSX || Environment.OSVersion.Platform == PlatformID.Unix){ * //Mac OS and Linux * MessageDialog md = new MessageDialog (this, DialogFlags.Modal, MessageType.Error, ButtonsType.Ok, * "\n" + "Failed to start VLC\n" + * "Make sure you have installed VLC"); * md.Icon = global::Gdk.Pixbuf.LoadFromResource (MessageDialogIconName); * md.WindowPosition = Gtk.WindowPosition.CenterOnParent; * md.Run(); * md.Destroy(); * * } * else{*/ //windows MessageDialog md = new MessageDialog(this, DialogFlags.Modal, MessageType.Error, ButtonsType.YesNo, "\n" + "Failed to start VLC\n" + "VLC executable path is currently set to:\n" + settings.Path + "\n" + "Do you want to change this"); md.Icon = global::Gdk.Pixbuf.LoadFromResource(MessageDialogIconName); md.WindowPosition = Gtk.WindowPosition.CenterOnParent; if (md.Run() == (int)ResponseType.Yes) { md.Destroy(); Gtk.FileChooserDialog fc = new Gtk.FileChooserDialog("Locate VLC executable", this, FileChooserAction.Open, Gtk.Stock.Cancel, ResponseType.Cancel, Gtk.Stock.Ok, ResponseType.Accept); if (fc.Run() == (int)ResponseType.Accept) { settings.Path = fc.Filename; settings.Save(); } fc.Destroy(); } else { md.Destroy(); } //} }); } }); } }
public void HandleFileSyncEvent(FileSyncEventArgs args) { if (args.SizeRemaining == args.SizeToSync) { if (!args.Direction.Equals(Simias.Client.Event.Direction.Local)) { if(SyncBar == null) { SyncBar = new ProgressBar(); SyncBar.Orientation = Gtk.ProgressBarOrientation.LeftToRight; SyncBar.PulseStep = .01; MainStatusBar.PackEnd(SyncBar, false, true, 0); } SyncBar.Fraction = 0; SyncBar.Show(); } switch (args.ObjectType) { case ObjectType.File: if (args.Delete) UpdateStatus(string.Format( Util.GS("Deleting file: {0}"), args.Name)); else { switch (args.Direction) { case Simias.Client.Event.Direction.Uploading: UpdateStatus(string.Format( Util.GS("Uploading file: {0}"), args.Name)); break; case Simias.Client.Event.Direction.Downloading: UpdateStatus(string.Format( Util.GS("Downloading file: {0}"), args.Name)); break; case Simias.Client.Event.Direction.Local: UpdateStatus(string.Format( Util.GS("Found changes in file: {0}"), args.Name)); break; default: UpdateStatus(string.Format( Util.GS("Synchronizing file: {0}"), args.Name)); break; } } break; case ObjectType.Directory: if (args.Delete) UpdateStatus(string.Format( Util.GS("Deleting directory: {0}"), args.Name)); else { switch (args.Direction) { case Simias.Client.Event.Direction.Uploading: UpdateStatus(string.Format( Util.GS("Uploading directory: {0}"), args.Name)); break; case Simias.Client.Event.Direction.Downloading: UpdateStatus(string.Format( Util.GS("Downloading directory: {0}"), args.Name)); break; case Simias.Client.Event.Direction.Local: UpdateStatus(string.Format( Util.GS("Found changes in directory: {0}"), args.Name)); break; default: UpdateStatus(string.Format( Util.GS("Synchronizing directory: {0}"), args.Name)); break; } } break; case ObjectType.Unknown: UpdateStatus(string.Format( Util.GS("Deleting on server: {0}"), args.Name)); break; } } else { if (SyncBar != null) { SyncBar.Show(); if (args.SizeToSync > 0) { SyncBar.Fraction = (((double)args.SizeToSync) - ((double)args.SizeRemaining)) / ((double)args.SizeToSync); } else SyncBar.Fraction = 1; } } }
// The page shown whilst syncing private void ShowSyncingPage(string name) { Reset (); ProgressBar = new ProgressBar () { Fraction = 0 }; VBox layout_vertical = new VBox (false, 0); Label header = new Label ("<span size='x-large'><b>" + String.Format (_("Syncing folder ‘{0}’…"), name) + "</b></span>") { UseMarkup = true, Xalign = 0, Wrap = true }; Label information = new Label (_("This may take a while.\n") + _("Are you sure it’s not coffee o'clock?")) { UseMarkup = true, Xalign = 0 }; Button button = new Button () { Sensitive = false, Label = _("Finish") }; button.Clicked += delegate { Destroy (); }; AddButton (button); SparkleSpinner spinner = new SparkleSpinner (22); Table table = new Table (3, 2, false) { RowSpacing = 12, ColumnSpacing = 9 }; HBox box = new HBox (false, 0); table.Attach (spinner, 0, 1, 0, 1); table.Attach (header, 1, 2, 0, 1); table.Attach (information, 1, 2, 1, 2); table.Attach (ProgressBar, 2, 3, 0, 2); box.PackStart (table, false, false, 0); layout_vertical.PackStart (box, false, false, 0); Add (layout_vertical); ShowAll (); }
private Widget CreateDiskSpacePage() { VBox vbox = new VBox(false, 0); Table table = new Table(3, 3, false); vbox.PackStart(table, true, true, 0); table.ColumnSpacing = 12; table.RowSpacing = 6; table.BorderWidth = 12; Label l = new Label(Util.GS("Quota:")); table.Attach(l, 0,1, 0,1, AttachOptions.Expand | AttachOptions.Fill, 0,0,0); l.Xalign = 0; QuotaTotalLabel = new Label(""); table.Attach(QuotaTotalLabel, 1,2, 0,1, AttachOptions.Shrink | AttachOptions.Fill, 0,0,0); QuotaTotalLabel.Xalign = 0; l = new Label(Util.GS("Used:")); table.Attach(l, 0,1, 1,2, AttachOptions.Expand | AttachOptions.Fill, 0,0,0); l.Xalign = 0; QuotaUsedLabel = new Label(""); table.Attach(QuotaUsedLabel, 1,2, 1,2, AttachOptions.Shrink | AttachOptions.Fill, 0,0,0); QuotaUsedLabel.Xalign = 0; l = new Label(Util.GS("Available:")); table.Attach(l, 0,1, 2,3, AttachOptions.Expand | AttachOptions.Fill, 0,0,0); l.Xalign = 0; QuotaAvailableLabel = new Label(""); table.Attach(QuotaAvailableLabel, 1,2, 2,3, AttachOptions.Shrink | AttachOptions.Fill, 0,0,0); QuotaAvailableLabel.Xalign = 0; Frame graphFrame = new Frame(); table.Attach(graphFrame, 2,3, 0,3, AttachOptions.Shrink | AttachOptions.Fill, 0,0,0); graphFrame.Shadow = Gtk.ShadowType.EtchedOut; graphFrame.ShadowType = Gtk.ShadowType.EtchedOut; HBox graphBox = new HBox(); graphBox.Spacing = 5; graphBox.BorderWidth = 5; graphFrame.Add(graphBox); QuotaGraph = new ProgressBar(); graphBox.PackStart(QuotaGraph, false, true, 0); QuotaGraph.Orientation = Gtk.ProgressBarOrientation.BottomToTop; QuotaGraph.PulseStep = .10; QuotaGraph.Fraction = 0; VBox graphLabelBox = new VBox(); graphBox.PackStart(graphLabelBox, false, true, 0); Label fullLabel = new Label(Util.GS("full")); fullLabel.Xalign = 0; fullLabel.Yalign = 0; graphLabelBox.PackStart(fullLabel, true, true, 0); Label emptyLabel = new Label(Util.GS("empty")); emptyLabel.Xalign = 0; emptyLabel.Yalign = 1; graphLabelBox.PackStart(emptyLabel, true, true, 0); return vbox; }
// TODO: Possible to make Tomboy not crash if quit while dialog is up? public SyncDialog() : base(string.Empty, null, Gtk.DialogFlags.DestroyWithParent) { progressBarTimeoutId = 0; SetSizeRequest(400, -1); HasSeparator = false; // Outer box. Surrounds all of our content. VBox outerVBox = new VBox(false, 12); outerVBox.BorderWidth = 6; outerVBox.Show(); VBox.PackStart(outerVBox, true, true, 0); // Top image and label HBox hbox = new HBox(false, 12); hbox.Show(); outerVBox.PackStart(hbox, false, false, 0); image = new Image(GuiUtils.GetIcon("tomboy", 48)); image.Xalign = 0; image.Yalign = 0; image.Show(); hbox.PackStart(image, false, false, 0); // Label header and message VBox vbox = new VBox(false, 6); vbox.Show(); hbox.PackStart(vbox, true, true, 0); headerLabel = new Label(); headerLabel.UseMarkup = true; headerLabel.Xalign = 0; headerLabel.UseUnderline = false; headerLabel.LineWrap = true; headerLabel.Show(); vbox.PackStart(headerLabel, false, false, 0); messageLabel = new Label(); messageLabel.Xalign = 0; messageLabel.UseUnderline = false; messageLabel.LineWrap = true; messageLabel.SetSizeRequest(250, -1); messageLabel.Show(); vbox.PackStart(messageLabel, false, false, 0); progressBar = new Gtk.ProgressBar(); progressBar.Orientation = Gtk.ProgressBarOrientation.LeftToRight; progressBar.BarStyle = ProgressBarStyle.Continuous; progressBar.ActivityBlocks = 30; progressBar.Show(); outerVBox.PackStart(progressBar, false, false, 0); progressLabel = new Label(); progressLabel.UseMarkup = true; progressLabel.Xalign = 0; progressLabel.UseUnderline = false; progressLabel.LineWrap = true; progressLabel.Wrap = true; progressLabel.Show(); outerVBox.PackStart(progressLabel, false, false, 0); // Expander containing TreeView expander = new Gtk.Expander(Catalog.GetString("Details")); expander.Spacing = 6; expander.Activated += OnExpanderActivated; expander.Show(); outerVBox.PackStart(expander, true, true, 0); // Contents of expander Gtk.VBox expandVBox = new Gtk.VBox(); expandVBox.Show(); expander.Add(expandVBox); // Scrolled window around TreeView Gtk.ScrolledWindow scrolledWindow = new Gtk.ScrolledWindow(); scrolledWindow.ShadowType = Gtk.ShadowType.In; scrolledWindow.SetSizeRequest(-1, 200); scrolledWindow.Show(); expandVBox.PackStart(scrolledWindow, true, true, 0); // Create model for TreeView model = new Gtk.TreeStore(typeof(string), typeof(string)); // Create TreeView, attach model Gtk.TreeView treeView = new Gtk.TreeView(); treeView.Model = model; treeView.RowActivated += OnRowActivated; treeView.Show(); scrolledWindow.Add(treeView); // Set up TreeViewColumns Gtk.TreeViewColumn column = new Gtk.TreeViewColumn( Catalog.GetString("Note Title"), new Gtk.CellRendererText(), "text", 0); column.SortColumnId = 0; column.Resizable = true; treeView.AppendColumn(column); column = new Gtk.TreeViewColumn( Catalog.GetString("Status"), new Gtk.CellRendererText(), "text", 1); column.SortColumnId = 1; column.Resizable = true; treeView.AppendColumn(column); // Button to close dialog. closeButton = (Gtk.Button)AddButton(Gtk.Stock.Close, Gtk.ResponseType.Close); closeButton.Sensitive = false; }
public ProgressWindow(String name) : base(name) { this.Name = name; progressbar1 = new Gtk.ProgressBar();
internal MonoDevelopStatusBar () { mainContext = new MainStatusBarContextImpl (this); activeContext = mainContext; contexts.Add (mainContext); Frame originalFrame = (Frame)Children [0]; // originalFrame.WidthRequest = 8; // originalFrame.Shadow = ShadowType.In; // originalFrame.BorderWidth = 0; BorderWidth = 0; Spacing = 0; // Feedback button if (FeedbackService.Enabled) { CustomFrame fr = new CustomFrame (0, 0, 1, 1); Gdk.Pixbuf px = Gdk.Pixbuf.LoadFromResource ("balloon.png"); HBox b = new HBox (false, 3); b.PackStart (new Gtk.Image (px)); b.PackStart (new Gtk.Label ("Feedback")); Gtk.Alignment al = new Gtk.Alignment (0f, 0f, 1f, 1f); al.RightPadding = 5; al.LeftPadding = 3; al.Add (b); feedbackButton = new MiniButton (al); //feedbackButton.BackroundColor = new Gdk.Color (200, 200, 255); fr.Add (feedbackButton); PackStart (fr, false, false, 0); feedbackButton.Clicked += HandleFeedbackButtonClicked; feedbackButton.ButtonPressEvent += HandleFeedbackButtonButtonPressEvent; ; feedbackButton.ClickOnRelease = true; FeedbackService.FeedbackPositionGetter = delegate { int x, y; feedbackButton.GdkWindow.GetOrigin (out x, out y); x += feedbackButton.Allocation.Width; y -= 6; return new Gdk.Point (x, y); }; } // Dock area DefaultWorkbench wb = (DefaultWorkbench)IdeApp.Workbench.RootWindow; wb.DockFrame.ShadedContainer.Add (this); Gtk.Widget dockBar = wb.DockFrame.ExtractDockBar (PositionType.Bottom); dockBar.NoShowAll = true; PackStart (dockBar, false, false, 0); // Status panels progressBar = new ProgressBar (); progressBar.PulseStep = 0.1; progressBar.SizeRequest (); progressBar.HeightRequest = 1; statusBox = new HBox (false, 0); statusBox.BorderWidth = 0; statusLabel = new Label (); statusLabel.SetAlignment (0, 0.5f); statusLabel.Wrap = false; int w, h; Gtk.Icon.SizeLookup (IconSize.Menu, out w, out h); statusLabel.HeightRequest = h; statusLabel.SetPadding (0, 0); EventBox eventMessageBox = new EventBox (); messageBox = new HBox (); messageBox.PackStart (progressBar, false, false, 0); messageBox.PackStart (statusLabel, true, true, 0); eventMessageBox.Add (messageBox); statusBox.PackStart (eventMessageBox, true, true, 0); eventMessageBox.ButtonPressEvent += HandleEventMessageBoxButtonPressEvent; textStatusBarPanel.BorderWidth = 0; textStatusBarPanel.ShadowType = ShadowType.None; textStatusBarPanel.Add (statusBox); var eventCaretBox = new EventBox (); var caretStatusBox = new HBox (); modeLabel = new Label (" "); caretStatusBox.PackEnd (modeLabel, false, false, 8); cursorLabel = new CaretStatusLabel (" "); caretStatusBox.PackEnd (cursorLabel, false, false, 0); caretStatusBox.GetSizeRequest (out w, out h); caretStatusBox.WidthRequest = w; caretStatusBox.HeightRequest = h; eventCaretBox.Add (caretStatusBox); statusBox.PackEnd (eventCaretBox, false, false, 0); statusIconBox = new HBox (); statusIconBox.BorderWidth = 0; statusIconBox.Spacing = 3; statusBox.PackEnd (statusIconBox, false, false, 4); this.PackStart (textStatusBarPanel, true, true, 0); ShowReady (); Gtk.Box.BoxChild boxChild = (Gtk.Box.BoxChild)this[textStatusBarPanel]; boxChild.Position = 0; boxChild.Expand = boxChild.Fill = true; // boxChild = (Gtk.Box.BoxChild)this[originalFrame]; // boxChild.Padding = 0; // boxChild.Expand = boxChild.Fill = false; this.progressBar.Fraction = 0.0; this.ShowAll (); statusIconBox.HideAll (); originalFrame.HideAll (); progressBar.Visible = false; StatusBarContext completionStatus = null; // todo: Move this to the CompletionWindowManager when it's possible. CompletionWindowManager.WindowShown += delegate { CompletionListWindow wnd = CompletionWindowManager.Wnd; if (wnd != null && wnd.List != null && wnd.List.CategoryCount > 1) { if (completionStatus == null) completionStatus = CreateContext (); completionStatus.ShowMessage (string.Format (GettextCatalog.GetString ("To toggle categorized completion mode press {0}."), IdeApp.CommandService.GetCommandInfo (Commands.TextEditorCommands.ShowCompletionWindow).AccelKey)); } }; CompletionWindowManager.WindowClosed += delegate { if (completionStatus != null) { completionStatus.Dispose (); completionStatus = null; } }; }
public void ShowPage(PageType type, string [] warnings) { if (type == PageType.Setup) { Header = "Welcome to SparkleShare!"; Description = "First off, what's your name and email?\nThis information is only visible to team members."; Table table = new Table (2, 3, true) { RowSpacing = 6, ColumnSpacing = 6 }; Label name_label = new Label ("<b>" + "Full Name:" + "</b>") { UseMarkup = true, Xalign = 1 }; Entry name_entry = new Entry () { Xalign = 0, ActivatesDefault = true }; UnixUserInfo user_info = UnixUserInfo.GetRealUser (); if (user_info != null && user_info.RealName != null) name_entry.Text = user_info.RealName.TrimEnd (",".ToCharArray ()); Entry email_entry = new Entry () { Xalign = 0, ActivatesDefault = true }; Label email_label = new Label ("<b>" + "Email:" + "</b>") { UseMarkup = true, Xalign = 1 }; table.Attach (name_label, 0, 1, 0, 1); table.Attach (name_entry, 1, 2, 0, 1); table.Attach (email_label, 0, 1, 1, 2); table.Attach (email_entry, 1, 2, 1, 2); VBox wrapper = new VBox (false, 9); wrapper.PackStart (table, true, false, 0); Button cancel_button = new Button ("Cancel"); Button continue_button = new Button ("Continue") { Sensitive = false }; Controller.UpdateSetupContinueButtonEvent += delegate (bool button_enabled) { Application.Invoke (delegate { continue_button.Sensitive = button_enabled; }); }; name_entry.Changed += delegate { Controller.CheckSetupPage (name_entry.Text, email_entry.Text); }; email_entry.Changed += delegate { Controller.CheckSetupPage (name_entry.Text, email_entry.Text); }; cancel_button.Clicked += delegate { Controller.SetupPageCancelled (); }; continue_button.Clicked += delegate { Controller.SetupPageCompleted (name_entry.Text, email_entry.Text); }; AddButton (cancel_button); AddButton (continue_button); Add (wrapper); Controller.CheckSetupPage (name_entry.Text, email_entry.Text); } if (type == PageType.Add) { Header = "Where's your project hosted?"; VBox layout_vertical = new VBox (false, 12); HBox layout_fields = new HBox (true, 12); VBox layout_address = new VBox (true, 0); VBox layout_path = new VBox (true, 0); ListStore store = new ListStore (typeof (Gdk.Pixbuf), typeof (string), typeof (SparklePlugin)); SparkleTreeView tree = new SparkleTreeView (store) { HeadersVisible = false }; ScrolledWindow scrolled_window = new ScrolledWindow (); scrolled_window.AddWithViewport (tree); // Icon column tree.AppendColumn ("Icon", new Gtk.CellRendererPixbuf (), "pixbuf", 0); tree.Columns [0].Cells [0].Xpad = 6; // Service column TreeViewColumn service_column = new TreeViewColumn () { Title = "Service" }; CellRendererText service_cell = new CellRendererText () { Ypad = 4 }; service_column.PackStart (service_cell, true); service_column.SetCellDataFunc (service_cell, new TreeCellDataFunc (RenderServiceColumn)); foreach (SparklePlugin plugin in Controller.Plugins) { store.AppendValues (new Gdk.Pixbuf (plugin.ImagePath), "<span size=\"small\"><b>" + plugin.Name + "</b>\n" + "<span fgcolor=\"" + SecondaryTextColorSelected + "\">" + plugin.Description + "</span>" + "</span>", plugin); } tree.AppendColumn (service_column); Entry address_entry = new Entry () { Text = Controller.PreviousAddress, Sensitive = (Controller.SelectedPlugin.Address == null), ActivatesDefault = true }; Entry path_entry = new Entry () { Text = Controller.PreviousPath, Sensitive = (Controller.SelectedPlugin.Path == null), ActivatesDefault = true }; Label address_example = new Label () { Xalign = 0, UseMarkup = true, Markup = "<span size=\"small\" fgcolor=\"" + SecondaryTextColor + "\">" + Controller.SelectedPlugin.AddressExample + "</span>" }; Label path_example = new Label () { Xalign = 0, UseMarkup = true, Markup = "<span size=\"small\" fgcolor=\"" + SecondaryTextColor + "\">" + Controller.SelectedPlugin.PathExample + "</span>" }; // Select the first plugin by default TreeSelection default_selection = tree.Selection; TreePath default_path = new TreePath ("0"); default_selection.SelectPath (default_path); Controller.SelectedPluginChanged (0); Controller.ChangeAddressFieldEvent += delegate (string text, string example_text, FieldState state) { Application.Invoke (delegate { address_entry.Text = text; address_entry.Sensitive = (state == FieldState.Enabled); address_example.Markup = "<span size=\"small\" fgcolor=\"" + SecondaryTextColor + "\">" + example_text + "</span>"; }); }; Controller.ChangePathFieldEvent += delegate (string text, string example_text, FieldState state) { Application.Invoke (delegate { path_entry.Text = text; path_entry.Sensitive = (state == FieldState.Enabled); path_example.Markup = "<span size=\"small\" fgcolor=\"" + SecondaryTextColor + "\">" + example_text + "</span>"; }); }; Controller.CheckAddPage (address_entry.Text, path_entry.Text, 1); // Update the address field text when the selection changes tree.CursorChanged += delegate (object sender, EventArgs e) { Controller.SelectedPluginChanged (tree.SelectedRow); // TODO: Scroll to selected row when using arrow keys }; tree.Model.Foreach (new TreeModelForeachFunc (delegate (TreeModel model, TreePath path, TreeIter iter) { string address; try { address = (model.GetValue (iter, 2) as SparklePlugin).Address; } catch (NullReferenceException) { address = ""; } if (!string.IsNullOrEmpty (address) && address.Equals (Controller.PreviousAddress)) { tree.SetCursor (path, service_column, false); SparklePlugin plugin = (SparklePlugin) model.GetValue (iter, 2); if (plugin.Address != null) { address_entry.Sensitive = false;} if (plugin.Path != null) path_entry.Sensitive = false; // TODO: Scroll to the selection return true; } else { return false; } })); address_entry.Changed += delegate { Controller.CheckAddPage (address_entry.Text, path_entry.Text, tree.SelectedRow); }; layout_address.PackStart (new Label () { Markup = "<b>" + "Address:" + "</b>", Xalign = 0 }, true, true, 0); layout_address.PackStart (address_entry, false, false, 0); layout_address.PackStart (address_example, false, false, 0); path_entry.Changed += delegate { Controller.CheckAddPage (address_entry.Text, path_entry.Text, tree.SelectedRow); }; layout_path.PackStart (new Label () { Markup = "<b>" + "Remote Path:" + "</b>", Xalign = 0 }, true, true, 0); layout_path.PackStart (path_entry, false, false, 0); layout_path.PackStart (path_example, false, false, 0); layout_fields.PackStart (layout_address); layout_fields.PackStart (layout_path); layout_vertical.PackStart (new Label (""), false, false, 0); layout_vertical.PackStart (scrolled_window, true, true, 0); layout_vertical.PackStart (layout_fields, false, false, 0); Add (layout_vertical); Button cancel_button = new Button ("Cancel"); Button add_button = new Button ("Add") { Sensitive = false }; cancel_button.Clicked += delegate { Controller.PageCancelled (); }; add_button.Clicked += delegate { Controller.AddPageCompleted (address_entry.Text, path_entry.Text); }; Controller.UpdateAddProjectButtonEvent += delegate (bool button_enabled) { Application.Invoke (delegate { add_button.Sensitive = button_enabled; }); }; CheckButton check_button = new CheckButton ("Fetch prior history") { Active = false }; check_button.Toggled += delegate { Controller.HistoryItemChanged (check_button.Active); }; AddOption (check_button); AddButton (cancel_button); AddButton (add_button); Controller.CheckAddPage (address_entry.Text, path_entry.Text, 1); } if (type == PageType.Invite) { Header = "You've received an invite!"; Description = "Do you want to add this project to SparkleShare?"; Table table = new Table (2, 3, true) { RowSpacing = 6, ColumnSpacing = 6 }; Label address_label = new Label ("Address:") { Xalign = 1 }; Label path_label = new Label ("Remote Path:") { Xalign = 1 }; Label address_value = new Label ("<b>" + Controller.PendingInvite.Address + "</b>") { UseMarkup = true, Xalign = 0 }; Label path_value = new Label ("<b>" + Controller.PendingInvite.RemotePath + "</b>") { UseMarkup = true, Xalign = 0 }; table.Attach (address_label, 0, 1, 0, 1); table.Attach (address_value, 1, 2, 0, 1); table.Attach (path_label, 0, 1, 1, 2); table.Attach (path_value, 1, 2, 1, 2); VBox wrapper = new VBox (false, 9); wrapper.PackStart (table, true, false, 0); Button cancel_button = new Button ("Cancel"); Button add_button = new Button ("Add"); cancel_button.Clicked += delegate { Controller.PageCancelled (); }; add_button.Clicked += delegate { Controller.InvitePageCompleted (); }; AddButton (cancel_button); AddButton (add_button); Add (wrapper); } if (type == PageType.Syncing) { Header = String.Format ("Adding project ‘{0}’…", Controller.SyncingFolder); Description = "This may take a while for large projects.\nIsn't it coffee-o'clock?"; ProgressBar progress_bar = new ProgressBar (); progress_bar.Fraction = Controller.ProgressBarPercentage / 100; Button cancel_button = new Button () { Label = "Cancel" }; Button finish_button = new Button ("Finish") { Sensitive = false }; Controller.UpdateProgressBarEvent += delegate (double percentage) { Application.Invoke (delegate { progress_bar.Fraction = percentage / 100; }); }; cancel_button.Clicked += delegate { Controller.SyncingCancelled (); }; VBox bar_wrapper = new VBox (false, 0); bar_wrapper.PackStart (progress_bar, false, false, 21); Add (bar_wrapper); AddButton (cancel_button); AddButton (finish_button); } if (type == PageType.Error) { Header = "Oops! Something went wrong" + "…"; VBox points = new VBox (false, 0); Image list_point_one = new Image (SparkleUIHelpers.GetIcon ("list-point", 16)); Image list_point_two = new Image (SparkleUIHelpers.GetIcon ("list-point", 16)); Image list_point_three = new Image (SparkleUIHelpers.GetIcon ("list-point", 16)); Label label_one = new Label () { Markup = "<b>" + Controller.PreviousUrl + "</b> is the address we've compiled. " + "Does this look alright?", Wrap = true, Xalign = 0 }; Label label_two = new Label () { Text = "Is this computer's Client ID known by the host?", Wrap = true, Xalign = 0 }; points.PackStart (new Label ("Please check the following:") { Xalign = 0 }, false, false, 6); HBox point_one = new HBox (false, 0); point_one.PackStart (list_point_one, false, false, 0); point_one.PackStart (label_one, true, true, 12); points.PackStart (point_one, false, false, 12); HBox point_two = new HBox (false, 0); point_two.PackStart (list_point_two, false, false, 0); point_two.PackStart (label_two, true, true, 12); points.PackStart (point_two, false, false, 12); if (warnings.Length > 0) { string warnings_markup = ""; foreach (string warning in warnings) warnings_markup += "\n<b>" + warning + "</b>"; Label label_three = new Label () { Markup = "Here's the raw error message:" + warnings_markup, Wrap = true, Xalign = 0 }; HBox point_three = new HBox (false, 0); point_three.PackStart (list_point_three, false, false, 0); point_three.PackStart (label_three, true, true, 12); points.PackStart (point_three, false, false, 12); } points.PackStart (new Label (""), true, true, 0); Button cancel_button = new Button ("Cancel"); Button try_again_button = new Button ("Try Again…") { Sensitive = true }; cancel_button.Clicked += delegate { Controller.PageCancelled (); }; try_again_button.Clicked += delegate { Controller.ErrorPageCompleted (); }; AddButton (cancel_button); AddButton (try_again_button); Add (points); } if (type == PageType.CryptoSetup || type == PageType.CryptoPassword) { if (type == PageType.CryptoSetup) { Header = "Set up file encryption"; Description = "Please a provide a strong password that you don't use elsewhere below:"; } else { Header = "This project contains encrypted files"; Description = "Please enter the password to see their contents."; } Label password_label = new Label ("<b>" + "Password:"******"</b>") { UseMarkup = true, Xalign = 1 }; Entry password_entry = new Entry () { Xalign = 0, Visibility = false, ActivatesDefault = true }; CheckButton show_password_check_button = new CheckButton ("Show password") { Active = false, Xalign = 0, }; Table table = new Table (2, 3, true) { RowSpacing = 6, ColumnSpacing = 6 }; table.Attach (password_label, 0, 1, 0, 1); table.Attach (password_entry, 1, 2, 0, 1); table.Attach (show_password_check_button, 1, 2, 1, 2); VBox wrapper = new VBox (false, 9); wrapper.PackStart (table, true, false, 0); Image warning_image = new Image ( SparkleUIHelpers.GetIcon ("dialog-information", 24)); Label warning_label = new Label () { Xalign = 0, Wrap = true, Text = "This password can't be changed later, and your files can't be recovered if it's forgotten." }; HBox warning_layout = new HBox (false, 0); warning_layout.PackStart (warning_image, false, false, 15); warning_layout.PackStart (warning_label, true, true, 0); VBox warning_wrapper = new VBox (false, 0); warning_wrapper.PackStart (warning_layout, false, false, 15); if (type == PageType.CryptoSetup) wrapper.PackStart (warning_wrapper, false, false, 0); Button cancel_button = new Button ("Cancel"); Button continue_button = new Button ("Continue") { Sensitive = false }; Controller.UpdateCryptoSetupContinueButtonEvent += delegate (bool button_enabled) { Application.Invoke (delegate { continue_button.Sensitive = button_enabled; }); }; Controller.UpdateCryptoPasswordContinueButtonEvent += delegate (bool button_enabled) { Application.Invoke (delegate { continue_button.Sensitive = button_enabled; }); }; show_password_check_button.Toggled += delegate { password_entry.Visibility = !password_entry.Visibility; }; password_entry.Changed += delegate { if (type == PageType.CryptoSetup) Controller.CheckCryptoSetupPage (password_entry.Text); else Controller.CheckCryptoPasswordPage (password_entry.Text); }; cancel_button.Clicked += delegate { Controller.CryptoPageCancelled (); }; continue_button.Clicked += delegate { if (type == PageType.CryptoSetup) Controller.CryptoSetupPageCompleted (password_entry.Text); else Controller.CryptoPasswordPageCompleted (password_entry.Text); }; Add (wrapper); AddButton (cancel_button); AddButton (continue_button); } if (type == PageType.Finished) { Header = "Your shared project is ready!"; Description = "You can find it in your SparkleShare folder"; UrgencyHint = true; Button show_files_button = new Button ("Show Files…"); Button finish_button = new Button ("Finish"); show_files_button.Clicked += delegate { Controller.ShowFilesClicked (); }; finish_button.Clicked += delegate { Controller.FinishPageCompleted (); }; if (warnings.Length > 0) { Image warning_image = new Image (SparkleUIHelpers.GetIcon ("dialog-information", 24)); Label warning_label = new Label (warnings [0]) { Xalign = 0, Wrap = true }; HBox warning_layout = new HBox (false, 0); warning_layout.PackStart (warning_image, false, false, 15); warning_layout.PackStart (warning_label, true, true, 0); VBox warning_wrapper = new VBox (false, 0); warning_wrapper.PackStart (warning_layout, false, false, 0); Add (warning_wrapper); } else { Add (null); } AddButton (show_files_button); AddButton (finish_button); } if (type == PageType.Tutorial) { switch (Controller.TutorialPageNumber) { case 1: { Header = "What's happening next?"; Description = "SparkleShare creates a special folder on your computer " + "that will keep track of your projects."; Button skip_tutorial_button = new Button ("Skip Tutorial"); Button continue_button = new Button ("Continue"); skip_tutorial_button.Clicked += delegate { Controller.TutorialSkipped (); }; continue_button.Clicked += delegate { Controller.TutorialPageCompleted (); }; AddButton (skip_tutorial_button); AddButton (continue_button); break; } case 2: { Header = "Sharing files with others"; Description = "All files added to your project folders are synced automatically with " + "the host and your team members."; Button continue_button = new Button ("Continue"); continue_button.Clicked += delegate { Controller.TutorialPageCompleted (); }; AddButton (continue_button); break; } case 3: { Header = "The status icon helps you"; Description = "It shows the syncing progress, provides easy access to " + "your projects and let's you view recent changes."; Button continue_button = new Button ("Continue"); continue_button.Clicked += delegate { Controller.TutorialPageCompleted (); }; AddButton (continue_button); break; } case 4: { Header = "Here's your unique client ID"; Description = "You'll need it whenever you want to link this computer to a host. " + "You can also find it in the status icon menu."; Button finish_button = new Button ("Finish"); VBox layout_vertical = new VBox (false, 0) { BorderWidth = 48 }; HBox layout_horizontal = new HBox (false, 6); Entry link_code_entry = new Entry () { Text = Program.Controller.CurrentUser.PublicKey, Sensitive = false }; Button copy_button = new Button (" Copy "); CheckButton check_button = new CheckButton ("Add SparkleShare to startup items"); check_button.Active = true; copy_button.Clicked += delegate { Controller.CopyToClipboardClicked (); }; check_button.Toggled += delegate { Controller.StartupItemChanged (check_button.Active); }; finish_button.Clicked += delegate { Controller.TutorialPageCompleted (); }; layout_horizontal.PackStart (link_code_entry, true, true, 0); layout_horizontal.PackStart (copy_button, false, false, 0); layout_vertical.PackStart (new Label (""), true, true, 0); layout_vertical.PackStart (layout_horizontal, false, false, 0); layout_vertical.PackStart (new Label (""), true, true, 18); Add (layout_vertical); AddOption (check_button); AddButton (finish_button); break; } } if (Controller.TutorialPageNumber < 4) { Image slide = SparkleUIHelpers.GetImage ("tutorial-slide-" + Controller.TutorialPageNumber + ".png"); Add (slide); } } }
public CompareWindow () : base ("Mono GuiCompare") { SetDefaultSize (500, 400); vbox = new Gtk.VBox (); tree = new Gtk.TreeView (); treeStore = new Gtk.TreeStore (typeof (string), typeof (Gdk.Pixbuf), typeof (Gdk.Pixbuf), typeof (Gdk.Pixbuf), typeof (string), typeof (Gdk.Pixbuf), typeof (string), typeof (Gdk.Pixbuf), typeof (string)); tree.Model = treeStore; // Create a column for the node name Gtk.TreeViewColumn nameColumn = new Gtk.TreeViewColumn (); nameColumn.Title = "Name"; nameColumn.Resizable = true; Gtk.CellRendererText nameCell = new Gtk.CellRendererText (); Gtk.CellRendererPixbuf typeCell = new Gtk.CellRendererPixbuf (); Gtk.CellRendererPixbuf statusCell = new Gtk.CellRendererPixbuf (); nameColumn.PackStart (statusCell, false); nameColumn.PackStart (typeCell, false); nameColumn.PackStart (nameCell, true); tree.AppendColumn (nameColumn); nameColumn.AddAttribute (nameCell, "text", 0); nameColumn.AddAttribute (typeCell, "pixbuf", 1); nameColumn.AddAttribute (statusCell, "pixbuf", 2); // Create a column for the status counts Gtk.TreeViewColumn countsColumn = new Gtk.TreeViewColumn (); countsColumn.Title = "Counts"; countsColumn.Resizable = true; Gtk.CellRendererPixbuf missingPixbufCell = new Gtk.CellRendererPixbuf (); Gtk.CellRendererText missingTextCell = new Gtk.CellRendererText (); Gtk.CellRendererPixbuf extraPixbufCell = new Gtk.CellRendererPixbuf (); Gtk.CellRendererText extraTextCell = new Gtk.CellRendererText (); Gtk.CellRendererPixbuf errorPixbufCell = new Gtk.CellRendererPixbuf (); Gtk.CellRendererText errorTextCell = new Gtk.CellRendererText (); countsColumn.PackStart (missingPixbufCell, false); countsColumn.PackStart (missingTextCell, false); countsColumn.PackStart (extraPixbufCell, false); countsColumn.PackStart (extraTextCell, false); countsColumn.PackStart (errorPixbufCell, false); countsColumn.PackStart (errorTextCell, false); tree.AppendColumn (countsColumn); countsColumn.AddAttribute (missingPixbufCell, "pixbuf", 3); countsColumn.AddAttribute (missingTextCell, "text", 4); countsColumn.AddAttribute (extraPixbufCell, "pixbuf", 5); countsColumn.AddAttribute (extraTextCell, "text", 6); countsColumn.AddAttribute (errorPixbufCell, "pixbuf", 7); countsColumn.AddAttribute (errorTextCell, "text", 8); scroll = new Gtk.ScrolledWindow (); scroll.HscrollbarPolicy = scroll.VscrollbarPolicy = PolicyType.Automatic; scroll.Add (tree); vbox.PackStart (scroll, true, true, 0); status = new Gtk.Statusbar (); vbox.PackEnd (status, false, false, 0); progressbar = new Gtk.ProgressBar (); status.PackEnd (progressbar, false, false, 0); Add (vbox); }
protected void OnUploadFileButtonPressed(object sender, System.EventArgs e) { if (uploadFileChooserButton.Filename == null) { Gtk.Application.Invoke(delegate { MessageDialog md = new MessageDialog(this, DialogFlags.Modal, MessageType.Info, ButtonsType.Close, "\nPlease select a file to upload"); md.Icon = global::Gdk.Pixbuf.LoadFromResource(MessageDialogIconName); md.WindowPosition = Gtk.WindowPosition.CenterOnParent; md.Run(); md.Destroy(); }); return; } SpawnThread(delegate() { Gtk.ProgressBar progressBar = new Gtk.ProgressBar(); progressBar.WidthRequest = 170; progressBar.PulseStep = 0.1; progressBar.Fraction = 0; progressBar.Text = (0).ToString() + "%"; Label label = new Label("Uploading file..."); //label.HeightRequest = 10; Dialog dialog = new Dialog("Progress", this, Gtk.DialogFlags.DestroyWithParent); dialog.TypeHint = WindowTypeHint.Splashscreen; dialog.Modal = true; dialog.VBox.Add(label); dialog.VBox.Add(progressBar); dialog.HasSeparator = false; //dialog.AddButton ("Cancel", ResponseType.Close); //dialog.Response += delegate(object obj, ResponseArgs args){ dialog.Destroy();}; Gtk.Application.Invoke(delegate { dialog.ShowAll(); }); int totalBytes = 0; double target = (double)new System.IO.FileInfo(uploadFileChooserButton.Filename).Length; //Console.WriteLine(target); System.Action <int> onBytesWritten = delegate(int bytesWritten){ Gtk.Application.Invoke(delegate { totalBytes += bytesWritten; //label.Text = "Downloading file...\n" + totalBytes + " of " + selectedFileNode.Size.ToString() + " bytes"; progressBar.Fraction = ((double)totalBytes / target); progressBar.Text = ((int)(progressBar.Fraction * 100)).ToString() + "%"; }); }; brick.FileSystem.OnBytesWritten += onBytesWritten; try{ brick.FileSystem.UploadFile(uploadFileChooserButton.Filename, System.IO.Path.GetFileName(uploadFileChooserButton.Filename)); brick.FileSystem.OnBytesWritten -= onBytesWritten; Gtk.Application.Invoke(delegate { dialog.Destroy(); MessageDialog md = new MessageDialog(this, DialogFlags.Modal, MessageType.Info, ButtonsType.Ok, "\nFile successfully uploaded."); md.Icon = global::Gdk.Pixbuf.LoadFromResource(MessageDialogIconName); md.WindowPosition = Gtk.WindowPosition.CenterOnParent; md.Run(); md.Destroy(); }); LoadFileList(); } catch (Exception exception) { Gtk.Application.Invoke(delegate { dialog.Destroy(); MessageDialog md = new MessageDialog(this, DialogFlags.Modal, MessageType.Error, ButtonsType.Close, "\nFailed to upload file\nError: " + exception.Message); md.Icon = global::Gdk.Pixbuf.LoadFromResource(MessageDialogIconName); md.WindowPosition = Gtk.WindowPosition.CenterOnParent; md.Run(); md.Destroy(); }); if (brick != null) { brick.FileSystem.OnBytesWritten -= onBytesWritten; } if (exception is MonoBrickException) { throw(exception); } return; } }); }
public void initComponents() { ActionPanelLocation = new Alignment(0, 1, 0, 0); MainWindow = new Window("Game"); mainPanel = new Layout(null, null); defaultFontBold = Pango.FontDescription.FromString("Microsoft Sans Serif 10"); defaultFontBold.Weight = Pango.Weight.Bold; defaultFontRegular = Pango.FontDescription.FromString("Microsoft Sans Serif 10"); defaultFontRegular.Weight = Pango.Weight.Normal; labelLibido = new Label(); labelSpeed = new Label(); this.labelToughness = new Label(); this.labelStrenght = new Label(); this.label6 = new Label(); this.label5 = new Label(); this.label4 = new Label(); this.label3 = new Label(); this.label2 = new Label(); this.label1 = new Label(); this.btnOptions = new Button(); this.btnNewGame = new Button(); this.btnLoad = new Button(); this.btnSave = new Button(); this.buttonCmd5 = new Button(); this.buttonCmd4 = new Button(); this.buttonCmd1 = new Button(); this.buttonCmd2 = new Button(); this.buttonCmd3 = new Button(); this.button8 = new Button(); this.button9 = new Button(); this.button7 = new Button(); this.button6 = new Button(); this.button5 = new Button(); this.button10 = new Button(); this.button4 = new Button(); this.button3 = new Button(); this.button2 = new Button(); this.button1 = new Button(); this.label11 = new Label(); this.label10 = new Label(); this.label9 = new Label(); this.label8 = new Label(); this.label7 = new Label(); this.labelHP = new Label(); this.labelLust = new Label(); this.progressBarHP = new ProgressBar(); this.progressBarLust = new ProgressBar(); this.labelLevel = new Label(); this.labelDay = new Label(); this.labelHour = new Label(); this.labelCoins = new Label(); this.labelExp = new Label(); this.progressBarExp = new ProgressBar(); this.MainStoryTextPanel = new Layout(null, null); this.richTextBoxMain = new TextView(); this.ActionbuttonHolder = new Layout(null, null); this.button12 = new Button(); this.button14 = new Button(); this.button11 = new Button(); this.button13 = new Button(); this.button15 = new Button(); this.panel3 = new Layout(null, null); this.richTextBoxSub = new TextView(); this.PlayerStatsPanel = new Layout(null, null); this.AdditionalStatsPanel = new Layout(null, null); this.MainActionsPanel = new Table(2, 2, true); // // labelLibido // ////this.labelLibido.AutoSize = true; this.labelLibido.ModifyFont(defaultFontBold); // //this.labelLibido.Location = new System.Drawing.Point(93, 69); this.labelLibido.Name = "labelLibido"; this.labelLibido.SetSizeRequest(16, 16); // //this.labelLibido.TabIndex = 9; this.labelLibido.Text = "0"; // // labelSpeed // // //this.labelSpeed.AutoSize = true; this.labelSpeed.ModifyFont(defaultFontBold); // //this.labelSpeed.Location = new System.Drawing.Point(93, 47); this.labelSpeed.Name = "labelSpeed"; this.labelSpeed.SetSizeRequest(16, 16); ////this.labelSpeed.TabIndex = 8; this.labelSpeed.Text = "0"; // // labelToughness // // //this.labelToughness.AutoSize = true; this.labelToughness.ModifyFont(defaultFontBold); // //this.labelToughness.Location = new System.Drawing.Point(93, 27); this.labelToughness.Name = "labelToughness"; this.labelToughness.SetSizeRequest(16, 16); // //this.labelToughness.TabIndex = 7; this.labelToughness.Text = "0"; // this.labelToughness.Click += new System.EventHandler(this.label14_Click); // // labelStrenght // ////this.labelStrenght.AutoSize = true; this.labelStrenght.ModifyFont(defaultFontBold); ////this.labelStrenght.Location = new System.Drawing.Point(93, 7); this.labelStrenght.Name = "labelStrenght"; this.labelStrenght.SetSizeRequest(16, 16); ////this.labelStrenght.TabIndex = 6; this.labelStrenght.Text = "0"; // // label6 // // //this.label6.AutoSize = true; this.label6.ModifyFont(defaultFontBold); // //this.label6.Location = new System.Drawing.Point(200, 47); this.label6.Name = "label6"; this.label6.SetSizeRequest(36, 16); // //this.label6.TabIndex = 5; this.label6.Text = "Lust"; // // label5 // // //this.label5.AutoSize = true; this.label5.ModifyFont(defaultFontBold); // //this.label5.Location = new System.Drawing.Point(200, 7); this.label5.Name = "label5"; this.label5.SetSizeRequest(29, 16); // //this.label5.TabIndex = 4; this.label5.Text = "HP"; // // label4 // ////this.label4.AutoSize = true; this.label4.ModifyFont(defaultFontBold); ////this.label4.Location = new System.Drawing.Point(8, 69); this.label4.Name = "label4"; this.label4.SetSizeRequest(51, 16); // //this.label4.TabIndex = 3; this.label4.Text = "Libido"; // // label3 // // //this.label3.AutoSize = true; this.label3.ModifyFont(defaultFontBold); // //this.label3.Location = new System.Drawing.Point(8, 47); this.label3.Name = "label3"; this.label3.SetSizeRequest(54, 16); // //this.label3.TabIndex = 2; this.label3.Text = "Speed"; // // label2 // ////this.label2.AutoSize = true; this.label2.ModifyFont(defaultFontBold); // //this.label2.Location = new System.Drawing.Point(8, 27); this.label2.Name = "label2"; this.label2.SetSizeRequest(85, 16); // //this.label2.TabIndex = 1; this.label2.Text = "Toughness"; // // label1 // ////this.label1.AutoSize = true; this.label1.ModifyFont(defaultFontBold); ////this.label1.Location = new System.Drawing.Point(8, 7); this.label1.Name = "label1"; this.label1.SetSizeRequest(65, 16); // //this.label1.TabIndex = 0; this.label1.Text = "Strenght"; // // btnOptions // ////this.btnOptions.BackColor = System.Drawing.Color.PeachPuff; ////this.btnOptions.FlatAppearance.BorderSize = 2; // //this.btnOptions.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOptions.ModifyFont(defaultFontBold); ////this.btnOptions.Location = new System.Drawing.Point(163, 3); //this.btnOptions.Name = "btnOptions"; // this.btnOptions.SetSizeRequest(140, 33); ////this.btnOptions.TabIndex = 18; this.btnOptions.Label = "Options"; ////this.btnOptions.UseVisualStyleBackColor = false; // this.btnOptions.Click += new System.EventHandler(this.btnOptions_Click); // // btnNewGame // //this.btnNewGame.BackColor = System.Drawing.Color.PeachPuff; //this.btnNewGame.FlatAppearance.BorderSize = 2; //this.btnNewGame.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnNewGame.ModifyFont(defaultFontBold); //this.btnNewGame.Location = new System.Drawing.Point(18, 3); this.btnNewGame.Name = "btnNewGame"; this.btnNewGame.SetSizeRequest(140, 33); //this.btnNewGame.TabIndex = 17; this.btnNewGame.Label = "New Game"; //this.btnNewGame.UseVisualStyleBackColor = false; // // btnLoad // //this.btnLoad.BackColor = System.Drawing.Color.PeachPuff; //this.btnLoad.FlatAppearance.BorderSize = 2; //this.btnLoad.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnLoad.ModifyFont(defaultFontBold); //this.btnLoad.Location = new System.Drawing.Point(164, 42); this.btnLoad.Name = "btnLoad"; this.btnLoad.SetSizeRequest(140, 33); //this.btnLoad.TabIndex = 16; this.btnLoad.Label = "Load"; //this.btnLoad.UseVisualStyleBackColor = false; // // btnSave // //this.btnSave.BackColor = System.Drawing.Color.PeachPuff; //this.btnSave.FlatAppearance.BorderSize = 2; //this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSave.ModifyFont(defaultFontBold); //this.btnSave.Location = new System.Drawing.Point(18, 42); this.btnSave.Name = "btnSave"; this.btnSave.SetSizeRequest(140, 33); //this.btnSave.TabIndex = 15; this.btnSave.Label = "Save"; //this.btnSave.UseVisualStyleBackColor = false; // // buttonCmd5 // //this.buttonCmd5.BackColor = System.Drawing.Color.PeachPuff; //this.buttonCmd5.FlatAppearance.BorderSize = 2; //this.buttonCmd5.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonCmd5.ModifyFont(defaultFontBold); //this.buttonCmd5.Location = new System.Drawing.Point(718, 126); this.buttonCmd5.Name = "buttonCmd5"; this.buttonCmd5.SetSizeRequest(170, 34); //this.buttonCmd5.TabIndex = 10; this.buttonCmd5.Label = "buttonCmd5"; //this.buttonCmd5.UseVisualStyleBackColor = false; // // buttonCmd4 // //this.buttonCmd4.BackColor = System.Drawing.Color.PeachPuff; //this.buttonCmd4.FlatAppearance.BorderSize = 2; //this.buttonCmd4.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonCmd4.ModifyFont(defaultFontBold); //this.buttonCmd4.Location = new System.Drawing.Point(542, 126); this.buttonCmd4.Name = "buttonCmd4"; this.buttonCmd4.SetSizeRequest(170, 34); //this.buttonCmd4.TabIndex = 11; this.buttonCmd4.Label = "buttonCmd4"; //this.buttonCmd4.UseVisualStyleBackColor = false; // // buttonCmd1 // //this.buttonCmd1.BackColor = System.Drawing.Color.PeachPuff; //this.buttonCmd1.FlatAppearance.BorderSize = 2; //this.buttonCmd1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonCmd1.ModifyFont(defaultFontBold); //this.buttonCmd1.Location = new System.Drawing.Point(14, 126); this.buttonCmd1.Name = "buttonCmd1"; this.buttonCmd1.SetSizeRequest(170, 34); //this.buttonCmd1.TabIndex = 14; this.buttonCmd1.Label = "Perks"; //this.buttonCmd1.UseVisualStyleBackColor = false; // // buttonCmd2 // //this.buttonCmd2.BackColor = System.Drawing.Color.PeachPuff; //this.buttonCmd2.FlatAppearance.BorderSize = 2; //this.buttonCmd2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonCmd2.ModifyFont(defaultFontBold); //this.buttonCmd2.Location = new System.Drawing.Point(190, 126); this.buttonCmd2.Name = "buttonCmd2"; this.buttonCmd2.SetSizeRequest(170, 34); //this.buttonCmd2.TabIndex = 13; this.buttonCmd2.Label = "Inventory"; //this.buttonCmd2.UseVisualStyleBackColor = false; // // buttonCmd3 // //this.buttonCmd3.BackColor = System.Drawing.Color.PeachPuff; //this.buttonCmd3.FlatAppearance.BorderSize = 2; //this.buttonCmd3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonCmd3.ModifyFont(defaultFontBold); //this.buttonCmd3.Location = new System.Drawing.Point(366, 126); this.buttonCmd3.Name = "buttonCmd3"; this.buttonCmd3.SetSizeRequest(170, 34); //this.buttonCmd3.TabIndex = 12; this.buttonCmd3.Label = "buttonCmd3"; //this.buttonCmd3.UseVisualStyleBackColor = false; // // button8 // //this.button8.BackColor = System.Drawing.Color.Peru; //this.button8.FlatAppearance.BorderSize = 2; //this.button8.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button8.ModifyFont(defaultFontBold); //this.button8.Location = new System.Drawing.Point(366, 41); this.button8.Name = "button8"; this.button8.SetSizeRequest(170, 34); //this.button8.TabIndex = 7; this.button8.Label = "button8"; //this.button8.UseVisualStyleBackColor = false; // // button9 // //this.button9.BackColor = System.Drawing.Color.Peru; //this.button9.FlatAppearance.BorderSize = 2; //this.button9.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button9.ModifyFont(defaultFontBold); //this.button9.Location = new System.Drawing.Point(542, 41); this.button9.Name = "button9"; this.button9.SetSizeRequest(170, 34); //this.button9.TabIndex = 6; this.button9.Label = "button9"; //this.button9.UseVisualStyleBackColor = false; // // button7 // //this.button7.BackColor = System.Drawing.Color.Peru; //this.button7.FlatAppearance.BorderSize = 2; //this.button7.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button7.ModifyFont(defaultFontBold); //this.button7.Location = new System.Drawing.Point(190, 41); this.button7.Name = "button7"; this.button7.SetSizeRequest(170, 34); //this.button7.TabIndex = 8; this.button7.Label = "button7"; //this.button7.UseVisualStyleBackColor = false; // // button6 // //this.button6.BackColor = System.Drawing.Color.Peru; //this.button6.FlatAppearance.BorderSize = 2; //this.button6.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button6.ModifyFont(defaultFontBold); //this.button6.Location = new System.Drawing.Point(14, 41); this.button6.Name = "button6"; this.button6.SetSizeRequest(170, 34); //this.button6.TabIndex = 9; this.button6.Label = "button6"; //this.button6.UseVisualStyleBackColor = false; // // button5 // //this.button5.BackColor = System.Drawing.Color.Peru; //this.button5.FlatAppearance.BorderSize = 2; //this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button5.ModifyFont(defaultFontBold); //this.button5.Location = new System.Drawing.Point(718, 4); this.button5.Name = "button5"; this.button5.SetSizeRequest(170, 34); //this.button5.TabIndex = 4; this.button5.Label = "button5"; //this.button5.UseVisualStyleBackColor = false; // // button10 // //this.button10.BackColor = System.Drawing.Color.Peru; //this.button10.FlatAppearance.BorderSize = 2; //this.button10.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button10.ModifyFont(defaultFontBold); //this.button10.Location = new System.Drawing.Point(718, 41); this.button10.Name = "button10"; this.button10.SetSizeRequest(170, 34); //this.button10.TabIndex = 5; this.button10.Label = "button10"; //this.button10.UseVisualStyleBackColor = false; // // button4 // //this.button4.BackColor = System.Drawing.Color.Peru; //this.button4.FlatAppearance.BorderSize = 2; //this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button4.ModifyFont(defaultFontBold); //this.button4.Location = new System.Drawing.Point(542, 4); this.button4.Name = "button4"; this.button4.SetSizeRequest(170, 34); //this.button4.TabIndex = 3; this.button4.Label = "button4"; //this.button4.UseVisualStyleBackColor = false; // // button3 // //this.button3.BackColor = System.Drawing.Color.Peru; //this.button3.FlatAppearance.BorderSize = 2; //this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button3.ModifyFont(defaultFontBold); //this.button3.Location = new System.Drawing.Point(366, 4); this.button3.Name = "button3"; this.button3.SetSizeRequest(170, 34); //this.button3.TabIndex = 2; this.button3.Label = "button3"; //this.button3.UseVisualStyleBackColor = false; // // button2 // //this.button2.BackColor = System.Drawing.Color.Peru; //this.button2.FlatAppearance.BorderSize = 2; //this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button2.ModifyFont(defaultFontBold); //this.button2.Location = new System.Drawing.Point(190, 4); this.button2.Name = "button2"; this.button2.SetSizeRequest(170, 34); //this.button2.TabIndex = 1; this.button2.Label = "button2"; //this.button2.UseVisualStyleBackColor = false; // // button1 // //this.button1.BackColor = System.Drawing.Color.Peru; //this.button1.FlatAppearance.BorderSize = 2; //this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.ModifyFont(defaultFontBold); //this.button1.Location = new System.Drawing.Point(14, 4); this.button1.Name = "button1"; this.button1.SetSizeRequest(170, 34); //this.button1.TabIndex = 0; this.button1.Label = "button1"; //this.button1.UseVisualStyleBackColor = false; // // label11 // //this.label11.AutoSize = true; this.label11.ModifyFont(defaultFontBold); //this.label11.Location = new System.Drawing.Point(172, 38); this.label11.Name = "label11"; this.label11.SetSizeRequest(47, 16); //this.label11.TabIndex = 10; this.label11.Text = "Coins"; // // label10 // //this.label10.AutoSize = true; this.label10.ModifyFont(defaultFontBold); //this.label10.Location = new System.Drawing.Point(241, 12); this.label10.Name = "label10"; this.label10.SetSizeRequest(41, 16); //this.label10.TabIndex = 9; this.label10.Text = "Hour"; // // label9 // //this.label9.AutoSize = true; this.label9.ModifyFont(defaultFontBold); //this.label9.Location = new System.Drawing.Point(172, 12); this.label9.Name = "label9"; this.label9.SetSizeRequest(36, 16); //this.label9.TabIndex = 8; this.label9.Text = "Day"; // // label8 // //this.label8.AutoSize = true; this.label8.ModifyFont(defaultFontBold); //this.label8.Location = new System.Drawing.Point(8, 38); this.label8.Name = "label8"; this.label8.SetSizeRequest(34, 16); //this.label8.TabIndex = 7; this.label8.Text = "Exp"; // // label7 // //this.label7.AutoSize = true; this.label7.ModifyFont(defaultFontBold); //this.label7.Location = new System.Drawing.Point(8, 12); this.label7.Name = "label7"; this.label7.SetSizeRequest(46, 16); //this.label7.TabIndex = 6; this.label7.Text = "Level"; // // labelHP // //this.labelHP.AutoSize = true; this.labelHP.ModifyFont(defaultFontBold); //this.labelHP.Location = new System.Drawing.Point(254, 7); this.labelHP.Name = "labelHP"; this.labelHP.SetSizeRequest(16, 16); //this.labelHP.TabIndex = 10; this.labelHP.Text = "0"; // // labelLust // //this.labelLust.AutoSize = true; this.labelLust.ModifyFont(defaultFontBold); //this.labelLust.Location = new System.Drawing.Point(254, 47); this.labelLust.Name = "labelLust"; this.labelLust.SetSizeRequest(16, 16); //this.labelLust.TabIndex = 11; this.labelLust.Text = "0"; // // progressBarHP // //this.progressBarHP.ForeColor = System.Drawing.Color.Purple; //this.progressBarHP.Location = new System.Drawing.Point(203, 26); this.progressBarHP.Name = "progressBarHP"; this.progressBarHP.SetSizeRequest(100, 10); //this.progressBarHP.TabIndex = 12; // // progressBarLust // //this.progressBarLust.ForeColor = System.Drawing.Color.DeepPink; //this.progressBarLust.Location = new System.Drawing.Point(203, 69); this.progressBarLust.Name = "progressBarLust"; this.progressBarLust.SetSizeRequest(100, 10); //this.progressBarLust.TabIndex = 13; // // labelLevel // //this.labelLevel.AutoSize = true; this.labelLevel.ModifyFont(defaultFontBold); //this.labelLevel.Location = new System.Drawing.Point(58, 12); this.labelLevel.Name = "labelLevel"; this.labelLevel.SetSizeRequest(16, 16); //this.labelLevel.TabIndex = 14; this.labelLevel.Text = "0"; // // labelDay // //this.labelDay.AutoSize = true; this.labelDay.ModifyFont(defaultFontBold); //this.labelDay.Location = new System.Drawing.Point(214, 12); this.labelDay.Name = "labelDay"; this.labelDay.SetSizeRequest(16, 16); //this.labelDay.TabIndex = 15; this.labelDay.Text = "0"; // // labelHour // //this.labelHour.AutoSize = true; this.labelHour.ModifyFont(defaultFontBold); //this.labelHour.Location = new System.Drawing.Point(290, 12); this.labelHour.Name = "labelHour"; this.labelHour.SetSizeRequest(16, 16); //this.labelHour.TabIndex = 16; this.labelHour.Text = "0"; // // labelCoins // //this.labelCoins.AutoSize = true; this.labelCoins.ModifyFont(defaultFontBold); //this.labelCoins.Location = new System.Drawing.Point(241, 38); this.labelCoins.Name = "labelCoins"; this.labelCoins.SetSizeRequest(16, 16); //this.labelCoins.TabIndex = 17; this.labelCoins.Text = "0"; // // labelExp // //this.labelExp.AutoSize = true; this.labelExp.ModifyFont(defaultFontBold); //this.labelExp.Location = new System.Drawing.Point(44, 38); this.labelExp.Name = "labelExp"; this.labelExp.SetSizeRequest(16, 16); //this.labelExp.TabIndex = 18; this.labelExp.Text = "0"; // // progressBarExp // //this.progressBarExp.ForeColor = System.Drawing.Color.Lime; //this.progressBarExp.Location = new System.Drawing.Point(65, 44); this.progressBarExp.Name = "progressBarExp"; this.progressBarExp.SetSizeRequest(95, 10); //this.progressBarExp.TabIndex = 14; // // MainStoryTextPanel // //this.MainStoryTextPanel.BackColor = System.Drawing.Color.MediumOrchid; //this.MainStoryTextPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.MainStoryTextPanel.Add(this.richTextBoxMain); //this.MainStoryTextPanel.Location = new System.Drawing.Point(346, 10); this.MainStoryTextPanel.Name = "MainStoryTextPanel"; this.MainStoryTextPanel.SetSizeRequest(906, 495); //this.MainStoryTextPanel.TabIndex = 4; // // richTextBoxMain // //this.richTextBoxMain.BackColor = System.Drawing.Color.Thistle; this.richTextBoxMain.ModifyFont(FontDescription.FromString("Microsoft Sans Serif 10")); //this.richTextBoxMain.Location = new System.Drawing.Point(3, 3); this.richTextBoxMain.Name = "richTextBoxMain"; this.richTextBoxMain.SetSizeRequest(898, 487); //this.richTextBoxMain.TabIndex = 0; this.richTextBoxMain.Buffer.Text = ""; // // panel2 // //this.panel2.BackColor = System.Drawing.Color.MediumSeaGreen; //this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.ActionbuttonHolder.Add(this.button12); this.ActionbuttonHolder.Add(this.button14); this.ActionbuttonHolder.Add(this.button11); this.ActionbuttonHolder.Add(this.button13); this.ActionbuttonHolder.Add(this.button15); this.ActionbuttonHolder.Add(this.button1); this.ActionbuttonHolder.Add(this.button3); this.ActionbuttonHolder.Add(this.button7); this.ActionbuttonHolder.Add(this.buttonCmd5); this.ActionbuttonHolder.Add(this.button9); this.ActionbuttonHolder.Add(this.button6); this.ActionbuttonHolder.Add(this.buttonCmd4); this.ActionbuttonHolder.Add(this.button8); this.ActionbuttonHolder.Add(this.button2); this.ActionbuttonHolder.Add(this.button5); this.ActionbuttonHolder.Add(this.buttonCmd1); this.ActionbuttonHolder.Add(this.buttonCmd3); this.ActionbuttonHolder.Add(this.button4); this.ActionbuttonHolder.Add(this.button10); this.ActionbuttonHolder.Add(this.buttonCmd2); //this.panel2.Location = new System.Drawing.Point(346, 509); this.ActionbuttonHolder.Name = "ActionButtonHolder"; this.ActionbuttonHolder.SetSizeRequest(906, 167); //this.panel2.TabIndex = 5; //this.panel2.Paint += new System.Windows.Forms.PaintEventHandler(this.panel2_Paint); // // button12 // //this.button12.BackColor = System.Drawing.Color.Peru; //this.button12.FlatAppearance.BorderSize = 2; //this.button12.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button12.ModifyFont(defaultFontBold); //this.button12.Location = new System.Drawing.Point(190, 78); this.button12.Name = "button12"; this.button12.SetSizeRequest(170, 34); //this.button12.TabIndex = 18; this.button12.Label = "button12"; //this.button12.UseVisualStyleBackColor = false; // // button14 // //this.button14.BackColor = System.Drawing.Color.Peru; //this.button14.FlatAppearance.BorderSize = 2; //this.button14.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button14.ModifyFont(defaultFontBold); //this.button14.Location = new System.Drawing.Point(542, 78); this.button14.Name = "button14"; this.button14.SetSizeRequest(170, 34); //this.button14.TabIndex = 16; this.button14.Label = "button14"; //this.button14.UseVisualStyleBackColor = false; // // button11 // //this.button11.BackColor = System.Drawing.Color.Peru; //this.button11.FlatAppearance.BorderSize = 2; //this.button11.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button11.ModifyFont(defaultFontBold); //this.button11.Location = new System.Drawing.Point(14, 78); this.button11.Name = "button11"; this.button11.SetSizeRequest(170, 34); //this.button11.TabIndex = 19; this.button11.Label = "button11"; //this.button11.UseVisualStyleBackColor = false; // // button13 // //this.button13.BackColor = System.Drawing.Color.Peru; //this.button13.FlatAppearance.BorderSize = 2; //this.button13.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button13.ModifyFont(defaultFontBold); //this.button13.Location = new System.Drawing.Point(366, 78); this.button13.Name = "button13"; this.button13.SetSizeRequest(170, 34); //this.button13.TabIndex = 17; //this.button13.Label = "button13"; this.button13.Label = "button13"; //this.button13.UseVisualStyleBackColor = false; // // button15 // // //this.button15.BackColor = System.Drawing.Color.Peru; // //this.button15.FlatAppearance.BorderSize = 2; ////this.button15.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button15.ModifyFont(defaultFontBold); ////this.button15.Location = new System.Drawing.Point(718, 78); this.button15.Name = "button15"; this.button15.SetSizeRequest(170, 34); ////this.button15.TabIndex = 15; //this.button15.Label = "button15"; ////this.button15.UseVisualStyleBackColor = false; // // panel3 // //this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), // ((int)(((byte)(128))))); // //this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel3.Add(this.richTextBoxSub); // //this.panel3.Location = new System.Drawing.Point(10, 112); this.panel3.Name = "panel3"; this.panel3.SetSize(330, 408); ////this.panel3.TabIndex = 6; // // richTextBoxSub // ////this.richTextBoxSub.BackColor = System.Drawing.Color.PeachPuff; this.richTextBoxSub.ModifyFont(FontDescription.FromString("Microsoft Sans Serif 10")); // //this.richTextBoxSub.Location = new System.Drawing.Point(3, 3); this.richTextBoxSub.Name = "richTextBoxSub"; this.richTextBoxSub.SetSizeRequest(322, 400); ////this.richTextBoxSub.TabIndex = 0; //this.richTextBoxSub.Text = ""; // this.richTextBoxSub.TextChanged += new System.EventHandler(this.richTextBoxSub_TextChanged); // // PlayerStatsPanel // ////this.PlayerStatsPanel.BackColor = System.Drawing.Color.SteelBlue; ////this.PlayerStatsPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.PlayerStatsPanel.Add(this.progressBarLust); this.PlayerStatsPanel.Add(this.labelLibido); this.PlayerStatsPanel.Add(this.labelStrenght); this.PlayerStatsPanel.Add(this.progressBarHP); this.PlayerStatsPanel.Add(this.label6); this.PlayerStatsPanel.Add(this.label1); this.PlayerStatsPanel.Add(this.labelToughness); this.PlayerStatsPanel.Add(this.labelLust); this.PlayerStatsPanel.Add(this.label5); this.PlayerStatsPanel.Add(this.label2); this.PlayerStatsPanel.Add(this.labelSpeed); this.PlayerStatsPanel.Add(this.labelHP); this.PlayerStatsPanel.Add(this.label4); this.PlayerStatsPanel.Add(this.label3); // //this.PlayerStatsPanel.Location = new System.Drawing.Point(10, 10); this.PlayerStatsPanel.Name = "PlayerStatsPanel"; this.PlayerStatsPanel.SetSize(330, 93); ////this.PlayerStatsPanel.TabIndex = 7; // // AdditionalStatsPanel // // this.AdditionalStatsPanel. = System.Drawing.Color.SteelBlue; // //this.AdditionalStatsPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.AdditionalStatsPanel.Add(this.progressBarExp); this.AdditionalStatsPanel.Add(this.label10); this.AdditionalStatsPanel.Add(this.labelDay); this.AdditionalStatsPanel.Add(this.label11); this.AdditionalStatsPanel.Add(this.labelExp); this.AdditionalStatsPanel.Add(this.labelLevel); this.AdditionalStatsPanel.Add(this.label7); this.AdditionalStatsPanel.Add(this.label9); this.AdditionalStatsPanel.Add(this.labelCoins); this.AdditionalStatsPanel.Add(this.labelHour); this.AdditionalStatsPanel.Add(this.label8); ////this.AdditionalStatsPanel.Location = new System.Drawing.Point(10, 524); this.AdditionalStatsPanel.Name = "AdditionalStatsPanel"; this.AdditionalStatsPanel.SetSize(330, 65); ////this.AdditionalStatsPanel.TabIndex = 8; // // MainActionsPanel // ////this.MainActionsPanel.BackColor = System.Drawing.Color.DarkOrange; ////this.MainActionsPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.MainActionsPanel.Add(this.btnOptions); this.MainActionsPanel.Add(this.btnLoad); this.MainActionsPanel.Add(this.btnSave); this.MainActionsPanel.Add(this.btnNewGame); ////this.MainActionsPanel.Location = new System.Drawing.Point(10, 594); this.MainActionsPanel.Name = "MainActionsPanel"; //this.MainActionsPanel.SetSizeRequest(330, 82); this.ActionPanelLocation.Add(MainActionsPanel); ////this.MainActionsPanel.TabIndex = 9; // // TestFormX // // MainWindow.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); // MainWindow.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; //MainWindow.BackColor = System.Drawing.Color.LightSteelBlue; // MainWindow.ClientSize = new System.Drawing.Size(1264, 681); MainWindow.Resize(1264, 681); mainPanel.Add(this.ActionPanelLocation); //mainPanel.Add(this.AdditionalStatsPanel); //mainPanel.Add(this.PlayerStatsPanel); //mainPanel.Add(this.panel3); //mainPanel.Add(this.ActionbuttonHolder); //mainPanel.Add(this.MainStoryTextPanel); MainWindow.Add(mainPanel); MainWindow.Name = "TestFormX"; MainWindow.ShowAll(); //MainWindow.Text = "TestFormX"; }