def __init__(self,notebook):
        Section.__init__(self,ui='startpage.ui',id='box_startpage')
        self.sections={
            1:{ 0:'tool_launcher',
                1:'tool_dash',
                2:'tool_panel',
                3:'tool_unity_switcher',
                4:'tool_unity_webapps',
                5:'tool_additional'},
            2:{ 0:'tool_general',
                1:'tool_compiz_switcher',
                2:'tool_windows_spread',
                3:'tool_windows_snapping',
                4:'tool_hotcorners',
                5:'tool_wm_additional'},
            3:{ 0:'tool_system',
                1:'tool_icons',
                2:'tool_cursors',
                3:'tool_fonts',
                4:'tool_window_controls'},
            4:{ 0:'tool_desktop_icons',
                1:'tool_desktop_security',
                2:'tool_desktop_scrolling'}
        }

        Tab.__init__(self,[OverviewToolButton(
                            section=section,page=page,id=id,notebook=notebook)
                    for section,set in self.sections.items()
                        for page,id in set.items()
            ]
        )

        self.register_tab(self.handler)
        self.register()
Esempio n. 2
0
    def __init__(self, notebook):
        Section.__init__(self, ui='overview.ui', id='box_overview')
        self.sections = {
            1: {
                0: 'b_unity-launcher',
                1: 'b_unity-search',
                2: 'b_unity-panel',
                3: 'b_unity-switcher',
                4: 'b_unity-webapps',
                5: 'b_unity-additional'
            },
            2: {
                0: 'b_wm-general',
                1: 'b_wm-workspaces',
                2: 'b_wm-window-spread',
                3: 'b_wm-window-snapping',
                4: 'b_wm-hotcorners',
                5: 'b_wm-additional'
            },
            3: {
                0: 'b_appearance-theme',
                1: 'b_appearance-icons',
                2: 'b_appearance-cursors',
                3: 'b_appearance-fonts',
                4: 'b_appearance-window-controls'
            },
            4: {
                0: 'b_system-desktop-icons',
                1: 'b_system-security',
                2: 'b_system-scrolling'
            }
        }

        Tab.__init__(self, [
            OverviewButton(
                section=section, page=page, id=id, notebook=notebook)
            for section, set in self.sections.items()
            for page, id in set.items()
        ])

        self.register_tab(self.handler)
        self.register()

        # Symbolic icons
        self.icons = Gtk.IconTheme.get_default()
        self.style_context = self.builder.get_object(
            'overview_window').get_style_context()
        self.style_context.connect('changed', self.on_style_context_change)
Esempio n. 3
0
    def __init__(self, notebook):
        Section.__init__(self, ui='startpage.ui', id='box_startpage')
        self.sections = {
            1: {
                0: 'tool_launcher',
                1: 'tool_dash',
                2: 'tool_panel',
                3: 'tool_unity_switcher',
                4: 'tool_unity_webapps',
                5: 'tool_additional'
            },
            2: {
                0: 'tool_general',
                1: 'tool_compiz_switcher',
                2: 'tool_windows_spread',
                3: 'tool_windows_snapping',
                4: 'tool_hotcorners',
                5: 'tool_wm_additional'
            },
            3: {
                0: 'tool_system',
                1: 'tool_icons',
                2: 'tool_cursors',
                3: 'tool_fonts',
                4: 'tool_window_controls'
            },
            4: {
                0: 'tool_desktop_icons',
                1: 'tool_desktop_security',
                2: 'tool_desktop_scrolling'
            }
        }

        Tab.__init__(self, [
            OverviewToolButton(
                section=section, page=page, id=id, notebook=notebook)
            for section, set in self.sections.items()
            for page, id in set.items()
        ])

        self.register_tab(self.handler)
        self.register()
    def __init__(self,notebook):
        Section.__init__(self,ui='overview.ui',id='box_overview')
        self.sections={
            1:{ 0:'b_unity-launcher',
                1:'b_unity-search',
                2:'b_unity-panel',
                3:'b_unity-switcher',
                4:'b_unity-webapps',
                5:'b_unity-additional'},
            2:{ 0:'b_wm-general',
                1:'b_wm-workspaces',
                2:'b_wm-window-spread',
                3:'b_wm-window-snapping',
                4:'b_wm-hotcorners',
                5:'b_wm-additional'},
            3:{ 0:'b_appearance-theme',
                1:'b_appearance-icons',
                2:'b_appearance-cursors',
                3:'b_appearance-fonts',
                4:'b_appearance-window-controls'},
            4:{ 0:'b_system-desktop-icons',
                1:'b_system-security',
                2:'b_system-scrolling'}
        }

        Tab.__init__(self,[OverviewButton(
                            section=section,page=page,id=id,notebook=notebook)
                    for section,set in self.sections.items()
                        for page,id in set.items()
            ]
        )

        self.register_tab(self.handler)
        self.register()
 
        # Symbolic icons
        self.icons = Gtk.IconTheme.get_default()
        self.style_context = self.builder.get_object('overview_window').get_style_context()
        self.style_context.connect('changed', self.on_style_context_change)
