~ubuntu-branches/ubuntu/saucy/unity-tweak-tool/saucy-proposed

« back to all changes in this revision

Viewing changes to UnityTweakTool/section/overview.py

  • Committer: Package Import Robot
  • Author(s): Barneedhar Vigneshwar
  • Date: 2013-02-15 20:33:41 UTC
  • Revision ID: package-import@ubuntu.com-20130215203341-yqrfr9df488k41am
Tags: 0.0.3
* New upstream release
* Closes needs-packaging bug (LP: #1126433)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python3
 
2
# -*- coding: utf-8 -*-
 
3
#
 
4
# Team:
 
5
#   J Phani Mahesh <phanimahesh@gmail.com> 
 
6
#   Barneedhar (jokerdino) <barneedhar@ubuntu.com> 
 
7
#   Amith KK <amithkumaran@gmail.com>
 
8
#   Georgi Karavasilev <motorslav@gmail.com>
 
9
#   Sam Tran <samvtran@gmail.com>
 
10
#   Sam Hewitt <hewittsamuel@gmail.com>
 
11
#   Angel Araya <al.arayaq@gmail.com>
 
12
#
 
13
# Description:
 
14
#   A One-stop configuration tool for Unity.
 
15
#
 
16
# Legal Stuff:
 
17
#
 
18
# This file is a part of Unity Tweak Tool
 
19
#
 
20
# Unity Tweak Tool is free software; you can redistribute it and/or modify it under
 
21
# the terms of the GNU General Public License as published by the Free Software
 
22
# Foundation; version 3.
 
23
#
 
24
# Unity Tweak Tool is distributed in the hope that it will be useful, but WITHOUT
 
25
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
26
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 
27
# details.
 
28
#
 
29
# You should have received a copy of the GNU General Public License along with
 
30
# this program; if not, see <https://www.gnu.org/licenses/gpl-3.0.txt>
 
31
 
 
32
from UnityTweakTool.section.skeletonpage import Section,Tab
 
33
from UnityTweakTool.elements.toolbutton import OverviewToolButton
 
34
 
 
35
class Overview(Tab,Section):
 
36
    def __init__(self,notebook):
 
37
        Section.__init__(self,ui='startpage.ui',id='box_startpage')
 
38
        self.sections={
 
39
            1:{ 0:'tool_launcher',
 
40
                1:'tool_dash',
 
41
                2:'tool_panel',
 
42
                3:'tool_unity_switcher',
 
43
                4:'tool_unity_webapps',
 
44
                5:'tool_additional'},
 
45
            2:{ 0:'tool_general',
 
46
                1:'tool_compiz_switcher',
 
47
                2:'tool_windows_spread',
 
48
                3:'tool_windows_snapping',
 
49
                4:'tool_hotcorners',
 
50
                5:'tool_wm_additional'},
 
51
            3:{ 0:'tool_system',
 
52
                1:'tool_icons',
 
53
                2:'tool_cursors',
 
54
                3:'tool_fonts',
 
55
                4:'tool_window_controls'},
 
56
            4:{ 0:'tool_desktop_icons',
 
57
                1:'tool_desktop_security',
 
58
                2:'tool_desktop_scrolling'}
 
59
        }
 
60
 
 
61
        Tab.__init__(self,[OverviewToolButton(
 
62
                            section=section,page=page,id=id,notebook=notebook)
 
63
                    for section,set in self.sections.items()
 
64
                        for page,id in set.items()
 
65
            ]
 
66
        )
 
67
 
 
68
        self.register_tab(self.handler)
 
69
        self.register()