~johannes.baiter/mnemosyne-proj/mnemodroid

« back to all changes in this revision

Viewing changes to src/com/mnemodroid/mnemosyne/mnemosyne/libmnemosyne/ui_components/review_widget.py

  • Committer: Johannes Baiter
  • Date: 2011-02-15 00:30:59 UTC
  • Revision ID: johannes.baiter@gmail.com-20110215003059-83fn5ebmjs89jl2d
Relocated python scripts, added README and shellscript for tarball-creation, some bugfixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# review_widget.py <Peter.Bienstman@UGent.be>
3
 
#
4
 
 
5
 
from mnemosyne.libmnemosyne.ui_component import UiComponent
6
 
 
7
 
 
8
 
class ReviewWidget(UiComponent):
9
 
    
10
 
    """Describes the interface that the review widget needs to implement
11
 
    in order to be used by the review controller.
12
 
 
13
 
    Note that also the review widget is instantiated late, even though we
14
 
    always need one right from the start of the program. The reason is that
15
 
    there could be many review widgets defined through plugins, and
16
 
    instantiating them all at the start of the program could be slow,
17
 
    especially on mobile devices.
18
 
 
19
 
    """
20
 
 
21
 
    component_type = "review_widget"
22
 
        
23
 
    def set_question_box_visible(self, is_visible):
24
 
        pass
25
 
        
26
 
    def set_answer_box_visible(self, is_visible):
27
 
        pass
28
 
        
29
 
    def set_question_label(self, text):
30
 
        pass
31
 
        
32
 
    def set_question(self, text):
33
 
        pass
34
 
        
35
 
    def set_answer(self, text):
36
 
        pass
37
 
        
38
 
    def clear_question(self): 
39
 
        pass
40
 
        
41
 
    def clear_answer(self): 
42
 
        pass
43
 
        
44
 
    def update_show_button(self, text, is_default, is_enabled): 
45
 
        pass
46
 
 
47
 
    def set_grades_enabled(self, is_enabled):
48
 
 
49
 
        """Enable whole grade area, including title."""
50
 
        
51
 
        pass
52
 
    
53
 
    def set_grade_enabled(self, grade, is_enabled):
54
 
 
55
 
        """Enable just a single grade button."""
56
 
        
57
 
        pass
58
 
    
59
 
    def set_default_grade(self, grade):
60
 
        pass
61
 
        
62
 
    def set_grades_title(self, text): 
63
 
        pass
64
 
            
65
 
    def set_grade_text(self, grade, text): 
66
 
        pass
67
 
            
68
 
    def set_grade_tooltip(self, grade, text): 
69
 
        pass
70
 
 
71
 
    def update_status_bar_counters(self):
72
 
        pass
73
 
 
74
 
    def repaint_now(self):
75
 
 
76
 
        """Tell the widget that now would be a good time to repaint
77
 
        immediately. Some toolkits queue repaint events until there is no more
78
 
        processing going on, but this defeats libmnemosyne's optimisation of
79
 
        trying to show the next question before the grading of the previous
80
 
        question is completed.
81
 
 
82
 
        """
83
 
        
84
 
        pass