コード例 #1
0
        void ShowEditPage()
        {
            // Set the initial text
            textView.Buffer.Text = text;

            // Hide all the widgets on the view page
            textLabel.Hide();
            deleteButton.Hide();
            editButton.Hide();

            // Show all the widgets on the edit page
            textView.Show();
            cancelButton.Show();
            saveButton.Show();

            // TODO: Grab the keyboard focus so the cursor is in the textView.
//			Gtk.Widget aParent = this.Parent;
//			while (aParent != null) {
//				// Get our parent Gtk.Window
//				if (aParent is Gtk.Dialog) {
//					(aParent as Gtk.Dialog).Focus = textView;
//					break;
//				}
//
//				aParent = aParent.Parent;
//			}

            // Switch to the Edit Page
            Page = editPageId;
        }
コード例 #2
0
        public lista_ordenes_compra()
        {
            Glade.XML gxml = new Glade.XML(null, "almacen_costos_compras.glade", "envio_almacenes", null);
            gxml.Autoconnect(this);

            connectionString = conexion_a_DB._url_servidor + conexion_a_DB._port_DB + conexion_a_DB._usuario_DB + conexion_a_DB._passwrd_user_DB;
            nombrebd         = conexion_a_DB._nombrebd;

            envio_almacenes.Title = "LISTA ORDENES DE COMPRA";
            entry_dia_inicio.Text = DateTime.Now.ToString("dd");
            entry_mes_inicio.Text = DateTime.Now.ToString("MM");
            entry_ano_inicio.Text = DateTime.Now.ToString("yyyy");

            entry_dia_termino.Text = DateTime.Now.ToString("dd");
            entry_mes_termino.Text = DateTime.Now.ToString("MM");
            entry_ano_termino.Text = DateTime.Now.ToString("yyyy");

            //hbox1.Hide();
            label3.Hide();
            checkbutton2.Hide();
            label1.Text = "Proveedor ";
            entry_codigo_producto.Hide();
            entry_desc_producto.Hide();
            button_buscar_prodreq.Hide();

            checkbutton_seleccion_presupuestos.Hide();

            button_salir.Clicked             += new EventHandler(on_cierraventanas_clicked);
            button_buscar.Clicked            += new EventHandler(on_buscar_ordencompra_clicked);
            button_rep.Clicked               += new EventHandler(on_button_rep_clicked);
            checkbutton_todos_envios.Clicked += new EventHandler(on_checkbutton_todos_envios);
            button_buscar1.Clicked           += new EventHandler(on_button_buscar_proveedor_clicked);

            crea_treeview_ordendecompra();
        }
コード例 #3
0
ファイル: vision.cs プロジェクト: nagyistge/osiris
        void on_button_reportes_clicked(object sender, EventArgs args)
        {
            Glade.XML gxml = new Glade.XML(null, "caja.glade", "rango_de_fecha", null);
            gxml.Autoconnect(this);
            rango_de_fecha.Show();

            checkbutton_impr_todo_proce.Label   = "Imprime TODO";
            entry_referencia_inicial.IsEditable = false;
            entry_referencia_inicial.Text       = DateTime.Now.ToString("dd-MM-yyyy");
            entry_dia1.KeyPressEvent           += onKeyPressEvent;
            entry_mes1.KeyPressEvent           += onKeyPressEvent;
            entry_ano1.KeyPressEvent           += onKeyPressEvent;
            entry_dia2.KeyPressEvent           += onKeyPressEvent;
            entry_mes2.KeyPressEvent           += onKeyPressEvent;
            entry_ano2.KeyPressEvent           += onKeyPressEvent;
            entry_dia1.Text       = DateTime.Now.ToString("dd");
            entry_mes1.Text       = DateTime.Now.ToString("MM");
            entry_ano1.Text       = DateTime.Now.ToString("yyyy");
            entry_dia2.Text       = DateTime.Now.ToString("dd");
            entry_mes2.Text       = DateTime.Now.ToString("MM");
            entry_ano2.Text       = DateTime.Now.ToString("yyyy");
            button_salir.Clicked += new EventHandler(on_cierraventanas_clicked);
            button_imprime_rangofecha.Clicked += new EventHandler(imprime_reporte_vision);
            label_orden.Hide();
            label_nom_cliente.Hide();
            label142.Hide();
            radiobutton_cliente.Hide();
            radiobutton_fecha.Hide();
            checkbutton_todos_los_clientes.Hide();
            entry_referencia_inicial.Hide();
            entry_cliente.Hide();
            button_busca_cliente.Hide();
        }
