예제 #1
0
        /// <summary>
        /// builds dialog window
        /// </summary>
        void BuildContent()
        {
            Table table = new Table ();

            _jackdPathEntry = BuildRow (table, 0, I18N._ ("Jackd Startup Path"), I18N._ ("e.g. /usr/bin/jackd"));
            _jackdPathEntry.FileSelector ();
            _jackdGeneralOptionsEntry = BuildRow (table, 1, I18N._ ("General Options"), I18N._ ("optional"));
            _jackdDriverEntry = BuildRow (table, 2, I18N._ ("Driver Infrastructure"), I18N._ ("e.g. alsa"));
            _jackdDriverOptionsEntry = BuildRow (table, 3, I18N._ ("Driver Options"), I18N._ ("optional"));

            HBox buttonBox = new HBox ();
            _okButton = new Button (I18N._ ("Save")) { Image = Icons.Ok };
            _cancelButton = new Button (I18N._ ("Cancel")) {
                Image = Icons.Cancel,
                      Style = ButtonStyle.Flat
            };
            buttonBox.PackStart (_cancelButton);
            buttonBox.PackEnd (_okButton);

            VBox box = new VBox ();
            box.PackStart (table);
            box.PackEnd (buttonBox);
            Content = box;
        }
예제 #2
0
        /// <summary>
        /// builds subwidgets and layout
        /// </summary>
        void BuildWidget()
        {
            Table table = new Table ();

            _appNameEntry = BuildRow (table, 0, I18N._ ("Name"), I18N._ ("e.g. Ardour"));
            _appCommandEntry = BuildRow (table, 1, I18N._ ("Command"), I18N._ ("e.g. /usr/bin/ardour3"));
            _appCommandEntry.FileSelector ();
            _appArgumentsEntry = BuildRow (table, 2, I18N._ ("Command Arguments"), I18N._ ("optional"));

            _removeApp = new Button (I18N._ ("Delete")) { Image = Icons.Delete };
            table.Add (_removeApp, 2, 1);
            _up = new Button (Icons.Up) { Visible = false, Style = ButtonStyle.Flat };
            table.Add (_up, 2, 0);
            _down = new Button (Icons.Down) { Visible = false, Style = ButtonStyle.Flat };
            table.Add (_down, 2, 2);
            table.Margin = new WidgetSpacing (4, 8, 4, 8);
            Content = table;
        }