~ubuntu-branches/ubuntu/trusty/openerp-client/trusty

« back to all changes in this revision

Viewing changes to bin/widget/view/graph.py

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-12-07 20:17:00 UTC
  • Revision ID: james.westby@ubuntu.com-20081207201700-a875pic3sd7xkoru
Tags: upstream-5.0.0~alpha
ImportĀ upstreamĀ versionĀ 5.0.0~alpha

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- encoding: utf-8 -*-
 
2
##############################################################################
 
3
#
 
4
#    OpenERP, Open Source Management Solution   
 
5
#    Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
 
6
#    $Id$
 
7
#
 
8
#    This program is free software: you can redistribute it and/or modify
 
9
#    it under the terms of the GNU General Public License as published by
 
10
#    the Free Software Foundation, either version 3 of the License, or
 
11
#    (at your option) any later version.
 
12
#
 
13
#    This program is distributed in the hope that it will be useful,
 
14
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
#    GNU General Public License for more details.
 
17
#
 
18
#    You should have received a copy of the GNU General Public License
 
19
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
20
#
 
21
##############################################################################
 
22
 
 
23
import gobject
 
24
import gtk
 
25
from interface import parser_view
 
26
 
 
27
class ViewGraph(parser_view):
 
28
 
 
29
    def __init__(self, window, screen, widget, children=None, buttons=None,
 
30
            toolbar=None):
 
31
        super(ViewGraph, self).__init__(window, screen, widget, children,
 
32
                buttons, toolbar)
 
33
        self.view_type = 'graph'
 
34
        self.model_add_new = False
 
35
        self.view = widget
 
36
        self.widget = widget.widget
 
37
        self.widget.screen = screen
 
38
 
 
39
    def cancel(self):
 
40
        pass
 
41
 
 
42
    def __str__(self):
 
43
        return 'ViewGraph (%s)' % self.screen.resource
 
44
 
 
45
    def __getitem__(self, name):
 
46
        return None
 
47
 
 
48
    def destroy(self):
 
49
        self.widget.destroy()
 
50
        del self.screen
 
51
        del self.widget
 
52
 
 
53
    def set_value(self):
 
54
        pass
 
55
 
 
56
    def reset(self):
 
57
        pass
 
58
 
 
59
    def display(self):
 
60
        self.view.display(self.screen.models)
 
61
        return None
 
62
 
 
63
    def signal_record_changed(self, *args):
 
64
        pass
 
65
 
 
66
    def sel_ids_get(self):
 
67
        return []
 
68
 
 
69
    def on_change(self, callback):
 
70
        pass
 
71
 
 
72
    def unset_editable(self):
 
73
        pass
 
74
 
 
75
    def set_cursor(self, new=False):
 
76
        pass
 
77
 
 
78
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
 
79