コード例 #4
0
        bool cancel = false;            // Cancel all jobs

        public G_ProgressBar()
        {
            Glade.XML xml = new Glade.XML(null, "gfax.glade", "HylafaxProgressDialog", null);
            xml.Autoconnect(this);

            HylafaxProgressNotebook.CurrentPage = 0;
            HylafaxProgressCloseButton.Hide();
            HylafaxProgressDialog.Show();
        }
コード例 #5
0
ファイル: splash.cs プロジェクト: kleopatra999/chronojump
 /*
  * cancel
  * for SPing
  */
 public void CancelButtonShow(bool show)
 {
     if (show)
     {
         button_cancel.Show();
     }
     else
     {
         button_cancel.Hide();
     }
 }
コード例 #6
0
 public void Finished()
 {
     HylafaxProgressNotebook.CurrentPage = 1;
     HylafaxProgressCancelButton.Hide();
     HylafaxProgressCloseButton.Show();
     // TODO Bad, bad, slap your wrist boy, do timer function
     // or fix this somehow.  Can I say 100% processor useage.
     //while (close) {
     //	while (Gtk.Application.EventsPending ())
     //      Gtk.Application.RunIteration ();
     //}
 }
コード例 #7
0
        void ShowViewPage()
        {
            // Hide all the widgets on the edit page
            textView.Hide();
            cancelButton.Hide();
            saveButton.Hide();

            // Show all the widgets on the view page
            textLabel.Show();
            deleteButton.Show();
            editButton.Show();

            // Switch back to the View Page
            Page = viewPageId;
        }
コード例 #8
0
        void SetText(IEnumerable <ISystemInformationProvider> text)
        {
            Clear();

            var buf = new Gtk.Label();

            buf.Selectable = true;
            buf.Xalign     = 0;

            StringBuilder sb = new StringBuilder();

            foreach (var info in text)
            {
                sb.Append("<b>").Append(GLib.Markup.EscapeText(info.Title)).Append("</b>\n");
                sb.Append(GLib.Markup.EscapeText(info.Description.Trim())).Append("\n\n");
            }

            buf.Markup = sb.ToString().Trim() + "\n";

            var contentBox = new VBox();

            contentBox.BorderWidth = 4;
            contentBox.PackStart(buf, false, false, 0);

            var asmButton = new Gtk.Button(GettextCatalog.GetString("Show loaded assemblies"));

            asmButton.Clicked += (sender, e) => {
                asmButton.Hide();
                contentBox.PackStart(CreateAssembliesTable(), false, false, 0);
            };
            var hb = new Gtk.HBox();

            hb.PackStart(asmButton, false, false, 0);
            contentBox.PackStart(hb, false, false, 0);

            var sw = new MonoDevelop.Components.CompactScrolledWindow()
            {
                ShowBorderLine = true,
                BorderWidth    = 2
            };

            sw.AddWithViewport(contentBox);
            sw.ShadowType = ShadowType.None;
            ((Gtk.Viewport)sw.Child).ShadowType = ShadowType.None;

            PackStart(sw, true, true, 0);
            ShowAll();
        }
