|
|
@ -79,62 +79,62 @@ void KbfxConfigApp::InitForm()
|
|
|
|
lb_Main->insertItem ( img_themes, tr2i18n ( "Themes" ), THEMES );
|
|
|
|
lb_Main->insertItem ( img_themes, tr2i18n ( "Themes" ), THEMES );
|
|
|
|
KbfxConfigDlgThemes *pageThemes = new KbfxConfigDlgThemes();
|
|
|
|
KbfxConfigDlgThemes *pageThemes = new KbfxConfigDlgThemes();
|
|
|
|
ws_Main->addWidget ( pageThemes, THEMES );
|
|
|
|
ws_Main->addWidget ( pageThemes, THEMES );
|
|
|
|
connect ( this, TQT_SIGNAL ( KbfxConfigDlgThemesChanged() ),
|
|
|
|
connect ( this, TQ_SIGNAL ( KbfxConfigDlgThemesChanged() ),
|
|
|
|
pageThemes, TQT_SLOT ( ChangeForm() ) );
|
|
|
|
pageThemes, TQ_SLOT ( ChangeForm() ) );
|
|
|
|
emit KbfxConfigDlgThemesChanged();
|
|
|
|
emit KbfxConfigDlgThemesChanged();
|
|
|
|
connect ( pageThemes->KbfxGetMoreThemes, TQT_SIGNAL ( clicked() ),
|
|
|
|
connect ( pageThemes->KbfxGetMoreThemes, TQ_SIGNAL ( clicked() ),
|
|
|
|
this, TQT_SLOT ( KbfxGetMoreThemesClicked() ) );
|
|
|
|
this, TQ_SLOT ( KbfxGetMoreThemesClicked() ) );
|
|
|
|
connect ( this, TQT_SIGNAL ( KbfxThemeDoInstall ( TQString & ) ),
|
|
|
|
connect ( this, TQ_SIGNAL ( KbfxThemeDoInstall ( TQString & ) ),
|
|
|
|
pageThemes, TQT_SLOT ( KbfxThemeInstall ( TQString & ) ) );
|
|
|
|
pageThemes, TQ_SLOT ( KbfxThemeInstall ( TQString & ) ) );
|
|
|
|
|
|
|
|
|
|
|
|
/* initialize Button page */
|
|
|
|
/* initialize Button page */
|
|
|
|
lb_Main->insertItem ( img_button, tr2i18n ( "Start Button" ), BUTTON );
|
|
|
|
lb_Main->insertItem ( img_button, tr2i18n ( "Start Button" ), BUTTON );
|
|
|
|
KbfxConfigDlgButton *pageButton = new KbfxConfigDlgButton();
|
|
|
|
KbfxConfigDlgButton *pageButton = new KbfxConfigDlgButton();
|
|
|
|
ws_Main->addWidget ( pageButton, BUTTON );
|
|
|
|
ws_Main->addWidget ( pageButton, BUTTON );
|
|
|
|
connect ( this, TQT_SIGNAL ( KbfxConfigDlgButtonChanged() ),
|
|
|
|
connect ( this, TQ_SIGNAL ( KbfxConfigDlgButtonChanged() ),
|
|
|
|
pageButton, TQT_SLOT ( ChangeForm() ) );
|
|
|
|
pageButton, TQ_SLOT ( ChangeForm() ) );
|
|
|
|
emit KbfxConfigDlgButtonChanged();
|
|
|
|
emit KbfxConfigDlgButtonChanged();
|
|
|
|
|
|
|
|
|
|
|
|
/* initialize Fonts page */
|
|
|
|
/* initialize Fonts page */
|
|
|
|
lb_Main->insertItem ( img_fonts, tr2i18n ( "Fonts" ), FONTS );
|
|
|
|
lb_Main->insertItem ( img_fonts, tr2i18n ( "Fonts" ), FONTS );
|
|
|
|
KbfxConfigDlgFonts *pageFonts = new KbfxConfigDlgFonts();
|
|
|
|
KbfxConfigDlgFonts *pageFonts = new KbfxConfigDlgFonts();
|
|
|
|
ws_Main->addWidget ( pageFonts, FONTS );
|
|
|
|
ws_Main->addWidget ( pageFonts, FONTS );
|
|
|
|
connect ( this, TQT_SIGNAL ( KbfxConfigDlgFontsChanged() ),
|
|
|
|
connect ( this, TQ_SIGNAL ( KbfxConfigDlgFontsChanged() ),
|
|
|
|
pageFonts, TQT_SLOT ( ChangeForm() ) );
|
|
|
|
pageFonts, TQ_SLOT ( ChangeForm() ) );
|
|
|
|
emit KbfxConfigDlgFontsChanged();
|
|
|
|
emit KbfxConfigDlgFontsChanged();
|
|
|
|
|
|
|
|
|
|
|
|
/* initialize Layout Page */
|
|
|
|
/* initialize Layout Page */
|
|
|
|
lb_Main->insertItem ( img_search, tr2i18n ( "Layout" ), LAYOUT );
|
|
|
|
lb_Main->insertItem ( img_search, tr2i18n ( "Layout" ), LAYOUT );
|
|
|
|
KbfxConfigDlgLayout *pageLayout = new KbfxConfigDlgLayout();
|
|
|
|
KbfxConfigDlgLayout *pageLayout = new KbfxConfigDlgLayout();
|
|
|
|
ws_Main->addWidget ( pageLayout, LAYOUT );
|
|
|
|
ws_Main->addWidget ( pageLayout, LAYOUT );
|
|
|
|
connect ( this, TQT_SIGNAL ( KbfxConfigDlgLayoutChanged() ),
|
|
|
|
connect ( this, TQ_SIGNAL ( KbfxConfigDlgLayoutChanged() ),
|
|
|
|
pageLayout, TQT_SLOT ( ChangeForm() ) );
|
|
|
|
pageLayout, TQ_SLOT ( ChangeForm() ) );
|
|
|
|
connect ( this, TQT_SIGNAL ( KbfxConfigDlgLayoutLeft() ),
|
|
|
|
connect ( this, TQ_SIGNAL ( KbfxConfigDlgLayoutLeft() ),
|
|
|
|
pageLayout, TQT_SLOT ( LayoutFormLeft() ) );
|
|
|
|
pageLayout, TQ_SLOT ( LayoutFormLeft() ) );
|
|
|
|
emit KbfxConfigDlgLayoutChanged();
|
|
|
|
emit KbfxConfigDlgLayoutChanged();
|
|
|
|
|
|
|
|
|
|
|
|
/* initialize Plugins Page */
|
|
|
|
/* initialize Plugins Page */
|
|
|
|
lb_Main->insertItem ( img_plugins, tr2i18n ( "Plugins" ), PLUGINS );
|
|
|
|
lb_Main->insertItem ( img_plugins, tr2i18n ( "Plugins" ), PLUGINS );
|
|
|
|
KbfxConfigDlgPlugins *pagePlugins = new KbfxConfigDlgPlugins();
|
|
|
|
KbfxConfigDlgPlugins *pagePlugins = new KbfxConfigDlgPlugins();
|
|
|
|
ws_Main->addWidget ( pagePlugins, PLUGINS );
|
|
|
|
ws_Main->addWidget ( pagePlugins, PLUGINS );
|
|
|
|
connect ( this, TQT_SIGNAL ( KbfxConfigDlgPluginsChanged() ),
|
|
|
|
connect ( this, TQ_SIGNAL ( KbfxConfigDlgPluginsChanged() ),
|
|
|
|
pagePlugins, TQT_SLOT ( ChangeForm() ) );
|
|
|
|
pagePlugins, TQ_SLOT ( ChangeForm() ) );
|
|
|
|
emit KbfxConfigDlgPluginsChanged();
|
|
|
|
emit KbfxConfigDlgPluginsChanged();
|
|
|
|
|
|
|
|
|
|
|
|
/* initialize Tooltip page */
|
|
|
|
/* initialize Tooltip page */
|
|
|
|
lb_Main->insertItem ( img_tooltip, tr2i18n ( "Tooltip" ), TOOLTIP );
|
|
|
|
lb_Main->insertItem ( img_tooltip, tr2i18n ( "Tooltip" ), TOOLTIP );
|
|
|
|
KbfxConfigDlgTooltip *pageTooltip = new KbfxConfigDlgTooltip();
|
|
|
|
KbfxConfigDlgTooltip *pageTooltip = new KbfxConfigDlgTooltip();
|
|
|
|
ws_Main->addWidget ( pageTooltip, TOOLTIP );
|
|
|
|
ws_Main->addWidget ( pageTooltip, TOOLTIP );
|
|
|
|
connect ( this, TQT_SIGNAL ( KbfxConfigDlgTooltipChanged() ),
|
|
|
|
connect ( this, TQ_SIGNAL ( KbfxConfigDlgTooltipChanged() ),
|
|
|
|
pageTooltip, TQT_SLOT ( ChangeForm() ) );
|
|
|
|
pageTooltip, TQ_SLOT ( ChangeForm() ) );
|
|
|
|
emit KbfxConfigDlgTooltipChanged();
|
|
|
|
emit KbfxConfigDlgTooltipChanged();
|
|
|
|
|
|
|
|
|
|
|
|
/* initialize Menu Style page */
|
|
|
|
/* initialize Menu Style page */
|
|
|
|
lb_Main->insertItem ( img_style, tr2i18n ( "Menu Style" ), STYLE );
|
|
|
|
lb_Main->insertItem ( img_style, tr2i18n ( "Menu Style" ), STYLE );
|
|
|
|
KbfxConfigDlgStyle *pageStyle = new KbfxConfigDlgStyle();
|
|
|
|
KbfxConfigDlgStyle *pageStyle = new KbfxConfigDlgStyle();
|
|
|
|
ws_Main->addWidget ( pageStyle, STYLE );
|
|
|
|
ws_Main->addWidget ( pageStyle, STYLE );
|
|
|
|
connect ( this, TQT_SIGNAL ( KbfxConfigDlgStyleChanged() ),
|
|
|
|
connect ( this, TQ_SIGNAL ( KbfxConfigDlgStyleChanged() ),
|
|
|
|
pageStyle, TQT_SLOT ( ChangeForm() ) );
|
|
|
|
pageStyle, TQ_SLOT ( ChangeForm() ) );
|
|
|
|
emit KbfxConfigDlgStyleChanged();
|
|
|
|
emit KbfxConfigDlgStyleChanged();
|
|
|
|
|
|
|
|
|
|
|
|
/* initialize About page */
|
|
|
|
/* initialize About page */
|
|
|
@ -143,14 +143,14 @@ void KbfxConfigApp::InitForm()
|
|
|
|
ws_Main->addWidget ( pageAbout,ABOUT );
|
|
|
|
ws_Main->addWidget ( pageAbout,ABOUT );
|
|
|
|
pageAbout->KbfxLabelVersion->setText ( m_KbfxVersion2 );
|
|
|
|
pageAbout->KbfxLabelVersion->setText ( m_KbfxVersion2 );
|
|
|
|
|
|
|
|
|
|
|
|
connect ( btn_Default, TQT_SIGNAL ( clicked() ),
|
|
|
|
connect ( btn_Default, TQ_SIGNAL ( clicked() ),
|
|
|
|
this, TQT_SLOT ( btn_DefaultClicked() ) );
|
|
|
|
this, TQ_SLOT ( btn_DefaultClicked() ) );
|
|
|
|
connect ( btn_Help, TQT_SIGNAL ( clicked() ),
|
|
|
|
connect ( btn_Help, TQ_SIGNAL ( clicked() ),
|
|
|
|
this, TQT_SLOT ( btn_HelpClicked() ) );
|
|
|
|
this, TQ_SLOT ( btn_HelpClicked() ) );
|
|
|
|
connect ( lb_Main, TQT_SIGNAL ( highlighted ( int ) ),
|
|
|
|
connect ( lb_Main, TQ_SIGNAL ( highlighted ( int ) ),
|
|
|
|
this, TQT_SLOT ( KbfxMenuItemChanged ( int ) ) );
|
|
|
|
this, TQ_SLOT ( KbfxMenuItemChanged ( int ) ) );
|
|
|
|
connect ( btn_SaveApply, TQT_SIGNAL ( clicked() ),
|
|
|
|
connect ( btn_SaveApply, TQ_SIGNAL ( clicked() ),
|
|
|
|
this, TQT_SLOT ( btn_SaveApplyClicked() ) );
|
|
|
|
this, TQ_SLOT ( btn_SaveApplyClicked() ) );
|
|
|
|
|
|
|
|
|
|
|
|
m_KbfxPage = THEMES;
|
|
|
|
m_KbfxPage = THEMES;
|
|
|
|
lb_Main->setCurrentItem ( THEMES );
|
|
|
|
lb_Main->setCurrentItem ( THEMES );
|
|
|
@ -350,8 +350,8 @@ void KbfxConfigApp::browserInit()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/* initialize NewsBrowser widget */
|
|
|
|
/* initialize NewsBrowser widget */
|
|
|
|
tdeio = new KbfxKioDownload();
|
|
|
|
tdeio = new KbfxKioDownload();
|
|
|
|
connect ( tdeio, TQT_SIGNAL ( KbfxKioDownloadReady() ),
|
|
|
|
connect ( tdeio, TQ_SIGNAL ( KbfxKioDownloadReady() ),
|
|
|
|
this, TQT_SLOT ( KbfxNewsBrowserLoad() ) );
|
|
|
|
this, TQ_SLOT ( KbfxNewsBrowserLoad() ) );
|
|
|
|
tdeio->KbfxKioDownloadStart ( m_KbfxNewsBrowserAddress );
|
|
|
|
tdeio->KbfxKioDownloadStart ( m_KbfxNewsBrowserAddress );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -369,11 +369,11 @@ void KbfxConfigApp::KbfxNewsBrowserLoad()
|
|
|
|
browser->view()->show();
|
|
|
|
browser->view()->show();
|
|
|
|
|
|
|
|
|
|
|
|
connect ( browser->browserExtension(),
|
|
|
|
connect ( browser->browserExtension(),
|
|
|
|
TQT_SIGNAL ( openURLRequest ( const KURL &, const KParts::URLArgs & ) ),
|
|
|
|
TQ_SIGNAL ( openURLRequest ( const KURL &, const KParts::URLArgs & ) ),
|
|
|
|
this,
|
|
|
|
this,
|
|
|
|
TQT_SLOT ( KbfxNewsBrowserOpenURLRequest ( const KURL &, const KParts::URLArgs & ) ) );
|
|
|
|
TQ_SLOT ( KbfxNewsBrowserOpenURLRequest ( const KURL &, const KParts::URLArgs & ) ) );
|
|
|
|
connect ( browser, TQT_SIGNAL ( completed() ),
|
|
|
|
connect ( browser, TQ_SIGNAL ( completed() ),
|
|
|
|
this, TQT_SLOT ( KbfxNewsBrowserCompleted() ) );
|
|
|
|
this, TQ_SLOT ( KbfxNewsBrowserCompleted() ) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|