public void SortByColumnNameAscending(string columnName)
        {
            ResetSorting();
            var col = SortableColumns.FirstOrDefault(c => c.Tag.ToString() == columnName);

            if (col != null)
            {
                SortByColumn(col);
            }
        }
Ejemplo n.º 2
0
    public DirectoryView(Driver driver)
    {
        this.driver = driver;
            directoryList = new Gtk.TreeView();

            directoryListStore = new Gtk.ListStore (typeof(string), typeof(string), typeof(string), typeof(string));
            directoryList.Model = directoryListStore;
            sortableColumns = new SortableColumns(directoryList, directoryListStore);

        #if HAVE_ATLEAST_GTK_210
            directoryList.EnableGridLines = TreeViewGridLines.Vertical;
        #endif
            AppendColumn ("Name", 0);
            AppendColumn ("Status", 1);
            AppendColumn ("Owner", 2);
            AppendColumn ("Latest", 3);

            Add(directoryList);

            int x, y, width, height, depth;
            RootWindow.GetGeometry (out x, out y, out width, out height, out depth);
    }
Ejemplo n.º 3
0
    public DirectoryView(Driver driver)
    {
        this.driver   = driver;
        directoryList = new Gtk.TreeView();

        directoryListStore  = new Gtk.ListStore(typeof(string), typeof(string), typeof(string), typeof(string));
        directoryList.Model = directoryListStore;
        sortableColumns     = new SortableColumns(directoryList, directoryListStore);

#if HAVE_ATLEAST_GTK_210
        directoryList.EnableGridLines = TreeViewGridLines.Vertical;
#endif
        AppendColumn("Name", 0);
        AppendColumn("Status", 1);
        AppendColumn("Owner", 2);
        AppendColumn("Latest", 3);

        Add(directoryList);

        int x, y, width, height, depth;
        RootWindow.GetGeometry(out x, out y, out width, out height, out depth);
    }
Ejemplo n.º 4
0
    public void InitializeChangesetList()
    {
        changesetListStore = new Gtk.ListStore (typeof(int), typeof(string), typeof(string), typeof(string));
            changesetList = new Gtk.TreeView(changesetListStore);
            sortableColumns = new SortableColumns(changesetList, changesetListStore);

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

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

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

        #if HAVE_ATLEAST_GTK_210
            changesetList.EnableGridLines = TreeViewGridLines.Vertical;
        #endif
    }
Ejemplo n.º 5
0
    public void InitializeChangesetList()
    {
        changesetListStore = new Gtk.ListStore(typeof(int), typeof(string), typeof(string), typeof(string));
        changesetList      = new Gtk.TreeView(changesetListStore);
        sortableColumns    = new SortableColumns(changesetList, changesetListStore);

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

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

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

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

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