コード例 #9
0
		public CommonAboutDialog ()
		{
			Name = "wizard_dialog";
			Title = string.Format (GettextCatalog.GetString ("About {0}"), BrandingService.ApplicationName);
			TransientFor = IdeApp.Workbench.RootWindow;
			AllowGrow = false;
			HasSeparator = false;
			BorderWidth = 0;

			var notebook = new Notebook ();
			notebook.ShowTabs = false;
			notebook.ShowBorder = false;
			notebook.BorderWidth = 0;
			notebook.AppendPage (new AboutMonoDevelopTabPage (), new Label (Title));
			notebook.AppendPage (new VersionInformationTabPage (), new Label (GettextCatalog.GetString ("Version Information")));
			VBox.PackStart (notebook, true, true, 0);
			
			var copyButton = new Button () { Label = GettextCatalog.GetString ("Copy Information") };
			copyButton.Clicked += (sender, e) => CopyBufferToClipboard ();
			ActionArea.PackEnd (copyButton, false, false, 0);
			copyButton.NoShowAll = true;

			var backButton = new Button () { Label = GettextCatalog.GetString ("Show Details") };
			ActionArea.PackEnd (backButton, false, false, 0);
			backButton.Clicked += (sender, e) => {
				if (notebook.Page == 0) {
					backButton.Label = GettextCatalog.GetString ("Hide Details");
					copyButton.Show ();
					notebook.Page = 1;
				}
				else {
					backButton.Label = GettextCatalog.GetString ("Show Details");
					copyButton.Hide ();
					notebook.Page = 0;
				}
			};

			AddButton (Gtk.Stock.Close, (int)ResponseType.Close);

			ShowAll ();
		}
コード例 #10
0
        public reporte_de_abonos(string _nombrebd_, string tiporpt_, string LoginEmpleado_)
        {
            connectionString        = conexion_a_DB._url_servidor + conexion_a_DB._port_DB + conexion_a_DB._usuario_DB + conexion_a_DB._passwrd_user_DB;
            nombrebd                = conexion_a_DB._nombrebd;
            escala_en_linux_windows = classpublic.escala_linux_windows;
            tiporpt       = tiporpt_;
            LoginEmpleado = LoginEmpleado_;
            Glade.XML gxml = new Glade.XML(null, "caja.glade", "rango_de_fecha", null);
            gxml.Autoconnect(this);
            rango_de_fecha.Show();

            checkbutton_impr_todo_proce.Label   = "Imprime TODO";
            entry_referencia_inicial.IsEditable = false;
            entry_referencia_inicial.Text       = DateTime.Now.ToString("dd-MM-yyyy");
            entry_dia1.KeyPressEvent           += onKeyPressEvent;
            entry_mes1.KeyPressEvent           += onKeyPressEvent;
            entry_ano1.KeyPressEvent           += onKeyPressEvent;
            entry_dia2.KeyPressEvent           += onKeyPressEvent;
            entry_mes2.KeyPressEvent           += onKeyPressEvent;
            entry_ano2.KeyPressEvent           += onKeyPressEvent;
            entry_dia1.Text       = DateTime.Now.ToString("dd");
            entry_mes1.Text       = DateTime.Now.ToString("MM");
            entry_ano1.Text       = DateTime.Now.ToString("yyyy");
            entry_dia2.Text       = DateTime.Now.ToString("dd");
            entry_mes2.Text       = DateTime.Now.ToString("MM");
            entry_ano2.Text       = DateTime.Now.ToString("yyyy");
            button_salir.Clicked += new EventHandler(on_cierraventanas_clicked);
            button_imprime_rangofecha.Clicked += new EventHandler(imprime_reporte_abonos);
            label_orden.Hide();
            label_nom_cliente.Hide();
            label142.Hide();
            radiobutton_cliente.Hide();
            radiobutton_fecha.Hide();
            checkbutton_todos_los_clientes.Hide();
            entry_referencia_inicial.Hide();
            entry_cliente.Hide();
            button_busca_cliente.Hide();
        }
