@ -77,7 +77,7 @@ KomposePreferences::KomposePreferences()
TQHBox * hLayXineramaGrabDelay = new TQHBox ( xineramaGroupBox ) ;
TQHBox * hLayXineramaGrabDelay = new TQHBox ( xineramaGroupBox ) ;
TQLabel * xineramaLabel = new TQLabel ( i18n ( " Use screen: " ) , hLayXineramaGrabDelay ) ;
TQLabel * xineramaLabel = new TQLabel ( i18n ( " Use screen: " ) , hLayXineramaGrabDelay ) ;
m_viewScreen = new TQSpinBox ( 0 , deskwidget . numScreens ( ) - 1 , 1 , hLayXineramaGrabDelay ) ;
m_viewScreen = new TQSpinBox ( 0 , deskwidget . numScreens ( ) - 1 , 1 , hLayXineramaGrabDelay ) ;
connect ( m_viewScreenAll , SIGNAL( toggled ( bool ) ) , m_viewScreen , SLOT( setDisabled ( bool ) ) ) ;
connect ( m_viewScreenAll , TQ_ SIGNAL( toggled ( bool ) ) , m_viewScreen , TQ_ SLOT( setDisabled ( bool ) ) ) ;
xineramaLabel - > setBuddy ( m_viewScreen ) ;
xineramaLabel - > setBuddy ( m_viewScreen ) ;
TQString xineramaHelp = i18n ( " Specify the screen where Komposé should appear. " ) ;
TQString xineramaHelp = i18n ( " Specify the screen where Komposé should appear. " ) ;
TQWhatsThis : : add ( m_viewScreen , xineramaHelp ) ;
TQWhatsThis : : add ( m_viewScreen , xineramaHelp ) ;
@ -95,7 +95,7 @@ KomposePreferences::KomposePreferences()
TQString useCompositeHelp = i18n ( " Making use of the Composite extension of newer X Servers makes the grabbing of screenshots obsolete. \n The contents of all windows are drawn in back buffers that will be accessed by Komposé \n Note that the Composite implementation of even modern graphic card drivers is still very slow and may make your system pretty unusable. " ) ;
TQString useCompositeHelp = i18n ( " Making use of the Composite extension of newer X Servers makes the grabbing of screenshots obsolete. \n The contents of all windows are drawn in back buffers that will be accessed by Komposé \n Note that the Composite implementation of even modern graphic card drivers is still very slow and may make your system pretty unusable. " ) ;
TQWhatsThis : : add ( useComposite , useCompositeHelp ) ;
TQWhatsThis : : add ( useComposite , useCompositeHelp ) ;
TQToolTip : : add ( useComposite , useCompositeHelp ) ;
TQToolTip : : add ( useComposite , useCompositeHelp ) ;
connect ( useComposite , SIGNAL( toggled ( bool ) ) , SLOT( setUseCompositeToggled ( bool ) ) ) ;
connect ( useComposite , TQ_ SIGNAL( toggled ( bool ) ) , TQ_ SLOT( setUseCompositeToggled ( bool ) ) ) ;
# else
# else
TQGroupBox * screenshotsGroupBox = new TQGroupBox ( 3 , Vertical , i18n ( " Screenshots " ) , page1 ) ;
TQGroupBox * screenshotsGroupBox = new TQGroupBox ( 3 , Vertical , i18n ( " Screenshots " ) , page1 ) ;
# endif
# endif
@ -189,20 +189,20 @@ KomposePreferences::KomposePreferences()
TQString showWindowTitlesHelp = i18n ( " Display the name of every window in Komposé " ) ;
TQString showWindowTitlesHelp = i18n ( " Display the name of every window in Komposé " ) ;
TQWhatsThis : : add ( showWindowTitles , showWindowTitlesHelp ) ;
TQWhatsThis : : add ( showWindowTitles , showWindowTitlesHelp ) ;
TQToolTip : : add ( showWindowTitles , showWindowTitlesHelp ) ;
TQToolTip : : add ( showWindowTitles , showWindowTitlesHelp ) ;
connect ( showWindowTitles , SIGNAL( toggled ( bool ) ) , windowTitleFontBtn , SLOT( setEnabled ( bool ) ) ) ;
connect ( showWindowTitles , TQ_ SIGNAL( toggled ( bool ) ) , windowTitleFontBtn , TQ_ SLOT( setEnabled ( bool ) ) ) ;
connect ( windowTitleFontBtn , SIGNAL( clicked ( ) ) , this , SLOT( showWindowTitleFontDialog ( ) ) ) ;
connect ( windowTitleFontBtn , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( showWindowTitleFontDialog ( ) ) ) ;
TQGrid * gridWindowTitlesColor = new TQGrid ( 2 , windowTitleGroupBox ) ;
TQGrid * gridWindowTitlesColor = new TQGrid ( 2 , windowTitleGroupBox ) ;
// windowTitleFontColorLabel = new TQLabel(windowTitleFontColor, i18n("Text color: "), gridWindowTitlesColor); // FIXME: How to link to a buddy that doesn't yet exist?
// windowTitleFontColorLabel = new TQLabel(windowTitleFontColor, i18n("Text color: "), gridWindowTitlesColor); // FIXME: How to link to a buddy that doesn't yet exist?
windowTitleFontColorLabel = new TQLabel ( i18n ( " Text color: " ) , gridWindowTitlesColor ) ;
windowTitleFontColorLabel = new TQLabel ( i18n ( " Text color: " ) , gridWindowTitlesColor ) ;
windowTitleFontColor = new KColorButton ( TQt : : black , gridWindowTitlesColor ) ;
windowTitleFontColor = new KColorButton ( TQt : : black , gridWindowTitlesColor ) ;
connect ( showWindowTitles , SIGNAL( toggled ( bool ) ) , windowTitleFontColorLabel , SLOT( setEnabled ( bool ) ) ) ;
connect ( showWindowTitles , TQ_ SIGNAL( toggled ( bool ) ) , windowTitleFontColorLabel , TQ_ SLOT( setEnabled ( bool ) ) ) ;
connect ( showWindowTitles , SIGNAL( toggled ( bool ) ) , windowTitleFontColor , SLOT( setEnabled ( bool ) ) ) ;
connect ( showWindowTitles , TQ_ SIGNAL( toggled ( bool ) ) , windowTitleFontColor , TQ_ SLOT( setEnabled ( bool ) ) ) ;
showWindowTitleShadow = new TQCheckBox ( i18n ( " Shadow color: " ) , gridWindowTitlesColor ) ;
showWindowTitleShadow = new TQCheckBox ( i18n ( " Shadow color: " ) , gridWindowTitlesColor ) ;
windowTitleFontShadowColor = new KColorButton ( TQt : : lightGray , gridWindowTitlesColor ) ;
windowTitleFontShadowColor = new KColorButton ( TQt : : lightGray , gridWindowTitlesColor ) ;
connect ( showWindowTitles , SIGNAL( toggled ( bool ) ) , showWindowTitleShadow , SLOT( setEnabled ( bool ) ) ) ;
connect ( showWindowTitles , TQ_ SIGNAL( toggled ( bool ) ) , showWindowTitleShadow , TQ_ SLOT( setEnabled ( bool ) ) ) ;
connect ( showWindowTitles , SIGNAL( toggled ( bool ) ) , windowTitleFontShadowColor , SLOT( setEnabled ( bool ) ) ) ;
connect ( showWindowTitles , TQ_ SIGNAL( toggled ( bool ) ) , windowTitleFontShadowColor , TQ_ SLOT( setEnabled ( bool ) ) ) ;
connect ( showWindowTitleShadow , SIGNAL( toggled ( bool ) ) , windowTitleFontShadowColor , SLOT( setEnabled ( bool ) ) ) ;
connect ( showWindowTitleShadow , TQ_ SIGNAL( toggled ( bool ) ) , windowTitleFontShadowColor , TQ_ SLOT( setEnabled ( bool ) ) ) ;
page2Layout - > addWidget ( windowTitleGroupBox ) ;
page2Layout - > addWidget ( windowTitleGroupBox ) ;
@ -245,10 +245,10 @@ KomposePreferences::KomposePreferences()
showIcons = new TQCheckBox ( i18n ( " Show icons " ) , iconGroupBox ) ;
showIcons = new TQCheckBox ( i18n ( " Show icons " ) , iconGroupBox ) ;
iconSize = new TQSlider ( 0 , 3 , 1 , 0 , TQt : : Horizontal , iconGroupBox ) ;
iconSize = new TQSlider ( 0 , 3 , 1 , 0 , TQt : : Horizontal , iconGroupBox ) ;
iconSizeDescription = new TQLabel ( iconSize , " " , iconGroupBox ) ;
iconSizeDescription = new TQLabel ( iconSize , " " , iconGroupBox ) ;
connect ( iconSize , SIGNAL( sliderMoved ( int ) ) , this , SLOT( updateIconSliderDesc ( int ) ) ) ;
connect ( iconSize , TQ_ SIGNAL( sliderMoved ( int ) ) , this , TQ_ SLOT( updateIconSliderDesc ( int ) ) ) ;
connect ( iconSize , SIGNAL( valueChanged ( int ) ) , this , SLOT( updateIconSliderDesc ( int ) ) ) ;
connect ( iconSize , TQ_ SIGNAL( valueChanged ( int ) ) , this , TQ_ SLOT( updateIconSliderDesc ( int ) ) ) ;
connect ( showIcons , SIGNAL( toggled ( bool ) ) , iconSize , SLOT( setEnabled ( bool ) ) ) ;
connect ( showIcons , TQ_ SIGNAL( toggled ( bool ) ) , iconSize , TQ_ SLOT( setEnabled ( bool ) ) ) ;
connect ( showIcons , SIGNAL( toggled ( bool ) ) , iconSizeDescription , SLOT( setEnabled ( bool ) ) ) ;
connect ( showIcons , TQ_ SIGNAL( toggled ( bool ) ) , iconSizeDescription , TQ_ SLOT( setEnabled ( bool ) ) ) ;
page2Layout - > addWidget ( iconGroupBox ) ;
page2Layout - > addWidget ( iconGroupBox ) ;
page2Layout - > insertStretch ( - 1 ) ;
page2Layout - > insertStretch ( - 1 ) ;
@ -275,7 +275,7 @@ KomposePreferences::KomposePreferences()
page3Layout - > addWidget ( virtDesksLayoutGroupBox ) ;
page3Layout - > addWidget ( virtDesksLayoutGroupBox ) ;
desktopTitleFontBtn = new TQPushButton ( i18n ( " Select Desktop Names Font... " ) , virtDesksLayoutGroupBox ) ;
desktopTitleFontBtn = new TQPushButton ( i18n ( " Select Desktop Names Font... " ) , virtDesksLayoutGroupBox ) ;
connect ( desktopTitleFontBtn , SIGNAL( clicked ( ) ) , this , SLOT( showDesktopTitleFontDialog ( ) ) ) ;
connect ( desktopTitleFontBtn , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( showDesktopTitleFontDialog ( ) ) ) ;
page3Layout - > insertStretch ( - 1 ) ;
page3Layout - > insertStretch ( - 1 ) ;