示例#1
0
        public DirectoryView(ExploreView exploreView)
        {
            this.exploreView = exploreView;
                menu = new DirectoryMenu(exploreView);

                store = new Gtk.ListStore(typeof(Gdk.Pixbuf), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(ItemType));
                Model = store;

                sortableColumns = new SortableColumns(this, store);

            #if HAVE_ATLEAST_GTK_210
                EnableGridLines = TreeViewGridLines.Vertical;
            #endif
                // setup main column with image/text data
                TreeViewColumn column = new TreeViewColumn ();
                CellRendererText crt = new CellRendererText();
                CellRendererPixbuf crp = new CellRendererPixbuf();
                column.Title = "Name";
                column.PackStart(crp, false);
                column.PackStart(crt, true);
                column.AddAttribute(crp, "pixbuf", 0);
                column.AddAttribute(crt, "text", 1);
                AppendColumn(column);
                AppendColumn("Status", ColumnIndex.Status);
                AppendColumn("Owner", ColumnIndex.Owner);
                AppendColumn("Latest", ColumnIndex.Latest);

                Selection.Mode = SelectionMode.Multiple;
                KeyReleaseEvent += MyKeyReleaseEventHandler;
                ButtonPressEvent += MyButtonPressEventHandler;
        }
示例#2
0
        public DirectoryView(ExploreView exploreView)
        {
            this.exploreView = exploreView;
            menu             = new DirectoryMenu(exploreView);

            store = new Gtk.ListStore(typeof(Gdk.Pixbuf), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(ItemType));
            Model = store;

            sortableColumns = new SortableColumns(this, store);

#if HAVE_ATLEAST_GTK_210
            EnableGridLines = TreeViewGridLines.Vertical;
#endif
            // setup main column with image/text data
            TreeViewColumn     column = new TreeViewColumn();
            CellRendererText   crt    = new CellRendererText();
            CellRendererPixbuf crp    = new CellRendererPixbuf();
            column.Title = "Name";
            column.PackStart(crp, false);
            column.PackStart(crt, true);
            column.AddAttribute(crp, "pixbuf", 0);
            column.AddAttribute(crt, "text", 1);
            AppendColumn(column);
            AppendColumn("Status", ColumnIndex.Status);
            AppendColumn("Owner", ColumnIndex.Owner);
            AppendColumn("Latest", ColumnIndex.Latest);

            Selection.Mode    = SelectionMode.Multiple;
            KeyReleaseEvent  += MyKeyReleaseEventHandler;
            ButtonPressEvent += MyButtonPressEventHandler;
        }
示例#3
0
        public void InitializeChangesetList()
        {
            store = new Gtk.ListStore(typeof(int), typeof(string), typeof(string), typeof(string));
            Model = store;

            sortableColumns = new SortableColumns(this, store);

            TreeViewColumn id = AppendColumn("Id", 0);

            id.SortIndicator = true;
            id.SortOrder     = SortType.Descending;

            AppendColumn("Owner", 1);
            AppendColumn("Date", 2);
            AppendColumn("Comment", 3);

            Selection.Mode     = SelectionMode.Multiple;
            Selection.Changed += OnSelectionChanged;
            KeyReleaseEvent   += MyKeyReleaseEventHandler;
            ButtonPressEvent  += MyButtonPressEventHandler;

#if HAVE_ATLEAST_GTK_210
            EnableGridLines = TreeViewGridLines.Vertical;
#endif
        }
示例#4
0
        public void InitializeChangesetList()
        {
            store = new Gtk.ListStore (typeof(int), typeof(string), typeof(string), typeof(string));
            Model = store;

            sortableColumns = new SortableColumns(this, store);

            TreeViewColumn id = AppendColumn("Id", 0);
            id.SortIndicator = true;
            id.SortOrder = SortType.Descending;

            AppendColumn("Owner", 1);
            AppendColumn("Date", 2);
            AppendColumn("Comment", 3);

            Selection.Mode = SelectionMode.Multiple;
            Selection.Changed += OnSelectionChanged;
            KeyReleaseEvent += MyKeyReleaseEventHandler;
            ButtonPressEvent += MyButtonPressEventHandler;

            #if HAVE_ATLEAST_GTK_210
            EnableGridLines = TreeViewGridLines.Vertical;
            #endif
        }