Esempio n. 5
0
from UnityTweakTool.elements.checkbox import CheckBox
from UnityTweakTool.elements.colorchooser import ColorChooser
from UnityTweakTool.elements.radio import Radio
from UnityTweakTool.elements.scale import Scale
from UnityTweakTool.elements.spin import SpinButton
from UnityTweakTool.elements.switch import Switch

from UnityTweakTool.section.spaghetti.unity import Unitysettings as SpaghettiUnitySettings
from UnityTweakTool.elements.option import Option, HandlerObject

from UnityTweakTool.backends import gsettings

from collections import defaultdict
from gi.repository import Gtk

Unity = Section(ui='unity.ui', id='nb_unitysettings')

#=============== LAUNCHER ==========================

sw_launcher_hidemode = Switch({
    'id':
    'sw_launcher_hidemode',
    'builder':
    Unity.builder,
    'schema':
    'org.compiz.unityshell',
    'path':
    '/org/compiz/profiles/unity/plugins/unityshell/',
    'key':
    'launcher-hide-mode',
    'type':
Esempio n. 6
0
from UnityTweakTool.elements.checkbox import CheckBox
from UnityTweakTool.elements.colorchooser import ColorChooser
from UnityTweakTool.elements.radio import Radio
from UnityTweakTool.elements.scale import Scale
from UnityTweakTool.elements.spin import SpinButton
from UnityTweakTool.elements.switch import Switch

from UnityTweakTool.section.spaghetti.unity import Unitysettings as SpaghettiUnitySettings
from UnityTweakTool.elements.option import Option,HandlerObject

from UnityTweakTool.backends import gsettings

from collections import defaultdict
from gi.repository import Gtk

Unity=Section(ui='unity.ui',id='nb_unitysettings')


#=============== LAUNCHER ==========================

sw_launcher_hidemode= Switch({
    'id'        : 'sw_launcher_hidemode',
    'builder'   : Unity.builder,
    'schema'    : 'org.compiz.unityshell',
    'path'      : '/org/compiz/profiles/unity/plugins/unityshell/',
    'key'       : 'launcher-hide-mode',
    'type'      : 'int',
    'map'       : {1:True,0:False},
    'dependants': ['radio_reveal_left',
                   'radio_reveal_topleft',
                   'sc_reveal_sensitivity',
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, see <https://www.gnu.org/licenses/gpl-3.0.txt>


from UnityTweakTool.section.skeletonpage import Section,Tab
from UnityTweakTool.elements.switch import Switch
from UnityTweakTool.elements.checkbox import CheckBox
from UnityTweakTool.elements.cbox import ComboBox
from UnityTweakTool.elements.radio import Radio
from UnityTweakTool.elements.togglebutton import ToggleButton
import UnityTweakTool.section.dynamic as dynamic


System=Section(ui='system.ui',id='nb_desktop_settings')

tb_home_folder= ToggleButton({
    'id'        : 'tb_home_folder',
    'builder'   : System.builder,
    'schema'    : 'org.gnome.nautilus.desktop',
    'path'      : None,
    'key'       : 'home-icon-visible',
    'type'      : 'boolean',
    'map'       : {True:True,False:False},
    'dependants': []
})

tb_network= ToggleButton({
    'id'        : 'tb_network',
    'builder'   : System.builder,
# You should have received a copy of the GNU General Public License along with
# this program; if not, see <https://www.gnu.org/licenses/gpl-3.0.txt>


from UnityTweakTool.section.skeletonpage import Section,Tab
from UnityTweakTool.elements.fontbutton import FontButton
from UnityTweakTool.elements.cbox import ComboBox
from UnityTweakTool.elements.spin import SpinButton
from UnityTweakTool.elements.radio import Radio
from UnityTweakTool.elements.checkbox import CheckBox
from UnityTweakTool.section.spaghetti.theme import Themesettings as SpaghettiThemeSettings
from UnityTweakTool.elements.option import Option,HandlerObject

from collections import defaultdict

Appearance =Section(ui='appearance.ui',id='nb_themesettings')

#=============== THEME ==========================

#=============== ICONS ==========================

#=============== CURSOR =========================

#=============== FONTS ==========================

font_default= FontButton({
    'id'        : 'font_default',
    'builder'   : Appearance.builder,
    'schema'    : 'org.gnome.desktop.interface',
    'path'      : None,
    'key'       : 'font-name',
# this program; if not, see <https://www.gnu.org/licenses/gpl-3.0.txt>


from UnityTweakTool.section.skeletonpage import Section, Tab
from UnityTweakTool.elements.cbox import ComboBox
from UnityTweakTool.elements.checkbox import CheckBox
from UnityTweakTool.elements.spin import SpinButton
from UnityTweakTool.elements.switch import Switch

from UnityTweakTool.section.spaghetti.compiz import Compizsettings as SpaghettiCompizSettings
from UnityTweakTool.elements.option import Option,HandlerObject

from collections import defaultdict


WindowManager=Section(ui='windowmanager.ui',id='nb_compizsettings')

#=============== GENERAL ==========================

#sw_compiz_zoom= Switch({
#    'id'        : 'sw_compiz_zoom',
#    'builder'   : WindowManager.builder,
#    'schema'    : 'org.compiz.ezoom',
#    'path'      : '/org/compiz/profiles/unity/plugins/ezoom/',
#    'key'       : 'integration-allowed',
#    'type'      : 'boolean',
#    'map'       : {True:True,False:False},
#    'dependants': []
#})

cbox_opengl=ComboBox({
Esempio n. 10
0
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, see <https://www.gnu.org/licenses/gpl-3.0.txt>


from UnityTweakTool.section.skeletonpage import Section,Tab
from UnityTweakTool.elements.switch import Switch
from UnityTweakTool.elements.cbox import ComboBox

from UnityTweakTool.section.sphagetti.unity import Unitysettings as SphagettiUnitySettings
from UnityTweakTool.elements.option import Option,HandlerObject

from collections import defaultdict

Unity=Section(ui='unity.ui',id='nb_unitysettings')

sw_launcher_hidemode= Switch({
    'id'        : 'sw_launcher_hidemode',
    'builder'   : Unity.builder,
    'schema'    : 'org.compiz.unityshell',
    'path'      : '/org/compiz/profiles/unity/plugins/unityshell/',
    'key'       : 'launcher-hide-mode',
    'type'      : 'int',
    'map'       : {1:True,0:False},
    'dependants': ['radio_reveal_left',
                   'radio_reveal_topleft',
                   'sc_reveal_sensitivity',
                   'l_launcher_reveal',
                   'l_launcher_reveal_sensitivity',
                   'l_autohide_animation',
Esempio n. 11
0
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, see <https://www.gnu.org/licenses/gpl-3.0.txt>


from UnityTweakTool.section.skeletonpage import Section, Tab
from UnityTweakTool.elements.switch import Switch

from UnityTweakTool.section.sphagetti.compiz import Compizsettings as SphagettiCompizSettings
from UnityTweakTool.elements.option import Option,HandlerObject


WindowManager=Section(ui='compiz.ui',id='nb_compizsettings')

#sw_compiz_zoom= Switch({
#    'id'        : 'sw_compiz_zoom',
#    'builder'   : WindowManager.builder,
#    'schema'    : 'org.compiz.ezoom',
#    'path'      : '/org/compiz/profiles/unity/plugins/ezoom/',
#    'key'       : 'integration-allowed',
#    'type'      : 'boolean',
#    'map'       : {True:True,False:False},
#    'dependants': []
#})
#GeneralIcons=Tab([sw_compiz_zoom])

## Each page must be added using add_page
#WindowManager.add_page(GeneralIcons)
Esempio n. 12
0
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, see <https://www.gnu.org/licenses/gpl-3.0.txt>

from UnityTweakTool.section.skeletonpage import Section, Tab
from UnityTweakTool.elements.fontbutton import FontButton
from UnityTweakTool.elements.cbox import ComboBox
from UnityTweakTool.elements.spin import SpinButton
from UnityTweakTool.elements.radio import Radio
from UnityTweakTool.elements.checkbox import CheckBox
from UnityTweakTool.section.spaghetti.theme import Themesettings as SpaghettiThemeSettings
from UnityTweakTool.elements.option import Option, HandlerObject

from collections import defaultdict

Appearance = Section(ui='appearance.ui', id='nb_themesettings')

#=============== THEME ==========================

#=============== ICONS ==========================

#=============== CURSOR =========================

#=============== FONTS ==========================

font_default = FontButton({
    'id': 'font_default',
    'builder': Appearance.builder,
    'schema': 'org.gnome.desktop.interface',
    'path': None,
    'key': 'font-name',
Esempio n. 13
0
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, see <https://www.gnu.org/licenses/gpl-3.0.txt>

from UnityTweakTool.section.skeletonpage import Section, Tab
from UnityTweakTool.elements.switch import Switch
from UnityTweakTool.elements.checkbox import CheckBox
from UnityTweakTool.elements.cbox import ComboBox
from UnityTweakTool.elements.radio import Radio
from UnityTweakTool.elements.togglebutton import ToggleButton
import UnityTweakTool.section.dynamic as dynamic

System = Section(ui='system.ui', id='nb_desktop_settings')

tb_home_folder = ToggleButton({
    'id': 'tb_home_folder',
    'builder': System.builder,
    'schema': dynamic.desktop_schema,
    'path': None,
    'key': 'home-icon-visible',
    'type': 'boolean',
    'map': {
        True: True,
        False: False
    },
    'dependants': []
})
Esempio n. 14
0
#
# Unity Tweak Tool is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, see <https://www.gnu.org/licenses/gpl-3.0.txt>

from UnityTweakTool.section.skeletonpage import Section, Tab
from UnityTweakTool.elements.switch import Switch

from UnityTweakTool.section.sphagetti.compiz import Compizsettings as SphagettiCompizSettings
from UnityTweakTool.elements.option import Option, HandlerObject

WindowManager = Section(ui='compiz.ui', id='nb_compizsettings')

#sw_compiz_zoom= Switch({
#    'id'        : 'sw_compiz_zoom',
#    'builder'   : WindowManager.builder,
#    'schema'    : 'org.compiz.ezoom',
#    'path'      : '/org/compiz/profiles/unity/plugins/ezoom/',
#    'key'       : 'integration-allowed',
#    'type'      : 'boolean',
#    'map'       : {True:True,False:False},
#    'dependants': []
#})
#GeneralIcons=Tab([sw_compiz_zoom])

## Each page must be added using add_page
#WindowManager.add_page(GeneralIcons)