Beispiel #1
0
        public BuildOutput()
        {
            Build();

            outputParser = new OutputParser();

            var column = new TreeViewColumn ();

            var iconCell = new CellRendererPixbuf ();
            var textCell = new CellRendererText ();
            var idCell = new CellRendererText ();

            idCell.Visible = false;

            column.PackStart (iconCell, false);
            column.PackStart (textCell, false);
            column.PackStart (idCell, false);

            treeview1.AppendColumn (column);

            column.AddAttribute (iconCell,  "pixbuf", 0);
            column.AddAttribute (textCell, "text", 1);
            column.AddAttribute (idCell, "text", 2);

            listStore = new TreeStore (typeof (Gdk.Pixbuf), typeof (string), typeof (string));

            treeview1.Model = listStore;

            textView1.SizeAllocated += TextView1_SizeAllocated;
        }
Beispiel #2
0
        public BuildOutput()
        {
            Build();

            outputParser = new OutputParser();

            var column = new TreeViewColumn();

            var iconCell = new CellRendererPixbuf();
            var textCell = new CellRendererText();
            var idCell   = new CellRendererText();

            idCell.Visible = false;

            column.PackStart(iconCell, false);
            column.PackStart(textCell, false);
            column.PackStart(idCell, false);

            treeview1.AppendColumn(column);

            column.AddAttribute(iconCell, "pixbuf", 0);
            column.AddAttribute(textCell, "text", 1);
            column.AddAttribute(idCell, "text", 2);

            listStore = new TreeStore(typeof(Gdk.Pixbuf), typeof(string), typeof(string));

            treeview1.Model = listStore;

            textView1.SizeAllocated += TextView1_SizeAllocated;
        }
Beispiel #3
0
        public BuildOutput()
        {
            InitializeComponent();

            _output = new OutputParser();

            _iconInformation         = Global.GetEtoIcon("Build.Information.png");
            _iconFail                = Global.GetEtoIcon("Build.Fail.png");
            _iconProcessing          = Global.GetEtoIcon("Build.Processing.png");
            _iconSkip                = Global.GetEtoIcon("Build.Skip.png");
            _iconStart               = Global.GetEtoIcon("Build.Start.png");
            _iconEndSucceed          = Global.GetEtoIcon("Build.EndSucceed.png");
            _iconEndFailed           = Global.GetEtoIcon("Build.EndFailed.png");
            _iconSucceed             = Global.GetEtoIcon("Build.Succeed.png");
            _iconSucceedWithWarnings = Global.GetEtoIcon("Build.SucceedWithWarnings.png");

            _items = new List <BuildItem>();

            _cmdFilterOutput = new CheckCommand
            {
                MenuText = "Filter Output"
            };
            _cmdFilterOutput.CheckedChanged += CmdFilterOutput_CheckedChanged;
            AddCommand(_cmdFilterOutput);

            _cmdShowSkipped = new CheckCommand
            {
                MenuText = "Show Skipped Files"
            };
            _cmdShowSkipped.CheckedChanged += CmdShowSkipped_CheckedChanged;
            AddCommand(_cmdShowSkipped);

            _cmdShowSuccessful = new CheckCommand
            {
                MenuText = "Show Successfully Built Files"
            };
            _cmdShowSuccessful.CheckedChanged += CmdShowSuccessful_CheckedChanged;
            AddCommand(_cmdShowSuccessful);

            _cmdShowCleaned = new CheckCommand
            {
                MenuText = "Show Cleaned Files"
            };
            _cmdShowCleaned.CheckedChanged += CmdShowCleaned_CheckedChanged;
            AddCommand(_cmdShowCleaned);

            _cmdAutoScroll = new CheckCommand
            {
                MenuText = "Auto Scroll"
            };
            _cmdAutoScroll.CheckedChanged += CmdAutoScroll_CheckedChanged;
            AddCommand(_cmdAutoScroll);

            MouseLocation = new Point(-1, -1);
        }
Beispiel #4
0
        public BuildOutput()
        {
            InitializeComponent();
            scrollable1.Style = "BuildOutput";

            _output = new OutputParser();

            _iconInformation         = Global.GetEtoIcon("Build.Information.png");
            _iconFail                = Global.GetEtoIcon("Build.Fail.png");
            _iconProcessing          = Global.GetEtoIcon("Build.Processing.png");
            _iconSkip                = Global.GetEtoIcon("Build.Skip.png");
            _iconStart               = Global.GetEtoIcon("Build.Start.png");
            _iconEndSucceed          = Global.GetEtoIcon("Build.EndSucceed.png");
            _iconEndFailed           = Global.GetEtoIcon("Build.EndFailed.png");
            _iconSucceed             = Global.GetEtoIcon("Build.Succeed.png");
            _iconSucceedWithWarnings = Global.GetEtoIcon("Build.SucceedWithWarnings.png");

            _items = new List <BuildItem>();

            _cmdFilterOutput                 = new CheckCommand();
            _cmdFilterOutput.MenuText        = "Filter Output";
            _cmdFilterOutput.CheckedChanged += CmdFilterOutput_CheckedChanged;
            AddCommand(_cmdFilterOutput);

            _cmdShowSkipped                 = new CheckCommand();
            _cmdShowSkipped.MenuText        = "Show Skipped Files";
            _cmdShowSkipped.CheckedChanged += CmdShowSkipped_CheckedChanged;
            AddCommand(_cmdShowSkipped);

            _cmdShowSuccessful                 = new CheckCommand();
            _cmdShowSuccessful.MenuText        = "Show Successfully Built Files";
            _cmdShowSuccessful.CheckedChanged += CmdShowSuccessful_CheckedChanged;
            AddCommand(_cmdShowSuccessful);

            _cmdShowCleaned                 = new CheckCommand();
            _cmdShowCleaned.MenuText        = "Show Cleaned Files";
            _cmdShowCleaned.CheckedChanged += CmdShowCleaned_CheckedChanged;
            AddCommand(_cmdShowCleaned);

            _cmdAutoScroll                 = new CheckCommand();
            _cmdAutoScroll.MenuText        = "Auto Scroll";
            _cmdAutoScroll.CheckedChanged += CmdAutoScroll_CheckedChanged;
            AddCommand(_cmdAutoScroll);

            MouseLocation = new Point(-1, -1);

#if LINUX
            var scrollView = scrollable1.ControlObject as Gtk.ScrolledWindow;
            scrollView.Vadjustment.ValueChanged += Scrollable1_Scroll;
            scrollView.Hadjustment.ValueChanged += Scrollable1_Scroll;
#endif
        }
Beispiel #5
0
        public BuildOutput()
        {
            InitializeComponent();

            _output = new OutputParser();

            _iconClean      = Icon.FromResource("Build.Clean.png");
            _iconFail       = Icon.FromResource("Build.Fail.png");
            _iconProcessing = Icon.FromResource("Build.Processing.png");
            _iconSkip       = Icon.FromResource("Build.Skip.png");
            _iconStartEnd   = Icon.FromResource("Build.StartEnd.png");
            _iconSucceed    = Icon.FromResource("Build.Succeed.png");

            treeView.DataStore = _root = new TreeItem();
        }