コード例 #11
0
ファイル: splash.cs プロジェクト: davidfombella/chronojump
    public SplashWindow()
    {
        Glade.XML gladeXML;
        gladeXML = Glade.XML.FromAssembly(Util.GetGladePath() + "splash_window.glade", "splash_window", "chronojump");
        gladeXML.Autoconnect(this);

        //put an icon to window
        UtilGtk.IconWindow(splash_window);

        FakeButtonClose   = new Gtk.Button();
        FakeButtonCreated = true;

        hideAllProgressbars();

        //hidden always excepted when called to be shown (see below)
        button_open_database_folder.Hide();
        button_open_docs_folder.Hide();

        //put logo image
        Pixbuf pixbuf;

        pixbuf            = new Pixbuf(null, Util.GetImagePath(false) + Constants.FileNameLogo320);
        image_logo.Pixbuf = pixbuf;
    }
コード例 #12
0
		void SetText (IEnumerable<ISystemInformationProvider> text)
		{
			Clear ();

			var buf = new Gtk.Label ();
			buf.Selectable = true;
			buf.Xalign = 0;

			StringBuilder sb = new StringBuilder ();

			foreach (var info in text) {
				sb.Append ("<b>").Append (GLib.Markup.EscapeText (info.Title)).Append ("</b>\n");
				sb.Append (GLib.Markup.EscapeText (info.Description.Trim ())).Append ("\n\n");
			}

			buf.Markup = sb.ToString ().Trim () + "\n";

			var contentBox = new VBox ();
			contentBox.BorderWidth = 4;
			contentBox.PackStart (buf, false, false, 0);

			var asmButton = new Gtk.Button ("Show loaded assemblies");
			asmButton.Clicked += (sender, e) => {
				asmButton.Hide ();
				contentBox.PackStart (CreateAssembliesTable (), false, false, 0);
			};
			var hb = new Gtk.HBox ();
			hb.PackStart (asmButton, false, false, 0);
			contentBox.PackStart (hb, false, false, 0);

			var sw = new MonoDevelop.Components.CompactScrolledWindow () {
				ShowBorderLine = true,
				BorderWidth = 2
			};
			sw.AddWithViewport (contentBox);
			sw.ShadowType = ShadowType.None;
			((Gtk.Viewport)sw.Child).ShadowType = ShadowType.None;

			PackStart (sw, true, true, 0);
			ShowAll ();
		}
コード例 #13
0
    public HelpPorts()
    {
        Glade.XML gladeXML;
        gladeXML = Glade.XML.FromAssembly(Util.GetGladePath() + "chronojump.glade", "dialog_help_ports", "chronojump");
        gladeXML.Autoconnect(this);

        //put an icon to window
        UtilGtk.IconWindow(dialog_help_ports);

        string messageInfo;
        string messageDetected = "";


        if (UtilAll.IsWindows())
        {
            messageInfo = Constants.PortNamesWindows;

            /*
             * autodetection disabled on Linux and windows because mono doesn't allow it
             * string jumpLine = "";
             * foreach (string s in SerialPort.GetPortNames()) {
             *      messageDetected += jumpLine + s;
             *      jumpLine = "\n";
             * }
             */

            messageDetected = string.Format(Catalog.GetString("Auto-Detection currently disabled"));
        }
        else
        {
            messageInfo     = Constants.PortNamesLinux;
            messageDetected = UtilAll.DetectPortsLinux(true);             //formatting
            button_check_port.Hide();
            button_force_port.Hide();
        }

        label_info.Text          = messageInfo;
        label_info.UseMarkup     = true;
        label_detected.Text      = messageDetected;
        label_detected.UseMarkup = true;

        if (UtilAll.IsWindows())
        {
            label_help_info.Text =
                Constants.FindDriverWindows + "\n\n" +
                Catalog.GetString("Ports above COM4 may not work.") + "\n" +
                Catalog.GetString("If you want a safer port, press:") + "\n" +
                Catalog.GetString("Force Chronopic to port <b>COM1 - COM4</b>'.");
        }
        else
        {
            label_help_info.Text = Constants.FindDriverOthers;
        }

        label_help_info.UseMarkup = true;

        label_help_manual.Text =
            Catalog.GetString("More information on <b>Chronojump Manual</b>") + "\n" +
            "<i>" + Path.GetFullPath(Util.GetManualDir()) + "</i>\n\n" +
            Catalog.GetString("Newer versions will be on this site:") + "\n" +
            "<i>http://chronojump.org/documents.html</i>";
        label_help_manual.UseMarkup = true;
    }
