@ -644,7 +644,7 @@ class DrivesPage(TQWidget):
def slotFolderChanged ( self , folder ) :
def slotFolderChanged ( self , folder ) :
""" Change the directory mapping when a new one is entered in the URL box """
""" Change the directory mapping when a new one is entered in the URL box """
self . drives [ self . selecteddriveid ] [ 2 ] = unicode ( folder )
self . drives [ self . selecteddriveid ] [ 2 ] = str ( folder )
self . updateChanges ( )
self . updateChanges ( )
def slotFolderEdited ( self , folder ) :
def slotFolderEdited ( self , folder ) :
@ -657,7 +657,7 @@ class DrivesPage(TQWidget):
""" Bring up a browse window to choose a ndew mapping directory """
""" Bring up a browse window to choose a ndew mapping directory """
mapping = KFileDialog . getExistingDirectory ( wineread . winepath , self , i18n ( " Drive Mapping " ) )
mapping = KFileDialog . getExistingDirectory ( wineread . winepath , self , i18n ( " Drive Mapping " ) )
if mapping :
if mapping :
mapping = unicode ( mapping )
mapping = str ( mapping )
self . drives [ self . selecteddriveid ] [ 2 ] = mapping
self . drives [ self . selecteddriveid ] [ 2 ] = mapping
self . updateChanges ( )
self . updateChanges ( )
@ -672,7 +672,7 @@ class DrivesPage(TQWidget):
else :
else :
mapping = KFileDialog . getExistingDirectory ( wineread . winepath , self , i18n ( " Drive Mapping " ) )
mapping = KFileDialog . getExistingDirectory ( wineread . winepath , self , i18n ( " Drive Mapping " ) )
if mapping :
if mapping :
mapping = unicode ( mapping )
mapping = str ( mapping )
drive [ 2 ] = mapping
drive [ 2 ] = mapping
else :
else :
return
return
@ -780,7 +780,7 @@ class DrivesPage(TQWidget):
self . removebutton . setEnabled ( False )
self . removebutton . setEnabled ( False )
self . infotext1 . setText ( unicode ( i18n ( " Windows path: " ) ) + self . drives [ driveid ] [ 4 ] )
self . infotext1 . setText ( str ( i18n ( " Windows path: " ) ) + self . drives [ driveid ] [ 4 ] )
# It seems some old versions of wine didn't store the shell folders in the same place
# It seems some old versions of wine didn't store the shell folders in the same place
if self . drives [ driveid ] [ 5 ] != self . drives [ driveid ] [ 4 ] :
if self . drives [ driveid ] [ 5 ] != self . drives [ driveid ] [ 4 ] :
@ -811,11 +811,11 @@ class DrivesPage(TQWidget):
self . removebutton . setEnabled ( True )
self . removebutton . setEnabled ( True )
if self . drives [ driveid ] [ 4 ] :
if self . drives [ driveid ] [ 4 ] :
self . infotext1 . setText ( unicode ( i18n ( " Label: " ) ) + self . drives [ driveid ] [ 4 ] )
self . infotext1 . setText ( str ( i18n ( " Label: " ) ) + self . drives [ driveid ] [ 4 ] )
else :
else :
self . infotext1 . setText ( " " )
self . infotext1 . setText ( " " )
if self . drives [ driveid ] [ 5 ] :
if self . drives [ driveid ] [ 5 ] :
self . infotext2 . setText ( unicode ( i18n ( " Serial: " ) ) + self . drives [ driveid ] [ 5 ] )
self . infotext2 . setText ( str ( i18n ( " Serial: " ) ) + self . drives [ driveid ] [ 5 ] )
else :
else :
self . infotext2 . setText ( " " )
self . infotext2 . setText ( " " )
@ -1427,7 +1427,7 @@ class GraphicsPage(TQWidget):
def slotEmuDesktopToggled ( self , emudesktop ) :
def slotEmuDesktopToggled ( self , emudesktop ) :
if emudesktop :
if emudesktop :
self . currentemudesktop = unicode ( self . xsizeedit . text ( ) ) + ' x ' + str ( self . ysizeedit . text ( ) )
self . currentemudesktop = str ( self . xsizeedit . text ( ) ) + ' x ' + str ( self . ysizeedit . text ( ) )
else :
else :
self . currentemudesktop = " "
self . currentemudesktop = " "
self . __setEmuDesktop ( self . currentemudesktop )
self . __setEmuDesktop ( self . currentemudesktop )
@ -1520,64 +1520,64 @@ class GraphicsPage(TQWidget):
############################################################################
############################################################################
class AppearancePage ( TQWidget ) :
class AppearancePage ( TQWidget ) :
themes = [ unicode ( i18n ( " No Theme " ) ) ]
themes = [ str ( i18n ( " No Theme " ) ) ]
colorschemes = [ unicode ( i18n ( " Custom " ) ) ]
colorschemes = [ str ( i18n ( " Custom " ) ) ]
sizes = [ ( " NormalSize " , unicode ( i18n ( " Normal " ) ) ) ,
sizes = [ ( " NormalSize " , str ( i18n ( " Normal " ) ) ) ,
( " LargeSize " , unicode ( i18n ( " Large Fonts " ) ) ) ,
( " LargeSize " , str ( i18n ( " Large Fonts " ) ) ) ,
( " ExtraLargeSize " , unicode ( i18n ( " Extra Large Fonts " ) ) ) ]
( " ExtraLargeSize " , str ( i18n ( " Extra Large Fonts " ) ) ) ]
# Items for the combo box reference a tuple of dictionaries for color
# Items for the combo box reference a tuple of dictionaries for color
# and size values and translations for that item
# and size values and translations for that item
# For example, the value of BorderWidth is
# For example, the value of BorderWidth is
# customizableitems[str(i18n("Window Border"))][1]["BorderWidth"][1]
# customizableitems[str(i18n("Window Border"))][1]["BorderWidth"][1]
customizableitems = { " Window Border " :
customizableitems = { " Window Border " :
( { " ActiveBorder " : [ unicode ( i18n ( " Active Color: " ) ) , TQColor ( ) ] ,
( { " ActiveBorder " : [ str ( i18n ( " Active Color: " ) ) , TQColor ( ) ] ,
" InactiveBorder " : [ unicode ( i18n ( " Inactive Color: " ) ) , TQColor ( ) ] } ,
" InactiveBorder " : [ str ( i18n ( " Inactive Color: " ) ) , TQColor ( ) ] } ,
{ " BorderWidth " : [ unicode ( i18n ( " Width: " ) ) , 1 ] } ) , #ActiveBorder, InactiveBorder, metrics: BorderWidth
{ " BorderWidth " : [ str ( i18n ( " Width: " ) ) , 1 ] } ) , #ActiveBorder, InactiveBorder, metrics: BorderWidth
" Title Bar " :
" Title Bar " :
( { " ActiveTitle " : [ unicode ( i18n ( " Active Color: " ) ) , TQColor ( ) ] ,
( { " ActiveTitle " : [ str ( i18n ( " Active Color: " ) ) , TQColor ( ) ] ,
" GradientActiveTitle " : [ unicode ( i18n ( " Gradient: " ) ) , TQColor ( ) ] ,
" GradientActiveTitle " : [ str ( i18n ( " Gradient: " ) ) , TQColor ( ) ] ,
" InactiveTitle " : [ unicode ( i18n ( " Inactive Color: " ) ) , TQColor ( ) ] ,
" InactiveTitle " : [ str ( i18n ( " Inactive Color: " ) ) , TQColor ( ) ] ,
" GradientInactiveTitle " : [ unicode ( i18n ( " Gradient: " ) ) , TQColor ( ) ] ,
" GradientInactiveTitle " : [ str ( i18n ( " Gradient: " ) ) , TQColor ( ) ] ,
" TitleText " : [ unicode ( i18n ( " Active Text: " ) ) , TQColor ( ) ] ,
" TitleText " : [ str ( i18n ( " Active Text: " ) ) , TQColor ( ) ] ,
" InactiveTitleText " : [ unicode ( i18n ( " Inactive Text: " ) ) , TQColor ( ) ] } ,
" InactiveTitleText " : [ str ( i18n ( " Inactive Text: " ) ) , TQColor ( ) ] } ,
{ } ) , #ActiveTitle, GradientActiveTitle, InactiveTitle, GradientInactiveTitle, TitleText, InactiveTitleText
{ } ) , #ActiveTitle, GradientActiveTitle, InactiveTitle, GradientInactiveTitle, TitleText, InactiveTitleText
" Application Workspace " :
" Application Workspace " :
( { " AppWorkSpace " : [ unicode ( i18n ( " Background Color: " ) ) , TQColor ( ) ] } ,
( { " AppWorkSpace " : [ str ( i18n ( " Background Color: " ) ) , TQColor ( ) ] } ,
{ } ) , #AppWorkSpace "Background"
{ } ) , #AppWorkSpace "Background"
" Buttons " :
" Buttons " :
( { " ButtonFace " : [ unicode ( i18n ( " Face: " ) ) , TQColor ( ) ] ,
( { " ButtonFace " : [ str ( i18n ( " Face: " ) ) , TQColor ( ) ] ,
" ButtonHilight " : [ unicode ( i18n ( " Hilight: " ) ) , TQColor ( ) ] ,
" ButtonHilight " : [ str ( i18n ( " Hilight: " ) ) , TQColor ( ) ] ,
" ButtonLight " : [ unicode ( i18n ( " Light: " ) ) , TQColor ( ) ] ,
" ButtonLight " : [ str ( i18n ( " Light: " ) ) , TQColor ( ) ] ,
" ButtonShadow " : [ unicode ( i18n ( " Shadow: " ) ) , TQColor ( ) ] ,
" ButtonShadow " : [ str ( i18n ( " Shadow: " ) ) , TQColor ( ) ] ,
" ButtonText " : [ unicode ( i18n ( " Text Color: " ) ) , TQColor ( ) ] ,
" ButtonText " : [ str ( i18n ( " Text Color: " ) ) , TQColor ( ) ] ,
" ButtonAlternateFace " : [ unicode ( i18n ( " Alternate Face: " ) ) , TQColor ( ) ] ,
" ButtonAlternateFace " : [ str ( i18n ( " Alternate Face: " ) ) , TQColor ( ) ] ,
" ButtonDkShadow " : [ unicode ( i18n ( " Dark Shadow: " ) ) , TQColor ( ) ] ,
" ButtonDkShadow " : [ str ( i18n ( " Dark Shadow: " ) ) , TQColor ( ) ] ,
" WindowFrame " : [ unicode ( i18n ( " Frame: " ) ) , TQColor ( ) ] } ,
" WindowFrame " : [ str ( i18n ( " Frame: " ) ) , TQColor ( ) ] } ,
{ } ) , #ButtonFace, ButtonHilight, ButtonLight, ButtonShadow, ButtonText, ButtonAlternateFace, ButtonDkShadow, WindowFrame
{ } ) , #ButtonFace, ButtonHilight, ButtonLight, ButtonShadow, ButtonText, ButtonAlternateFace, ButtonDkShadow, WindowFrame
" Caption Buttons " :
" Caption Buttons " :
( { } ,
( { } ,
{ " CaptionHeight " : [ unicode ( i18n ( " Height: " ) ) , 1 ] ,
{ " CaptionHeight " : [ str ( i18n ( " Height: " ) ) , 1 ] ,
" CaptionWidth " : [ unicode ( i18n ( " Width: " ) ) , 1 ] } ) , #Metrics: CaptionHeight, CaptionWidth
" CaptionWidth " : [ str ( i18n ( " Width: " ) ) , 1 ] } ) , #Metrics: CaptionHeight, CaptionWidth
" Desktop " :
" Desktop " :
( { " Background " : [ unicode ( i18n ( " Background: " ) ) , TQColor ( ) ] } ,
( { " Background " : [ str ( i18n ( " Background: " ) ) , TQColor ( ) ] } ,
{ } ) , #Background
{ } ) , #Background
" Menu " :
" Menu " :
( { " Menu " : [ unicode ( i18n ( " Menu Background: " ) ) , TQColor ( ) ] ,
( { " Menu " : [ str ( i18n ( " Menu Background: " ) ) , TQColor ( ) ] ,
" MenuBar " : [ unicode ( i18n ( " Menu Bar Color: " ) ) , TQColor ( ) ] ,
" MenuBar " : [ str ( i18n ( " Menu Bar Color: " ) ) , TQColor ( ) ] ,
" MenuHilight " : [ unicode ( i18n ( " Menu Hilight: " ) ) , TQColor ( ) ] ,
" MenuHilight " : [ str ( i18n ( " Menu Hilight: " ) ) , TQColor ( ) ] ,
" MenuText " : [ unicode ( i18n ( " Text Color: " ) ) , TQColor ( ) ] } ,
" MenuText " : [ str ( i18n ( " Text Color: " ) ) , TQColor ( ) ] } ,
{ " MenuHeight " : [ unicode ( i18n ( " Menu Bar Height: " ) ) , 1 ] } ) , #Menu (Background), MenuBar, MenuHilight, MenuText, metrics: MenuHeight, MenuWidth (does nothing)
{ " MenuHeight " : [ str ( i18n ( " Menu Bar Height: " ) ) , 1 ] } ) , #Menu (Background), MenuBar, MenuHilight, MenuText, metrics: MenuHeight, MenuWidth (does nothing)
" Scrollbar " :
" Scrollbar " :
( { " Scrollbar " : [ unicode ( i18n ( " Color: " ) ) , TQColor ( ) ] } ,
( { " Scrollbar " : [ str ( i18n ( " Color: " ) ) , TQColor ( ) ] } ,
{ " ScrollWidth " : [ unicode ( i18n ( " Width: " ) ) , 1 ] } ) , #Scrollbar, metrics: ScrollHeight (does nothing), ScrollWidth
{ " ScrollWidth " : [ str ( i18n ( " Width: " ) ) , 1 ] } ) , #Scrollbar, metrics: ScrollHeight (does nothing), ScrollWidth
" Window " :
" Window " :
( { " Window " : [ unicode ( i18n ( " Background: " ) ) , TQColor ( ) ] ,
( { " Window " : [ str ( i18n ( " Background: " ) ) , TQColor ( ) ] ,
" WindowText " : [ unicode ( i18n ( " Text Color: " ) ) , TQColor ( ) ] } ,
" WindowText " : [ str ( i18n ( " Text Color: " ) ) , TQColor ( ) ] } ,
{ } ) , #Window "Background", WindowText
{ } ) , #Window "Background", WindowText
" Selected Items " :
" Selected Items " :
( { " Hilight " : [ unicode ( i18n ( " Hilight Color: " ) ) , TQColor ( ) ] ,
( { " Hilight " : [ str ( i18n ( " Hilight Color: " ) ) , TQColor ( ) ] ,
" HilightText " : [ unicode ( i18n ( " Text Color: " ) ) , TQColor ( ) ] } ,
" HilightText " : [ str ( i18n ( " Text Color: " ) ) , TQColor ( ) ] } ,
{ } ) } #Hilight, HilightText
{ } ) } #Hilight, HilightText
def __init__ ( self , parent = None , name = None , modal = 0 , fl = 0 ) :
def __init__ ( self , parent = None , name = None , modal = 0 , fl = 0 ) :
@ -1833,8 +1833,8 @@ class AppearancePage(TQWidget):
changed = False
changed = False
custom = False # For a little efficiency
custom = False # For a little efficiency
for item in self . customizableitems . keys ( ) :
for item in list ( self . customizableitems . keys ( ) ) :
for key in self . customizableitems [ item ] [ 0 ] . keys ( ) :
for key in list ( self . customizableitems [ item ] [ 0 ] . keys ( ) ) :
color = colors . get ( key , " 0 0 0 " )
color = colors . get ( key , " 0 0 0 " )
color = color . split ( )
color = color . split ( )
color = TQColor ( int ( color [ 0 ] ) , int ( color [ 1 ] ) , int ( color [ 2 ] ) )
color = TQColor ( int ( color [ 0 ] ) , int ( color [ 1 ] ) , int ( color [ 2 ] ) )
@ -1847,7 +1847,7 @@ class AppearancePage(TQWidget):
return True
return True
else :
else :
changed = True
changed = True
for key in self . customizableitems [ item ] [ 1 ] . keys ( ) :
for key in list ( self . customizableitems [ item ] [ 1 ] . keys ( ) ) :
size = int ( metrics . get ( key , 1 ) )
size = int ( metrics . get ( key , 1 ) )
if not custom and self . customizableitems [ item ] [ 1 ] [ key ] [ 1 ] != \
if not custom and self . customizableitems [ item ] [ 1 ] [ key ] [ 1 ] != \
self . config . readNumEntry ( key , 1 ) :
self . config . readNumEntry ( key , 1 ) :
@ -1863,11 +1863,11 @@ class AppearancePage(TQWidget):
def reset ( self ) :
def reset ( self ) :
self . fillItemCombo ( self . itemcombo )
self . fillItemCombo ( self . itemcombo )
self . config . setGroup ( " " )
self . config . setGroup ( " " )
self . currentcustomcolorscheme = unicode ( self . config . readEntry ( " ColorScheme " , i18n ( " Custom " ) ) )
self . currentcustomcolorscheme = str ( self . config . readEntry ( " ColorScheme " , i18n ( " Custom " ) ) )
self . originalcustomcolorscheme = self . currentcustomcolorscheme
self . originalcustomcolorscheme = self . currentcustomcolorscheme
schemeslist = self . config . readListEntry ( " ColorSchemes " )
schemeslist = self . config . readListEntry ( " ColorSchemes " )
self . colorschemes = [ unicode ( i18n ( " Custom " ) ) ,
self . colorschemes = [ str ( i18n ( " Custom " ) ) ,
unicode ( i18n ( " Get KDE Colors " ) ) ] + list ( schemeslist )
str ( i18n ( " Get KDE Colors " ) ) ] + list ( schemeslist )
self . config . setGroup ( self . currentcustomcolorscheme )
self . config . setGroup ( self . currentcustomcolorscheme )
for preset in self . presets :
for preset in self . presets :
@ -1912,15 +1912,15 @@ class AppearancePage(TQWidget):
colors = wineread . GetColorSettings ( )
colors = wineread . GetColorSettings ( )
metrics = wineread . GetWindowMetrics ( )
metrics = wineread . GetWindowMetrics ( )
for item in self . customizableitems . keys ( ) :
for item in list ( self . customizableitems . keys ( ) ) :
for key in self . customizableitems [ item ] [ 0 ] . keys ( ) :
for key in list ( self . customizableitems [ item ] [ 0 ] . keys ( ) ) :
color = colors . get ( key , " 0 0 0 " )
color = colors . get ( key , " 0 0 0 " )
color = color . split ( )
color = color . split ( )
color = TQColor ( int ( color [ 0 ] ) , int ( color [ 1 ] ) , int ( color [ 2 ] ) )
color = TQColor ( int ( color [ 0 ] ) , int ( color [ 1 ] ) , int ( color [ 2 ] ) )
if color != self . config . readColorEntry ( key , TQColor ( 0 , 0 , 0 ) ) :
if color != self . config . readColorEntry ( key , TQColor ( 0 , 0 , 0 ) ) :
self . currentcustomcolorscheme = self . colorschemes [ 0 ]
self . currentcustomcolorscheme = self . colorschemes [ 0 ]
self . customizableitems [ item ] [ 0 ] [ key ] [ 1 ] = color
self . customizableitems [ item ] [ 0 ] [ key ] [ 1 ] = color
for key in self . customizableitems [ item ] [ 1 ] . keys ( ) :
for key in list ( self . customizableitems [ item ] [ 1 ] . keys ( ) ) :
size = int ( metrics . get ( key , 1 ) )
size = int ( metrics . get ( key , 1 ) )
if size != self . config . readNumEntry ( key , 1 ) :
if size != self . config . readNumEntry ( key , 1 ) :
self . currentcustomcolorscheme = self . colorschemes [ 0 ]
self . currentcustomcolorscheme = self . colorschemes [ 0 ]
@ -1944,13 +1944,13 @@ class AppearancePage(TQWidget):
colorsettings = { }
colorsettings = { }
metricssettings = { }
metricssettings = { }
for item in self . customizableitems . keys ( ) :
for item in list ( self . customizableitems . keys ( ) ) :
for key in self . customizableitems [ item ] [ 0 ] . keys ( ) :
for key in list ( self . customizableitems [ item ] [ 0 ] . keys ( ) ) :
color = self . customizableitems [ item ] [ 0 ] [ key ] [ 1 ]
color = self . customizableitems [ item ] [ 0 ] [ key ] [ 1 ]
color = str ( color . red ( ) ) + " " + str ( color . green ( ) ) + \
color = str ( color . red ( ) ) + " " + str ( color . green ( ) ) + \
" " + str ( color . blue ( ) )
" " + str ( color . blue ( ) )
colorsettings [ key ] = color
colorsettings [ key ] = color
for key in self . customizableitems [ item ] [ 1 ] . keys ( ) :
for key in list ( self . customizableitems [ item ] [ 1 ] . keys ( ) ) :
size = self . customizableitems [ item ] [ 1 ] [ key ] [ 1 ]
size = self . customizableitems [ item ] [ 1 ] [ key ] [ 1 ]
metricssettings [ key ] = str ( size )
metricssettings [ key ] = str ( size )
@ -2006,13 +2006,13 @@ class AppearancePage(TQWidget):
"""
"""
combo = self . itemcombo
combo = self . itemcombo
combo . clear ( )
combo . clear ( )
items = self . customizableitems . keys ( )
items = list ( self . customizableitems . keys ( ) )
items . sort ( )
items . sort ( )
for item in items :
for item in items :
if not ( allowwm and ( item == " Window Border " \
if not ( allowwm and ( item == " Window Border " \
or item == " Title Bar " or \
or item == " Title Bar " or \
item == " Caption Buttons " ) ) :
item == " Caption Buttons " ) ) :
combo . insertItem ( unicode ( i18n ( item ) ) )
combo . insertItem ( str ( i18n ( item ) ) )
def slotFillItemComboDesktop ( self , desktop ) :
def slotFillItemComboDesktop ( self , desktop ) :
"""
"""
@ -2026,14 +2026,14 @@ class AppearancePage(TQWidget):
if not combo :
if not combo :
combo = self . itemcombo
combo = self . itemcombo
combo . clear ( )
combo . clear ( )
items = self . customizableitems . keys ( )
items = list ( self . customizableitems . keys ( ) )
items . sort ( )
items . sort ( )
self . currentitems = [ ]
self . currentitems = [ ]
for item in items :
for item in items :
if not ( currentallowwm == ' Y ' and ( item == " Window Border " \
if not ( currentallowwm == ' Y ' and ( item == " Window Border " \
or item == " Title Bar " or \
or item == " Title Bar " or \
item == " Caption Buttons " ) ) :
item == " Caption Buttons " ) ) :
combo . insertItem ( unicode ( i18n ( item ) ) )
combo . insertItem ( str ( i18n ( item ) ) )
self . currentitems . append ( item )
self . currentitems . append ( item )
def slotThemeActivated ( self , themeid ) :
def slotThemeActivated ( self , themeid ) :
@ -2043,7 +2043,7 @@ class AppearancePage(TQWidget):
def slotInstallThemeClicked ( self ) :
def slotInstallThemeClicked ( self ) :
""" Opens up a dialog to install a new theme """
""" Opens up a dialog to install a new theme """
themepath = unicode ( KFileDialog . getOpenFileName ( os . environ [ ' HOME ' ] , \
themepath = str ( KFileDialog . getOpenFileName ( os . environ [ ' HOME ' ] , \
" *.msstyles| " + str ( i18n ( " Windows Styles (*.msstyles) " ) ) , self , i18n ( " Install Style " ) ) )
" *.msstyles| " + str ( i18n ( " Windows Styles (*.msstyles) " ) ) , self , i18n ( " Install Style " ) ) )
if themepath :
if themepath :
themename = themepath . split ( ' / ' )
themename = themepath . split ( ' / ' )
@ -2102,10 +2102,10 @@ class AppearancePage(TQWidget):
schemeslist . append ( name )
schemeslist . append ( name )
self . config . writeEntry ( " ColorSchemes " , schemeslist )
self . config . writeEntry ( " ColorSchemes " , schemeslist )
self . config . setGroup ( name )
self . config . setGroup ( name )
for item in self . customizableitems . keys ( ) :
for item in list ( self . customizableitems . keys ( ) ) :
for key in schemesettings [ item ] [ 0 ] . keys ( ) :
for key in list ( schemesettings [ item ] [ 0 ] . keys ( ) ) :
self . config . writeEntry ( key , schemesettings [ item ] [ 0 ] [ key ] [ 1 ] )
self . config . writeEntry ( key , schemesettings [ item ] [ 0 ] [ key ] [ 1 ] )
for key in schemesettings [ item ] [ 1 ] . keys ( ) :
for key in list ( schemesettings [ item ] [ 1 ] . keys ( ) ) :
self . config . writeEntry ( key , schemesettings [ item ] [ 1 ] [ key ] [ 1 ] )
self . config . writeEntry ( key , schemesettings [ item ] [ 1 ] [ key ] [ 1 ] )
self . config . sync ( )
self . config . sync ( )
@ -2188,7 +2188,7 @@ class AppearancePage(TQWidget):
def slotItemActivated ( self , itemid ) :
def slotItemActivated ( self , itemid ) :
""" Picks an item to customize """
""" Picks an item to customize """
items = self . customizableitems . keys ( )
items = list ( self . customizableitems . keys ( ) )
items . sort ( )
items . sort ( )
for i , item in enumerate ( self . currentitems ) :
for i , item in enumerate ( self . currentitems ) :
if i == itemid :
if i == itemid :
@ -2228,11 +2228,11 @@ class AppearancePage(TQWidget):
self . config . setGroup ( " " )
self . config . setGroup ( " " )
self . config . writeEntry ( " ColorScheme " , self . colorschemes [ colorid ] )
self . config . writeEntry ( " ColorScheme " , self . colorschemes [ colorid ] )
self . config . setGroup ( self . colorschemes [ colorid ] )
self . config . setGroup ( self . colorschemes [ colorid ] )
for item in self . customizableitems . keys ( ) :
for item in list ( self . customizableitems . keys ( ) ) :
for key in self . customizableitems [ item ] [ 0 ] . keys ( ) :
for key in list ( self . customizableitems [ item ] [ 0 ] . keys ( ) ) :
color = self . config . readColorEntry ( key , TQColor ( 0 , 0 , 0 ) )
color = self . config . readColorEntry ( key , TQColor ( 0 , 0 , 0 ) )
self . customizableitems [ item ] [ 0 ] [ key ] [ 1 ] = color
self . customizableitems [ item ] [ 0 ] [ key ] [ 1 ] = color
for key in self . customizableitems [ item ] [ 1 ] . keys ( ) :
for key in list ( self . customizableitems [ item ] [ 1 ] . keys ( ) ) :
size = self . config . readNumEntry ( key , 1 )
size = self . config . readNumEntry ( key , 1 )
self . customizableitems [ item ] [ 1 ] [ key ] [ 1 ] = size
self . customizableitems [ item ] [ 1 ] [ key ] [ 1 ] = size
elif colorid == 1 :
elif colorid == 1 :
@ -2733,106 +2733,106 @@ class AppearancePage(TQWidget):
self . top_layout . setSpacing ( spacing )
self . top_layout . setSpacing ( spacing )
# --- Some default color schemes, with names ---
# --- Some default color schemes, with names ---
preset1 = ( unicode ( i18n ( " Purple " ) ) ,
preset1 = ( str ( i18n ( " Purple " ) ) ,
{ " Window Border " :
{ " Window Border " :
( { " ActiveBorder " : [ unicode ( i18n ( " Active Color: " ) ) , TQColor ( 239 , 239 , 239 ) ] ,
( { " ActiveBorder " : [ str ( i18n ( " Active Color: " ) ) , TQColor ( 239 , 239 , 239 ) ] ,
" InactiveBorder " : [ unicode ( i18n ( " Inactive Color: " ) ) , TQColor ( 239 , 239 , 239 ) ] } ,
" InactiveBorder " : [ str ( i18n ( " Inactive Color: " ) ) , TQColor ( 239 , 239 , 239 ) ] } ,
{ " BorderWidth " : [ unicode ( i18n ( " Width: " ) ) , 1 ] } ) , #ActiveBorder, InactiveBorder, metrics: BorderWidth
{ " BorderWidth " : [ str ( i18n ( " Width: " ) ) , 1 ] } ) , #ActiveBorder, InactiveBorder, metrics: BorderWidth
" Title Bar " :
" Title Bar " :
( { " ActiveTitle " : [ unicode ( i18n ( " Active Color: " ) ) , TQColor ( 91 , 86 , 168 ) ] ,
( { " ActiveTitle " : [ str ( i18n ( " Active Color: " ) ) , TQColor ( 91 , 86 , 168 ) ] ,
" GradientActiveTitle " : [ unicode ( i18n ( " Gradient: " ) ) , TQColor ( 136 , 118 , 202 ) ] ,
" GradientActiveTitle " : [ str ( i18n ( " Gradient: " ) ) , TQColor ( 136 , 118 , 202 ) ] ,
" InactiveTitle " : [ unicode ( i18n ( " Inactive Color: " ) ) , TQColor ( 223 , 225 , 230 ) ] ,
" InactiveTitle " : [ str ( i18n ( " Inactive Color: " ) ) , TQColor ( 223 , 225 , 230 ) ] ,
" GradientInactiveTitle " : [ unicode ( i18n ( " Gradient: " ) ) , TQColor ( 157 , 170 , 186 ) ] ,
" GradientInactiveTitle " : [ str ( i18n ( " Gradient: " ) ) , TQColor ( 157 , 170 , 186 ) ] ,
" TitleText " : [ unicode ( i18n ( " Active Text: " ) ) , TQColor ( 255 , 255 , 255 ) ] ,
" TitleText " : [ str ( i18n ( " Active Text: " ) ) , TQColor ( 255 , 255 , 255 ) ] ,
" InactiveTitleText " : [ unicode ( i18n ( " Inactive Text: " ) ) , TQColor ( 168 , 168 , 168 ) ] } ,
" InactiveTitleText " : [ str ( i18n ( " Inactive Text: " ) ) , TQColor ( 168 , 168 , 168 ) ] } ,
{ } ) , #ActiveTitle, GradientActiveTitle, InactiveTitle, GradientInactiveTitle, TitleText, InactiveTitleText
{ } ) , #ActiveTitle, GradientActiveTitle, InactiveTitle, GradientInactiveTitle, TitleText, InactiveTitleText
" Application Workspace " :
" Application Workspace " :
( { " AppWorkSpace " : [ unicode ( i18n ( " Background Color: " ) ) , TQColor ( 90 , 90 , 90 ) ] } ,
( { " AppWorkSpace " : [ str ( i18n ( " Background Color: " ) ) , TQColor ( 90 , 90 , 90 ) ] } ,
{ } ) , #AppWorkSpace "Background"
{ } ) , #AppWorkSpace "Background"
" Buttons " :
" Buttons " :
( { " ButtonFace " : [ unicode ( i18n ( " Face: " ) ) , TQColor ( 238 , 239 , 242 ) ] ,
( { " ButtonFace " : [ str ( i18n ( " Face: " ) ) , TQColor ( 238 , 239 , 242 ) ] ,
" ButtonHilight " : [ unicode ( i18n ( " Hilight: " ) ) , TQColor ( 255 , 255 , 255 ) ] ,
" ButtonHilight " : [ str ( i18n ( " Hilight: " ) ) , TQColor ( 255 , 255 , 255 ) ] ,
" ButtonLight " : [ unicode ( i18n ( " Light: " ) ) , TQColor ( 201 , 199 , 255 ) ] ,
" ButtonLight " : [ str ( i18n ( " Light: " ) ) , TQColor ( 201 , 199 , 255 ) ] ,
" ButtonShadow " : [ unicode ( i18n ( " Shadow: " ) ) , TQColor ( 132 , 132 , 134 ) ] ,
" ButtonShadow " : [ str ( i18n ( " Shadow: " ) ) , TQColor ( 132 , 132 , 134 ) ] ,
" ButtonText " : [ unicode ( i18n ( " Text Color: " ) ) , TQColor ( 0 , 0 , 0 ) ] ,
" ButtonText " : [ str ( i18n ( " Text Color: " ) ) , TQColor ( 0 , 0 , 0 ) ] ,
" ButtonAlternateFace " : [ unicode ( i18n ( " Alternate Face: " ) ) , TQColor ( 238 , 239 , 242 ) ] ,
" ButtonAlternateFace " : [ str ( i18n ( " Alternate Face: " ) ) , TQColor ( 238 , 239 , 242 ) ] ,
" ButtonDkShadow " : [ unicode ( i18n ( " Dark Shadow: " ) ) , TQColor ( 98 , 96 , 143 ) ] ,
" ButtonDkShadow " : [ str ( i18n ( " Dark Shadow: " ) ) , TQColor ( 98 , 96 , 143 ) ] ,
" WindowFrame " : [ unicode ( i18n ( " Frame: " ) ) , TQColor ( 144 , 140 , 209 ) ] } ,
" WindowFrame " : [ str ( i18n ( " Frame: " ) ) , TQColor ( 144 , 140 , 209 ) ] } ,
{ } ) , #ButtonFace, ButtonHilight, ButtonLight, ButtonShadow, ButtonText, ButtonAlternateFace, ButtonDkShadow, WindowFrame
{ } ) , #ButtonFace, ButtonHilight, ButtonLight, ButtonShadow, ButtonText, ButtonAlternateFace, ButtonDkShadow, WindowFrame
" Caption Buttons " :
" Caption Buttons " :
( { } ,
( { } ,
{ " CaptionHeight " : [ unicode ( i18n ( " Height: " ) ) , 22 ] ,
{ " CaptionHeight " : [ str ( i18n ( " Height: " ) ) , 22 ] ,
" CaptionWidth " : [ unicode ( i18n ( " Width: " ) ) , 22 ] } ) , #Metrics: CaptionHeight, CaptionWidth
" CaptionWidth " : [ str ( i18n ( " Width: " ) ) , 22 ] } ) , #Metrics: CaptionHeight, CaptionWidth
" Desktop " :
" Desktop " :
( { " Background " : [ unicode ( i18n ( " Background: " ) ) , TQColor ( 146 , 127 , 188 ) ] } ,
( { " Background " : [ str ( i18n ( " Background: " ) ) , TQColor ( 146 , 127 , 188 ) ] } ,
{ } ) , #Background
{ } ) , #Background
" Menu " :
" Menu " :
( { " Menu " : [ unicode ( i18n ( " Menu Background: " ) ) , TQColor ( 250 , 251 , 254 ) ] ,
( { " Menu " : [ str ( i18n ( " Menu Background: " ) ) , TQColor ( 250 , 251 , 254 ) ] ,
" MenuBar " : [ unicode ( i18n ( " Menu Bar Color: " ) ) , TQColor ( 238 , 239 , 242 ) ] ,
" MenuBar " : [ str ( i18n ( " Menu Bar Color: " ) ) , TQColor ( 238 , 239 , 242 ) ] ,
" MenuHilight " : [ unicode ( i18n ( " Menu Hilight: " ) ) , TQColor ( 144 , 140 , 209 ) ] ,
" MenuHilight " : [ str ( i18n ( " Menu Hilight: " ) ) , TQColor ( 144 , 140 , 209 ) ] ,
" MenuText " : [ unicode ( i18n ( " Text Color: " ) ) , TQColor ( 0 , 0 , 0 ) ] } ,
" MenuText " : [ str ( i18n ( " Text Color: " ) ) , TQColor ( 0 , 0 , 0 ) ] } ,
{ " MenuHeight " : [ unicode ( i18n ( " Menu Bar Height: " ) ) , 22 ] } ) , #Menu (Background), MenuBar, MenuHilight, MenuText, metrics: MenuHeight, MenuWidth (does nothing)
{ " MenuHeight " : [ str ( i18n ( " Menu Bar Height: " ) ) , 22 ] } ) , #Menu (Background), MenuBar, MenuHilight, MenuText, metrics: MenuHeight, MenuWidth (does nothing)
" Scrollbar " :
" Scrollbar " :
( { " Scrollbar " : [ unicode ( i18n ( " Color: " ) ) , TQColor ( 238 , 239 , 242 ) ] } ,
( { " Scrollbar " : [ str ( i18n ( " Color: " ) ) , TQColor ( 238 , 239 , 242 ) ] } ,
{ " ScrollWidth " : [ unicode ( i18n ( " Width: " ) ) , 16 ] } ) , #Scrollbar, metrics: ScrollHeight (does nothing), ScrollWidth
{ " ScrollWidth " : [ str ( i18n ( " Width: " ) ) , 16 ] } ) , #Scrollbar, metrics: ScrollHeight (does nothing), ScrollWidth
" Window " :
" Window " :
( { " Window " : [ unicode ( i18n ( " Background: " ) ) , TQColor ( 255 , 255 , 255 ) ] ,
( { " Window " : [ str ( i18n ( " Background: " ) ) , TQColor ( 255 , 255 , 255 ) ] ,
" WindowText " : [ unicode ( i18n ( " Text Color: " ) ) , TQColor ( 0 , 0 , 0 ) ] } ,
" WindowText " : [ str ( i18n ( " Text Color: " ) ) , TQColor ( 0 , 0 , 0 ) ] } ,
{ } ) , #Window "Background", WindowText
{ } ) , #Window "Background", WindowText
" Selected Items " :
" Selected Items " :
( { " Hilight " : [ unicode ( i18n ( " Hilight Color: " ) ) , TQColor ( 144 , 140 , 209 ) ] ,
( { " Hilight " : [ str ( i18n ( " Hilight Color: " ) ) , TQColor ( 144 , 140 , 209 ) ] ,
" HilightText " : [ unicode ( i18n ( " Text Color: " ) ) , TQColor ( 255 , 255 , 255 ) ] } ,
" HilightText " : [ str ( i18n ( " Text Color: " ) ) , TQColor ( 255 , 255 , 255 ) ] } ,
{ } ) } ) #Hilight, HilightText
{ } ) } ) #Hilight, HilightText
preset2 = ( unicode ( i18n ( " Blue " ) ) ,
preset2 = ( str ( i18n ( " Blue " ) ) ,
{ " Window Border " :
{ " Window Border " :
( { " ActiveBorder " : [ unicode ( i18n ( " Active Color: " ) ) , TQColor ( 239 , 239 , 239 ) ] ,
( { " ActiveBorder " : [ str ( i18n ( " Active Color: " ) ) , TQColor ( 239 , 239 , 239 ) ] ,
" InactiveBorder " : [ unicode ( i18n ( " Inactive Color: " ) ) , TQColor ( 239 , 239 , 239 ) ] } ,
" InactiveBorder " : [ str ( i18n ( " Inactive Color: " ) ) , TQColor ( 239 , 239 , 239 ) ] } ,
{ " BorderWidth " : [ unicode ( i18n ( " Width: " ) ) , 1 ] } ) , #ActiveBorder, InactiveBorder, metrics: BorderWidth
{ " BorderWidth " : [ str ( i18n ( " Width: " ) ) , 1 ] } ) , #ActiveBorder, InactiveBorder, metrics: BorderWidth
" Title Bar " :
" Title Bar " :
( { " ActiveTitle " : [ unicode ( i18n ( " Active Color: " ) ) , TQColor ( 0 , 113 , 201 ) ] ,
( { " ActiveTitle " : [ str ( i18n ( " Active Color: " ) ) , TQColor ( 0 , 113 , 201 ) ] ,
" GradientActiveTitle " : [ unicode ( i18n ( " Gradient: " ) ) , TQColor ( 87 , 161 , 219 ) ] ,
" GradientActiveTitle " : [ str ( i18n ( " Gradient: " ) ) , TQColor ( 87 , 161 , 219 ) ] ,
" InactiveTitle " : [ unicode ( i18n ( " Inactive Color: " ) ) , TQColor ( 191 , 191 , 191 ) ] ,
" InactiveTitle " : [ str ( i18n ( " Inactive Color: " ) ) , TQColor ( 191 , 191 , 191 ) ] ,
" GradientInactiveTitle " : [ unicode ( i18n ( " Gradient: " ) ) , TQColor ( 171 , 171 , 171 ) ] ,
" GradientInactiveTitle " : [ str ( i18n ( " Gradient: " ) ) , TQColor ( 171 , 171 , 171 ) ] ,
" TitleText " : [ unicode ( i18n ( " Active Text: " ) ) , TQColor ( 255 , 255 , 255 ) ] ,
" TitleText " : [ str ( i18n ( " Active Text: " ) ) , TQColor ( 255 , 255 , 255 ) ] ,
" InactiveTitleText " : [ unicode ( i18n ( " Inactive Text: " ) ) , TQColor ( 95 , 95 , 95 ) ] } ,
" InactiveTitleText " : [ str ( i18n ( " Inactive Text: " ) ) , TQColor ( 95 , 95 , 95 ) ] } ,
{ } ) , #ActiveTitle, GradientActiveTitle, InactiveTitle, GradientInactiveTitle, TitleText, InactiveTitleText
{ } ) , #ActiveTitle, GradientActiveTitle, InactiveTitle, GradientInactiveTitle, TitleText, InactiveTitleText
" Application Workspace " :
" Application Workspace " :
( { " AppWorkSpace " : [ unicode ( i18n ( " Background Color: " ) ) , TQColor ( 90 , 90 , 90 ) ] } ,
( { " AppWorkSpace " : [ str ( i18n ( " Background Color: " ) ) , TQColor ( 90 , 90 , 90 ) ] } ,
{ } ) , #AppWorkSpace "Background"
{ } ) , #AppWorkSpace "Background"
" Buttons " :
" Buttons " :
( { " ButtonFace " : [ unicode ( i18n ( " Face: " ) ) , TQColor ( 239 , 239 , 239 ) ] ,
( { " ButtonFace " : [ str ( i18n ( " Face: " ) ) , TQColor ( 239 , 239 , 239 ) ] ,
" ButtonHilight " : [ unicode ( i18n ( " Hilight: " ) ) , TQColor ( 246 , 246 , 246 ) ] ,
" ButtonHilight " : [ str ( i18n ( " Hilight: " ) ) , TQColor ( 246 , 246 , 246 ) ] ,
" ButtonLight " : [ unicode ( i18n ( " Light: " ) ) , TQColor ( 191 , 207 , 251 ) ] ,
" ButtonLight " : [ str ( i18n ( " Light: " ) ) , TQColor ( 191 , 207 , 251 ) ] ,
" ButtonShadow " : [ unicode ( i18n ( " Shadow: " ) ) , TQColor ( 148 , 148 , 153 ) ] ,
" ButtonShadow " : [ str ( i18n ( " Shadow: " ) ) , TQColor ( 148 , 148 , 153 ) ] ,
" ButtonText " : [ unicode ( i18n ( " Text Color: " ) ) , TQColor ( 0 , 0 , 0 ) ] ,
" ButtonText " : [ str ( i18n ( " Text Color: " ) ) , TQColor ( 0 , 0 , 0 ) ] ,
" ButtonAlternateFace " : [ unicode ( i18n ( " Alternate Face: " ) ) , TQColor ( 238 , 239 , 242 ) ] ,
" ButtonAlternateFace " : [ str ( i18n ( " Alternate Face: " ) ) , TQColor ( 238 , 239 , 242 ) ] ,
" ButtonDkShadow " : [ unicode ( i18n ( " Dark Shadow: " ) ) , TQColor ( 50 , 101 , 146 ) ] ,
" ButtonDkShadow " : [ str ( i18n ( " Dark Shadow: " ) ) , TQColor ( 50 , 101 , 146 ) ] ,
" WindowFrame " : [ unicode ( i18n ( " Frame: " ) ) , TQColor ( 74 , 149 , 214 ) ] } ,
" WindowFrame " : [ str ( i18n ( " Frame: " ) ) , TQColor ( 74 , 149 , 214 ) ] } ,
{ } ) , #ButtonFace, ButtonHilight, ButtonLight, ButtonShadow, ButtonText, ButtonAlternateFace, ButtonDkShadow, WindowFrame
{ } ) , #ButtonFace, ButtonHilight, ButtonLight, ButtonShadow, ButtonText, ButtonAlternateFace, ButtonDkShadow, WindowFrame
" Caption Buttons " :
" Caption Buttons " :
( { } ,
( { } ,
{ " CaptionHeight " : [ unicode ( i18n ( " Height: " ) ) , 22 ] ,
{ " CaptionHeight " : [ str ( i18n ( " Height: " ) ) , 22 ] ,
" CaptionWidth " : [ unicode ( i18n ( " Width: " ) ) , 22 ] } ) , #Metrics: CaptionHeight, CaptionWidth
" CaptionWidth " : [ str ( i18n ( " Width: " ) ) , 22 ] } ) , #Metrics: CaptionHeight, CaptionWidth
" Desktop " :
" Desktop " :
( { " Background " : [ unicode ( i18n ( " Background: " ) ) , TQColor ( 44 , 109 , 189 ) ] } ,
( { " Background " : [ str ( i18n ( " Background: " ) ) , TQColor ( 44 , 109 , 189 ) ] } ,
{ } ) , #Background
{ } ) , #Background
" Menu " :
" Menu " :
( { " Menu " : [ unicode ( i18n ( " Menu Background: " ) ) , TQColor ( 249 , 249 , 249 ) ] ,
( { " Menu " : [ str ( i18n ( " Menu Background: " ) ) , TQColor ( 249 , 249 , 249 ) ] ,
" MenuBar " : [ unicode ( i18n ( " Menu Bar Color: " ) ) , TQColor ( 239 , 239 , 239 ) ] ,
" MenuBar " : [ str ( i18n ( " Menu Bar Color: " ) ) , TQColor ( 239 , 239 , 239 ) ] ,
" MenuHilight " : [ unicode ( i18n ( " Menu Hilight: " ) ) , TQColor ( 74 , 149 , 214 ) ] ,
" MenuHilight " : [ str ( i18n ( " Menu Hilight: " ) ) , TQColor ( 74 , 149 , 214 ) ] ,
" MenuText " : [ unicode ( i18n ( " Text Color: " ) ) , TQColor ( 0 , 0 , 0 ) ] } ,
" MenuText " : [ str ( i18n ( " Text Color: " ) ) , TQColor ( 0 , 0 , 0 ) ] } ,
{ " MenuHeight " : [ unicode ( i18n ( " Menu Bar Height: " ) ) , 22 ] } ) , #Menu (Background), MenuBar, MenuHilight, MenuText, metrics: MenuHeight, MenuWidth (does nothing)
{ " MenuHeight " : [ str ( i18n ( " Menu Bar Height: " ) ) , 22 ] } ) , #Menu (Background), MenuBar, MenuHilight, MenuText, metrics: MenuHeight, MenuWidth (does nothing)
" Scrollbar " :
" Scrollbar " :
( { " Scrollbar " : [ unicode ( i18n ( " Color: " ) ) , TQColor ( 230 , 230 , 230 ) ] } ,
( { " Scrollbar " : [ str ( i18n ( " Color: " ) ) , TQColor ( 230 , 230 , 230 ) ] } ,
{ " ScrollWidth " : [ unicode ( i18n ( " Width: " ) ) , 16 ] } ) , #Scrollbar, metrics: ScrollHeight (does nothing), ScrollWidth
{ " ScrollWidth " : [ str ( i18n ( " Width: " ) ) , 16 ] } ) , #Scrollbar, metrics: ScrollHeight (does nothing), ScrollWidth
" Window " :
" Window " :
( { " Window " : [ unicode ( i18n ( " Background: " ) ) , TQColor ( 255 , 255 , 255 ) ] ,
( { " Window " : [ str ( i18n ( " Background: " ) ) , TQColor ( 255 , 255 , 255 ) ] ,
" WindowText " : [ unicode ( i18n ( " Text Color: " ) ) , TQColor ( 0 , 0 , 0 ) ] } ,
" WindowText " : [ str ( i18n ( " Text Color: " ) ) , TQColor ( 0 , 0 , 0 ) ] } ,
{ } ) , #Window "Background", WindowText
{ } ) , #Window "Background", WindowText
" Selected Items " :
" Selected Items " :
( { " Hilight " : [ unicode ( i18n ( " Hilight Color: " ) ) , TQColor ( 74 , 149 , 214 ) ] ,
( { " Hilight " : [ str ( i18n ( " Hilight Color: " ) ) , TQColor ( 74 , 149 , 214 ) ] ,
" HilightText " : [ unicode ( i18n ( " Text Color: " ) ) , TQColor ( 255 , 255 , 255 ) ] } ,
" HilightText " : [ str ( i18n ( " Text Color: " ) ) , TQColor ( 255 , 255 , 255 ) ] } ,
{ } ) } ) #Hilight, HilightText
{ } ) } ) #Hilight, HilightText
presets = [ preset1 , preset2 ]
presets = [ preset1 , preset2 ]
@ -2877,7 +2877,7 @@ class GeneralPage(TQWidget):
" applications.</p> " ) )
" applications.</p> " ) )
appwarning . setFrameStyle ( TQFrame . Box | TQFrame . Raised )
appwarning . setFrameStyle ( TQFrame . Box | TQFrame . Raised )
self . winversions = self . winversions + ( ( " global " , \
self . winversions = self . winversions + ( ( " global " , \
unicode ( i18n ( " Use Global Setting " ) ) , 0 , 0 , 0 , " " , " " , 0 , 0 , " " ) , )
str ( i18n ( " Use Global Setting " ) ) , 0 , 0 , 0 , " " , " " , 0 , 0 , " " ) , )
self . verdic [ " global " ] = 11
self . verdic [ " global " ] = 11
hbox = TQHBox ( vbox )
hbox = TQHBox ( vbox )
@ -3150,13 +3150,13 @@ class ApplicationsPage(TQWidget):
else :
else :
mailertr = str ( i18n ( " KDE (Native) " ) )
mailertr = str ( i18n ( " KDE (Native) " ) )
else :
else :
mailertr = mailer . capitalize ( ) + unicode ( i18n ( " (Native) " ) )
mailertr = mailer . capitalize ( ) + str ( i18n ( " (Native) " ) )
mailers . append ( ( mailer , mailertr ) )
mailers . append ( ( mailer , mailertr ) )
for mailer in wine :
for mailer in wine :
if mailer and mailer [ 1 ] == ' : ' :
if mailer and mailer [ 1 ] == ' : ' :
mailer = mailer . lower ( )
mailer = mailer . lower ( )
mailertr = mailer [ mailer . rfind ( ' \\ \\ ' ) + 2 : mailer . rfind ( ' .exe ' ) ]
mailertr = mailer [ mailer . rfind ( ' \\ \\ ' ) + 2 : mailer . rfind ( ' .exe ' ) ]
mailertr = mailertr . capitalize ( ) + unicode ( i18n ( " (Windows, set by application) " ) )
mailertr = mailertr . capitalize ( ) + str ( i18n ( " (Windows, set by application) " ) )
else : # winebrowser
else : # winebrowser
continue
continue
mailers . append ( ( mailer , mailertr ) )
mailers . append ( ( mailer , mailertr ) )
@ -3176,7 +3176,7 @@ class ApplicationsPage(TQWidget):
"""
"""
app = KFileDialog . getOpenFileName ( wineread . winepath + \
app = KFileDialog . getOpenFileName ( wineread . winepath + \
" /dosdevices/c: " , \
" /dosdevices/c: " , \
" *.exe| " + unicode ( i18n ( " Windows Executables (*.exe) " ) ) , self , i18n ( " Application " ) )
" *.exe| " + str ( i18n ( " Windows Executables (*.exe) " ) ) , self , i18n ( " Application " ) )
if app :
if app :
app = str ( app ) . split ( ' / ' )
app = str ( app ) . split ( ' / ' )
app = app [ - 1 ]
app = app [ - 1 ]
@ -3325,11 +3325,11 @@ class LibrariesPage(TQWidget):
orderoptions = ( " builtin " , " native " , " builtin,native " , " native,builtin " , " " )
orderoptions = ( " builtin " , " native " , " builtin,native " , " native,builtin " , " " )
orderoptionstr = [
orderoptionstr = [
unicode ( i18n ( " Built-in (Wine) " ) ) ,
str ( i18n ( " Built-in (Wine) " ) ) ,
unicode ( i18n ( " Native (Windows) " ) ) ,
str ( i18n ( " Native (Windows) " ) ) ,
unicode ( i18n ( " Built-in then Native " ) ) ,
str ( i18n ( " Built-in then Native " ) ) ,
unicode ( i18n ( " Native then Built-in " ) ) ,
str ( i18n ( " Native then Built-in " ) ) ,
unicode ( i18n ( " Disable " ) ) ]
str ( i18n ( " Disable " ) ) ]
def __init__ ( self , parent = None , name = None , modal = 0 , fl = 0 ) :
def __init__ ( self , parent = None , name = None , modal = 0 , fl = 0 ) :
TQWidget . __init__ ( self , parent )
TQWidget . __init__ ( self , parent )
@ -3463,7 +3463,7 @@ class LibrariesPage(TQWidget):
"""
"""
if self . selecteddll :
if self . selecteddll :
order = KInputDialog . getItem ( i18n ( " Edit Library Override " ) , \
order = KInputDialog . getItem ( i18n ( " Edit Library Override " ) , \
unicode ( i18n ( " Load order for %s : " ) ) % ( unicode ( self . selecteddll ) , ) ,
str ( i18n ( " Load order for %s : " ) ) % ( str ( self . selecteddll ) , ) ,
TQStringList . fromStrList ( self . orderoptionstr ) , \
TQStringList . fromStrList ( self . orderoptionstr ) , \
False , 0 , self , " editdll " )
False , 0 , self , " editdll " )
@ -3488,7 +3488,7 @@ class LibrariesPage(TQWidget):
firstselecteddll = None
firstselecteddll = None
lastdll = None
lastdll = None
for dll , order in self . overriddendlls . ite rite ms( ) :
for dll , order in self . overriddendlls . ite ms( ) :
lvi = TQListViewItem ( self . dllslist , dll , order )
lvi = TQListViewItem ( self . dllslist , dll , order )
self . dllsToListItems [ dll ] = lvi
self . dllsToListItems [ dll ] = lvi
if self . selecteddll and self . selecteddll == dll :
if self . selecteddll and self . selecteddll == dll :