~do-win/do/test-paths

« back to all changes in this revision

Viewing changes to Do.Interface.Windows/src/Do.Interface/IUIContext.cs

  • Committer: Hardeep S
  • Date: 2009-06-23 03:53:12 UTC
  • Revision ID: ootz0rz@gmail.com-20090623035312-it8tb5wkha6nf31p
Added Do.Interface.Windows, and a bunch of cleanup with old MonoDevelop files elsewhere

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// IUIContext.cs
 
2
// 
 
3
// GNOME Do is the legal property of its developers. Please refer to the
 
4
// COPYRIGHT file distributed with this source distribution.
 
5
//
 
6
// This program is free software: you can redistribute it and/or modify
 
7
// it under the terms of the GNU General Public License as published by
 
8
// the Free Software Foundation, either version 3 of the License, or
 
9
// (at your option) any later version.
 
10
//
 
11
// This program is distributed in the hope that it will be useful,
 
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
// GNU General Public License for more details.
 
15
//
 
16
// You should have received a copy of the GNU General Public License
 
17
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
//
 
19
 
 
20
using System;
 
21
using System.Collections.Generic;
 
22
 
 
23
using Do.Universe;
 
24
 
 
25
 
 
26
namespace Do.Interface
 
27
{
 
28
        public enum TextModeType {
 
29
                None,
 
30
                Explicit,
 
31
                ExplicitFinalized,
 
32
                Implicit,
 
33
        }
 
34
        
 
35
        public interface IUIContext
 
36
        {
 
37
                /// <value>
 
38
                /// The current selection
 
39
                /// </value>
 
40
                Item Selection {get;}
 
41
                
 
42
                /// <value>
 
43
                /// The results list
 
44
                /// </value>
 
45
                IList<Item> Results {get;}
 
46
                
 
47
                /// <value>
 
48
                /// Integer index of the selection in the results list
 
49
                /// </value>
 
50
                int Cursor {get;}
 
51
                
 
52
                /// <value>
 
53
                /// Secondary selections indicies
 
54
                /// </value>
 
55
                int[] SecondaryCursors {get;}
 
56
                
 
57
                /// <value>
 
58
                /// The query that got us here
 
59
                /// </value>
 
60
                string Query {get;}
 
61
                
 
62
                /// <value>
 
63
                /// Tells the controller to present text in a larger box
 
64
                /// </value>
 
65
                bool LargeTextDisplay {get;}
 
66
                
 
67
                
 
68
                TextModeType LargeTextModeType {get;}
 
69
                
 
70
                /// <value>
 
71
                /// The parent context of the current UI context if it exists.
 
72
                /// </value>
 
73
                IUIContext ParentContext {get;}
 
74
        }
 
75
}