コード例 #14
0
		void Install (Gtk.Alignment commandBox, Button installButton, Update update)
		{
			if (update.InstallAction == null) {
				DesktopService.ShowUrl (update.Url);
				return;
			}
			
			installButton.Hide ();
			
			if (installing) {
				Gtk.Label lab = new Gtk.Label (GettextCatalog.GetString ("Waiting"));
				commandBox.Child.Destroy ();
				commandBox.Add (lab);
				lab.Show ();
				installQueue.Enqueue (delegate {
					lab.Hide ();
					RunInstall (commandBox, update);
				});
				return;
			}
			
			RunInstall (commandBox, update);
		}
コード例 #15
0
		public ModeButton ()
		{
			this.Events |= EventMask.PointerMotionMask
			            |  EventMask.ButtonPressMask
			            |  EventMask.VisibilityNotifyMask;

			this.VisibilityNotifyEvent += delegate { this.QueueDraw (); };

			Sensitive = false;
			
			m_box = new HBox (true, 6);
			m_box.BorderWidth = 6;
			Add (m_box);
			m_box.Show ();

			m_button = new Button ();
			m_button.Hide();
			m_box.PackStart (m_button, true, true, 0);
		}
コード例 #16
0
ファイル: MessageBar.cs プロジェクト: GNOME/hyena
        public MessageBar()
            : base(0.0f, 0.5f, 1.0f, 0.0f)
        {
            win = new Window (WindowType.Popup);
            win.Name = "gtk-tooltips";

            HBox shell_box = new HBox ();
            shell_box.Spacing = 10;

            box = new HBox ();
            box.Spacing = 10;

            image = new AnimatedImage ();
            try {
                image.Pixbuf = Gtk.IconTheme.Default.LoadIcon ("process-working", 22, IconLookupFlags.NoSvg);
                image.FrameHeight = 22;
                image.FrameWidth = 22;
                Spinning = false;
                image.Load ();
            } catch {
            }

            label = new WrapLabel ();
            label.Show ();

            box.PackStart (image, false, false, 0);
            box.PackStart (label, true, true, 0);
            box.Show ();

            button_box = new HBox ();
            button_box.Spacing = 3;

            close_button = new Button (new Image (Stock.Close, IconSize.Menu));
            close_button.Relief = ReliefStyle.None;
            close_button.Clicked += delegate { Hide (); };
            close_button.ShowAll ();
            close_button.Hide ();

            shell_box.PackStart (box, true, true, 0);
            shell_box.PackStart (button_box, false, false, 0);
            shell_box.PackStart (close_button, false, false, 0);
            shell_box.Show ();

            Add (shell_box);

            BorderWidth = 3;
        }
コード例 #17
0
ファイル: UpdateDialog.cs プロジェクト: thild/monodevelop
		void Install (HBox labelBox, Button installButton, Update update)
		{
			if (update.InstallAction == null) {
				DesktopService.ShowUrl (update.Url);
				return;
			}
			
			installButton.Hide ();
			
			if (installing) {
				Gtk.Label lab = new Gtk.Label (GettextCatalog.GetString ("Waiting"));
				labelBox.PackStart (lab, false, false, 0);
				lab.Show ();
				installQueue.Enqueue (delegate {
					lab.Hide ();
					RunInstall (labelBox, update);
				});
				return;
			}
			
			RunInstall (labelBox, update);
		}