@ -2,7 +2,7 @@
# include <tqcursor.h>
# include <tqcursor.h>
# include <tqdatetime.h>
# include <tqdatetime.h>
# include <tqdir.h>
# include <tqdir.h>
# include < k popupmenu.h>
# include < tde popupmenu.h>
# include <tqobjectlist.h>
# include <tqobjectlist.h>
# include <tqpainter.h>
# include <tqpainter.h>
# include <tqptrlist.h>
# include <tqptrlist.h>
@ -10,31 +10,31 @@
# include <tqstringlist.h>
# include <tqstringlist.h>
# include <tqvbox.h>
# include <tqvbox.h>
# include <dcopclient.h>
# include <dcopclient.h>
# include < k application.h>
# include < tde application.h>
# include < k config.h>
# include < tde config.h>
# include <kcombobox.h>
# include <kcombobox.h>
# include < k deversion.h>
# include < t deversion.h>
# include <kurl.h>
# include <kurl.h>
# include < k fileitem.h>
# include < tde fileitem.h>
# include <kicondialog.h>
# include <kicondialog.h>
# include <kiconloader.h>
# include <kiconloader.h>
# include <kkeybutton.h>
# include <kkeybutton.h>
# include < k listbox.h>
# include < tde listbox.h>
# include < k locale.h>
# include < tde locale.h>
# include < k messagebox.h>
# include < tde messagebox.h>
# include <kpixmapeffect.h>
# include <kpixmapeffect.h>
# include <kprocess.h>
# include <kprocess.h>
# include <kurifilter.h>
# include <kurifilter.h>
# include <kurl.h>
# include <kurl.h>
# include <krun.h>
# include <krun.h>
# include <kservice.h>
# include <kservice.h>
# include < k shortcut.h>
# include < tde shortcut.h>
# include <ksqueezedtextlabel.h>
# include <ksqueezedtextlabel.h>
# include <kstandarddirs.h>
# include <kstandarddirs.h>
# include < k sycocaentry.h>
# include < tde sycocaentry.h>
# include <ktextedit.h>
# include <ktextedit.h>
# include <kurlrequester.h>
# include <kurlrequester.h>
# include < k win.h>
# include < t win.h>
//WARNING: THIS IS NOT PORTABLE!
//WARNING: THIS IS NOT PORTABLE!
// #include <X11/Xlib.h>
// #include <X11/Xlib.h>
// #include <X11/Xatom.h>
// #include <X11/Xatom.h>
@ -63,7 +63,7 @@
static TQColor commentColor ;
static TQColor commentColor ;
static TQColor infoColor ;
static TQColor infoColor ;
static K Config * config ;
static TDE Config * config ;
static bool useKTTS ;
static bool useKTTS ;
@ -92,8 +92,8 @@ StartMenuButton::StartMenuButton( int size, TQString icon, TQString title, TQStr
{
{
setBackgroundOrigin ( TQWidget : : ParentOrigin ) ;
setBackgroundOrigin ( TQWidget : : ParentOrigin ) ;
int bigSize = _BIGSIZE_ ( size ) ;
int bigSize = _BIGSIZE_ ( size ) ;
m_pix = K Global: : iconLoader ( ) - > loadIcon ( icon , K Icon: : Desktop , size ) ;
m_pix = TDE Global: : iconLoader ( ) - > loadIcon ( icon , TDE Icon: : Desktop , size ) ;
m_hoverPix = K Global: : iconLoader ( ) - > loadIcon ( icon , K Icon: : Desktop , bigSize ) ;
m_hoverPix = TDE Global: : iconLoader ( ) - > loadIcon ( icon , TDE Icon: : Desktop , bigSize ) ;
m_pixmapLabel = new TQLabel ( this , name ) ;
m_pixmapLabel = new TQLabel ( this , name ) ;
m_pixmapLabel - > setPixmap ( m_pix ) ;
m_pixmapLabel - > setPixmap ( m_pix ) ;
m_pixmapLabel - > setBackgroundOrigin ( TQWidget : : AncestorOrigin ) ;
m_pixmapLabel - > setBackgroundOrigin ( TQWidget : : AncestorOrigin ) ;
@ -143,8 +143,8 @@ void StartMenuButton::reloadIcon(int size)
if ( m_orientation = = Status )
if ( m_orientation = = Status )
setFixedSize ( bigSize + 2 , bigSize + 2 ) ;
setFixedSize ( bigSize + 2 , bigSize + 2 ) ;
m_pixmapLabel - > setFixedSize ( bigSize + 2 , bigSize + 2 ) ;
m_pixmapLabel - > setFixedSize ( bigSize + 2 , bigSize + 2 ) ;
m_pix = K Global: : iconLoader ( ) - > loadIcon ( m_icon , K Icon: : Desktop , size ) ;
m_pix = TDE Global: : iconLoader ( ) - > loadIcon ( m_icon , TDE Icon: : Desktop , size ) ;
m_hoverPix = K Global: : iconLoader ( ) - > loadIcon ( m_icon , K Icon: : Desktop , bigSize ) ;
m_hoverPix = TDE Global: : iconLoader ( ) - > loadIcon ( m_icon , TDE Icon: : Desktop , bigSize ) ;
m_pixmapLabel - > setPixmap ( m_pix ) ;
m_pixmapLabel - > setPixmap ( m_pix ) ;
}
}
@ -247,8 +247,8 @@ void StartMenuButton::edit()
m_icon = ( ( Panel * ) parentWidget ( ) ) - > linkConfigDialog - > icon - > icon ( ) ;
m_icon = ( ( Panel * ) parentWidget ( ) ) - > linkConfigDialog - > icon - > icon ( ) ;
m_title = ( ( Panel * ) parentWidget ( ) ) - > linkConfigDialog - > title - > text ( ) ;
m_title = ( ( Panel * ) parentWidget ( ) ) - > linkConfigDialog - > title - > text ( ) ;
int bigSize = _BIGSIZE_ ( ( ( Panel * ) parentWidget ( ) ) - > _size ) ;
int bigSize = _BIGSIZE_ ( ( ( Panel * ) parentWidget ( ) ) - > _size ) ;
m_pix = K Global: : iconLoader ( ) - > loadIcon ( m_icon , K Icon: : Desktop , ( ( Panel * ) parentWidget ( ) ) - > _size ) ;
m_pix = TDE Global: : iconLoader ( ) - > loadIcon ( m_icon , TDE Icon: : Desktop , ( ( Panel * ) parentWidget ( ) ) - > _size ) ;
m_hoverPix = K Global: : iconLoader ( ) - > loadIcon ( m_icon , K Icon: : Desktop , bigSize ) ;
m_hoverPix = TDE Global: : iconLoader ( ) - > loadIcon ( m_icon , TDE Icon: : Desktop , bigSize ) ;
m_pixmapLabel - > setPixmap ( m_pix ) ;
m_pixmapLabel - > setPixmap ( m_pix ) ;
if ( m_orientation = = Horizontal | | m_orientation = = Vertical )
if ( m_orientation = = Horizontal | | m_orientation = = Vertical )
m_titleLabel - > setText ( " <qt><b> " + m_title + " </b></qt> " ) ;
m_titleLabel - > setText ( " <qt><b> " + m_title + " </b></qt> " ) ;
@ -337,8 +337,8 @@ StartMenuEntry::StartMenuEntry(KService * service, TQString relPath, int size, b
m_service = service ;
m_service = service ;
exec = m_service - > exec ( ) ;
exec = m_service - > exec ( ) ;
display = false ;
display = false ;
m_pix = m_service - > pixmap ( K Icon: : Desktop , size ) ;
m_pix = m_service - > pixmap ( TDE Icon: : Desktop , size ) ;
m_hoverPix = m_service - > pixmap ( K Icon: : Desktop , bigSize ) ;
m_hoverPix = m_service - > pixmap ( TDE Icon: : Desktop , bigSize ) ;
m_titleLabel = new TQLabel ( " <qt><h3> " + m_service - > name ( ) + " </h3></qt> " , this ) ;
m_titleLabel = new TQLabel ( " <qt><h3> " + m_service - > name ( ) + " </h3></qt> " , this ) ;
m_titleLabel - > setTextFormat ( TQt : : RichText ) ;
m_titleLabel - > setTextFormat ( TQt : : RichText ) ;
m_commentLabel = new TQLabel ( m_service - > comment ( ) , this ) ;
m_commentLabel = new TQLabel ( m_service - > comment ( ) , this ) ;
@ -366,8 +366,8 @@ void StartMenuEntry::reloadIcon(int size)
{
{
int bigSize = _BIGSIZE_ ( size ) ;
int bigSize = _BIGSIZE_ ( size ) ;
m_pixmapLabel - > setFixedSize ( bigSize + 2 , bigSize + 2 ) ;
m_pixmapLabel - > setFixedSize ( bigSize + 2 , bigSize + 2 ) ;
m_pix = m_service - > pixmap ( K Icon: : Desktop , size ) ;
m_pix = m_service - > pixmap ( TDE Icon: : Desktop , size ) ;
m_hoverPix = m_service - > pixmap ( K Icon: : Desktop , bigSize ) ;
m_hoverPix = m_service - > pixmap ( TDE Icon: : Desktop , bigSize ) ;
m_pixmapLabel - > setPixmap ( m_pix ) ;
m_pixmapLabel - > setPixmap ( m_pix ) ;
}
}
@ -494,26 +494,26 @@ void StartMenuEntry::focusInEvent ( TQFocusEvent * )
TQString text = i18n ( " for TTS output, telling which item is focussed (keyboard) and than reads the comment " , " %1 focussed. %2 " ) . arg ( m_titleLabel - > text ( ) ) . arg ( m_commentLabel - > text ( ) ) ;
TQString text = i18n ( " for TTS output, telling which item is focussed (keyboard) and than reads the comment " , " %1 focussed. %2 " ) . arg ( m_titleLabel - > text ( ) ) . arg ( m_commentLabel - > text ( ) ) ;
emit sayText ( text ) ;
emit sayText ( text ) ;
}
}
setPaletteBackgroundColor ( K GlobalSettings: : highlightColor ( ) ) ;
setPaletteBackgroundColor ( TDE GlobalSettings: : highlightColor ( ) ) ;
m_commentLabel - > setPaletteBackgroundColor ( K GlobalSettings: : highlightColor ( ) ) ;
m_commentLabel - > setPaletteBackgroundColor ( TDE GlobalSettings: : highlightColor ( ) ) ;
setPaletteForegroundColor ( K GlobalSettings: : highlightedTextColor ( ) ) ;
setPaletteForegroundColor ( TDE GlobalSettings: : highlightedTextColor ( ) ) ;
m_commentLabel - > setPaletteForegroundColor ( K GlobalSettings: : highlightedTextColor ( ) ) ;
m_commentLabel - > setPaletteForegroundColor ( TDE GlobalSettings: : highlightedTextColor ( ) ) ;
}
}
void StartMenuEntry : : focusOutEvent ( TQFocusEvent * )
void StartMenuEntry : : focusOutEvent ( TQFocusEvent * )
{
{
emit unhovered ( ) ;
emit unhovered ( ) ;
isCurrent = false ;
isCurrent = false ;
setPaletteBackgroundColor ( K GlobalSettings: : baseColor ( ) ) ;
setPaletteBackgroundColor ( TDE GlobalSettings: : baseColor ( ) ) ;
m_commentLabel - > setPaletteBackgroundColor ( K GlobalSettings: : baseColor ( ) ) ;
m_commentLabel - > setPaletteBackgroundColor ( TDE GlobalSettings: : baseColor ( ) ) ;
if ( hasMouse ( ) )
if ( hasMouse ( ) )
{
{
setPaletteForegroundColor ( K GlobalSettings: : highlightColor ( ) ) ;
setPaletteForegroundColor ( TDE GlobalSettings: : highlightColor ( ) ) ;
m_commentLabel - > setPaletteForegroundColor ( K GlobalSettings: : highlightColor ( ) ) ;
m_commentLabel - > setPaletteForegroundColor ( TDE GlobalSettings: : highlightColor ( ) ) ;
}
}
else
else
{
{
setPaletteForegroundColor ( K GlobalSettings: : textColor ( ) ) ;
setPaletteForegroundColor ( TDE GlobalSettings: : textColor ( ) ) ;
m_commentLabel - > setPaletteForegroundColor ( commentColor ) ;
m_commentLabel - > setPaletteForegroundColor ( commentColor ) ;
}
}
}
}
@ -528,8 +528,8 @@ void StartMenuEntry::enterEvent( TQEvent * )
}
}
if ( ! isCurrent )
if ( ! isCurrent )
{
{
setPaletteForegroundColor ( K GlobalSettings: : highlightColor ( ) ) ;
setPaletteForegroundColor ( TDE GlobalSettings: : highlightColor ( ) ) ;
m_commentLabel - > setPaletteForegroundColor ( K GlobalSettings: : highlightColor ( ) ) ;
m_commentLabel - > setPaletteForegroundColor ( TDE GlobalSettings: : highlightColor ( ) ) ;
}
}
m_pixmapLabel - > setPixmap ( m_hoverPix ) ;
m_pixmapLabel - > setPixmap ( m_hoverPix ) ;
}
}
@ -539,7 +539,7 @@ void StartMenuEntry::leaveEvent( TQEvent * )
emit unhovered ( ) ;
emit unhovered ( ) ;
if ( ! isCurrent )
if ( ! isCurrent )
{
{
setPaletteForegroundColor ( K GlobalSettings: : textColor ( ) ) ;
setPaletteForegroundColor ( TDE GlobalSettings: : textColor ( ) ) ;
m_commentLabel - > setPaletteForegroundColor ( commentColor ) ;
m_commentLabel - > setPaletteForegroundColor ( commentColor ) ;
}
}
m_pixmapLabel - > setPixmap ( m_pix ) ;
m_pixmapLabel - > setPixmap ( m_pix ) ;
@ -550,7 +550,7 @@ void StartMenuEntry::execute()
usage + + ;
usage + + ;
lastUse = TQDate : : currentDate ( ) ;
lastUse = TQDate : : currentDate ( ) ;
rank = 8 + usage ;
rank = 8 + usage ;
K Application: : startServiceByDesktopPath ( m_service - > desktopEntryPath ( ) , TQStringList ( ) , 0 , 0 , 0 , " " , true ) ;
TDE Application: : startServiceByDesktopPath ( m_service - > desktopEntryPath ( ) , TQStringList ( ) , 0 , 0 , 0 , " " , true ) ;
emit executed ( ) ;
emit executed ( ) ;
}
}
@ -558,7 +558,7 @@ Panel::Panel(int size, TQWidget * parent, const char * name) : TQWidget(parent,
{
{
linkConfigDialog = new LinkConfig ( ) ;
linkConfigDialog = new LinkConfig ( ) ;
setSizePolicy ( TQSizePolicy : : Expanding , TQSizePolicy : : Fixed ) ;
setSizePolicy ( TQSizePolicy : : Expanding , TQSizePolicy : : Fixed ) ;
// setPaletteBackgroundColor( K GlobalSettings::highlightColor());
// setPaletteBackgroundColor( TDE GlobalSettings::highlightColor());
setAcceptDrops ( true ) ;
setAcceptDrops ( true ) ;
config - > setGroup ( " Panel " ) ;
config - > setGroup ( " Panel " ) ;
TQStringList commands = config - > readListEntry ( " Commands " , ' § ' ) ;
TQStringList commands = config - > readListEntry ( " Commands " , ' § ' ) ;
@ -582,7 +582,7 @@ Panel::Panel(int size, TQWidget * parent, const char * name) : TQWidget(parent,
}
}
}
}
void Panel : : save ( K Config * config )
void Panel : : save ( TDE Config * config )
{
{
config - > setGroup ( " Panel " ) ;
config - > setGroup ( " Panel " ) ;
TQObjectList * kids = const_cast < TQObjectList * > ( children ( ) ) ;
TQObjectList * kids = const_cast < TQObjectList * > ( children ( ) ) ;
@ -1087,7 +1087,7 @@ AppList::AppList(int size, TQWidget * parent) : TQScrollView(parent), _size(size
connect ( ( ( TQObject * ) configDialog_ - > buttonCancel ) , SIGNAL ( clicked ( ) ) , this , SLOT ( unblockPopup ( ) ) ) ;
connect ( ( ( TQObject * ) configDialog_ - > buttonCancel ) , SIGNAL ( clicked ( ) ) , this , SLOT ( unblockPopup ( ) ) ) ;
m_widget = new TQFrame ( viewport ( ) ) ;
m_widget = new TQFrame ( viewport ( ) ) ;
m_widget - > setSizePolicy ( TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ;
m_widget - > setSizePolicy ( TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ;
m_widget - > setPaletteBackgroundColor ( K GlobalSettings: : baseColor ( ) ) ;
m_widget - > setPaletteBackgroundColor ( TDE GlobalSettings: : baseColor ( ) ) ;
addChild ( m_widget , 0 , 0 ) ;
addChild ( m_widget , 0 , 0 ) ;
setResizePolicy ( TQScrollView : : AutoOneFit ) ;
setResizePolicy ( TQScrollView : : AutoOneFit ) ;
m_widget - > show ( ) ;
m_widget - > show ( ) ;
@ -1097,8 +1097,8 @@ AppList::AppList(int size, TQWidget * parent) : TQScrollView(parent), _size(size
infoLabel - > setTextFormat ( TQt : : RichText ) ;
infoLabel - > setTextFormat ( TQt : : RichText ) ;
infoLayout - > addWidget ( infoLabel ) ;
infoLayout - > addWidget ( infoLabel ) ;
m_VLayout = new TQVBoxLayout ( infoLayout ) ;
m_VLayout = new TQVBoxLayout ( infoLayout ) ;
m_iconLoader = K Global: : iconLoader ( ) ;
m_iconLoader = TDE Global: : iconLoader ( ) ;
m_popup = new K PopupMenu( this ) ;
m_popup = new TDE PopupMenu( this ) ;
m_popup - > insertItem ( i18n ( " Edit Entry " ) , this , SLOT ( editDialog ( ) ) ) ;
m_popup - > insertItem ( i18n ( " Edit Entry " ) , this , SLOT ( editDialog ( ) ) ) ;
m_popup - > insertItem ( i18n ( " Remove Entry " ) , this , SLOT ( removeEntry ( ) ) ) ;
m_popup - > insertItem ( i18n ( " Remove Entry " ) , this , SLOT ( removeEntry ( ) ) ) ;
m_popup - > insertSeparator ( ) ;
m_popup - > insertSeparator ( ) ;
@ -1149,7 +1149,7 @@ void AppList::addDialog()
configDialog_ - > startAsUser - > setChecked ( false ) ;
configDialog_ - > startAsUser - > setChecked ( false ) ;
configDialog_ - > username - > clear ( ) ;
configDialog_ - > username - > clear ( ) ;
configDialog_ - > workingDir - > clear ( ) ;
configDialog_ - > workingDir - > clear ( ) ;
configDialog_ - > shortcut - > setShortcut ( K Shortcut: : null ( ) , false ) ;
configDialog_ - > shortcut - > setShortcut ( TDE Shortcut: : null ( ) , false ) ;
configDialog_ - > setCaption ( i18n ( " New Entry " ) ) ;
configDialog_ - > setCaption ( i18n ( " New Entry " ) ) ;
( ( TQWidget * ) ( configDialog_ - > extendedGroup ) ) - > hide ( ) ;
( ( TQWidget * ) ( configDialog_ - > extendedGroup ) ) - > hide ( ) ;
@ -1250,7 +1250,7 @@ void AppList::editEntry()
sme - > lastUse = lu ;
sme - > lastUse = lu ;
sme - > usage = u ;
sme - > usage = u ;
sme - > rank = 8 + u - lu . daysTo ( TQDate : : currentDate ( ) ) ;
sme - > rank = 8 + u - lu . daysTo ( TQDate : : currentDate ( ) ) ;
if ( ! config ) config = new K Config( " bStarter " , false , false ) ;
if ( ! config ) config = new TDE Config( " bStarter " , false , false ) ;
config - > setGroup ( " Statistics " ) ;
config - > setGroup ( " Statistics " ) ;
sme - > saveStats ( ) ;
sme - > saveStats ( ) ;
delete config ;
delete config ;
@ -1262,7 +1262,7 @@ void AppList::editEntry()
void AppList : : writeEntry ( TQString path , bool hidden )
void AppList : : writeEntry ( TQString path , bool hidden )
{
{
KConfig * config = new K Config( path ) ;
TDEConfig * config = new TDE Config( path ) ;
config - > setDesktopGroup ( ) ;
config - > setDesktopGroup ( ) ;
if ( ! configDialog_ - > description - > text ( ) . isEmpty ( ) )
if ( ! configDialog_ - > description - > text ( ) . isEmpty ( ) )
@ -1297,9 +1297,9 @@ void AppList::writeEntry(TQString path, bool hidden )
config - > writeEntry ( " Type " , " Application " ) ;
config - > writeEntry ( " Type " , " Application " ) ;
if ( configDialog_ - > startAsUser - > isChecked ( ) )
if ( configDialog_ - > startAsUser - > isChecked ( ) )
{
{
config - > writeEntry ( " X- K DE-SubstituteUID" , true ) ;
config - > writeEntry ( " X- T DE-SubstituteUID" , true ) ;
if ( ! configDialog_ - > username - > text ( ) . isEmpty ( ) )
if ( ! configDialog_ - > username - > text ( ) . isEmpty ( ) )
config - > writeEntry ( " X- K DE-Username" , configDialog_ - > username - > text ( ) ) ;
config - > writeEntry ( " X- T DE-Username" , configDialog_ - > username - > text ( ) ) ;
}
}
delete config ;
delete config ;
@ -1364,14 +1364,14 @@ void AppList::init()
insertGroup ( m_root , captions , paths ) ;
insertGroup ( m_root , captions , paths ) ;
paths . sort ( ) ;
paths . sort ( ) ;
configDialog_ - > category - > insertStringList ( paths ) ;
configDialog_ - > category - > insertStringList ( paths ) ;
configDialog_ - > category - > completionObject ( ) - > setCompletionMode ( K GlobalSettings: : CompletionPopupAuto ) ;
configDialog_ - > category - > completionObject ( ) - > setCompletionMode ( TDE GlobalSettings: : CompletionPopupAuto ) ;
configDialog_ - > category - > completionObject ( ) - > insertItems ( paths ) ;
configDialog_ - > category - > completionObject ( ) - > insertItems ( paths ) ;
// if (config) { delete config; config = 0L; }
// if (config) { delete config; config = 0L; }
sort ( ) ;
sort ( ) ;
reset ( ) ;
reset ( ) ;
}
}
void AppList : : save ( K Config * config )
void AppList : : save ( TDE Config * config )
{
{
config - > setGroup ( " Statistics " ) ;
config - > setGroup ( " Statistics " ) ;
TQPtrListIterator < StartMenuEntry > it ( entryList ) ;
TQPtrListIterator < StartMenuEntry > it ( entryList ) ;
@ -1714,7 +1714,7 @@ StartMenu::StartMenu( int size, TQWidget * parent, WFlags f ) : TQWidget(parent,
{
{
m_panelPos = StartMenu : : Nowhere ;
m_panelPos = StartMenu : : Nowhere ;
panelLayout = new TQGridLayout ( this , 3 , 3 ) ;
panelLayout = new TQGridLayout ( this , 3 , 3 ) ;
config = new K Config( " bStarter " , true , false ) ;
config = new TDE Config( " bStarter " , true , false ) ;
config - > setGroup ( " Shell " ) ;
config - > setGroup ( " Shell " ) ;
history = config - > readListEntry ( " History " ) ;
history = config - > readListEntry ( " History " ) ;
config - > setGroup ( " Settings " ) ;
config - > setGroup ( " Settings " ) ;
@ -1722,8 +1722,8 @@ StartMenu::StartMenu( int size, TQWidget * parent, WFlags f ) : TQWidget(parent,
m_spokenText = 0 ;
m_spokenText = 0 ;
_filterData = new KURIFilterData ( ) ;
_filterData = new KURIFilterData ( ) ;
int r , g , b , r2 , g2 , b2 ;
int r , g , b , r2 , g2 , b2 ;
K GlobalSettings: : baseColor ( ) . getRgb ( & r , & g , & b ) ;
TDE GlobalSettings: : baseColor ( ) . getRgb ( & r , & g , & b ) ;
K GlobalSettings: : textColor ( ) . getRgb ( & r2 , & g2 , & b2 ) ;
TDE GlobalSettings: : textColor ( ) . getRgb ( & r2 , & g2 , & b2 ) ;
commentColor . setRgb ( ( r + r2 ) / 2 , ( g + g2 ) / 2 , ( b + b2 ) / 2 ) ;
commentColor . setRgb ( ( r + r2 ) / 2 , ( g + g2 ) / 2 , ( b + b2 ) / 2 ) ;
infoColor . setRgb ( ( 3 * r + r2 ) / 4 , ( 3 * g + g2 ) / 4 , ( 3 * b + b2 ) / 4 ) ;
infoColor . setRgb ( ( 3 * r + r2 ) / 4 , ( 3 * g + g2 ) / 4 , ( 3 * b + b2 ) / 4 ) ;
currentHistoryItem = history . end ( ) ;
currentHistoryItem = history . end ( ) ;
@ -1732,7 +1732,7 @@ StartMenu::StartMenu( int size, TQWidget * parent, WFlags f ) : TQWidget(parent,
TQHBoxLayout * headerLayout = new TQHBoxLayout ( header , 5 , 3 ) ;
TQHBoxLayout * headerLayout = new TQHBoxLayout ( header , 5 , 3 ) ;
userButton = new StartMenuButton ( _size , " folder_home " , TQString ( getenv ( " USER " ) ) , " ~ " , StartMenuButton : : Status , header , " _B_ALI_HEADER " ) ;
userButton = new StartMenuButton ( _size , " folder_home " , TQString ( getenv ( " USER " ) ) , " ~ " , StartMenuButton : : Status , header , " _B_ALI_HEADER " ) ;
headerLayout - > addWidget ( userButton ) ;
headerLayout - > addWidget ( userButton ) ;
header - > setPaletteBackgroundColor ( K GlobalSettings: : highlightColor ( ) ) ;
header - > setPaletteBackgroundColor ( TDE GlobalSettings: : highlightColor ( ) ) ;
connect ( userButton , SIGNAL ( pressed ( const TQString & ) ) , this , SLOT ( execute ( const TQString & ) ) ) ;
connect ( userButton , SIGNAL ( pressed ( const TQString & ) ) , this , SLOT ( execute ( const TQString & ) ) ) ;
connect ( userButton , SIGNAL ( pressed ( const TQString & ) ) , this , SLOT ( close ( ) ) ) ;
connect ( userButton , SIGNAL ( pressed ( const TQString & ) ) , this , SLOT ( close ( ) ) ) ;
TQBoxLayout * mainLayout = new TQVBoxLayout ( ) ;
TQBoxLayout * mainLayout = new TQVBoxLayout ( ) ;
@ -1754,7 +1754,7 @@ StartMenu::StartMenu( int size, TQWidget * parent, WFlags f ) : TQWidget(parent,
categoryCombo - > setEditable ( true ) ;
categoryCombo - > setEditable ( true ) ;
categoryCombo - > setInsertionPolicy ( TQComboBox : : NoInsertion ) ;
categoryCombo - > setInsertionPolicy ( TQComboBox : : NoInsertion ) ;
searchLine - > installEventFilter ( this ) ;
searchLine - > installEventFilter ( this ) ;
searchLine - > setCompletionMode ( K GlobalSettings: : CompletionAuto ) ;
searchLine - > setCompletionMode ( TDE GlobalSettings: : CompletionAuto ) ;
config - > setGroup ( " Shortcuts " ) ;
config - > setGroup ( " Shortcuts " ) ;
// read shortcuts...
// read shortcuts...
TQStringList cuts = config - > readListEntry ( " Shortcuts " , ' , ' ) ;
TQStringList cuts = config - > readListEntry ( " Shortcuts " , ' , ' ) ;
@ -1813,7 +1813,7 @@ StartMenu::StartMenu( int size, TQWidget * parent, WFlags f ) : TQWidget(parent,
void StartMenu : : save ( )
void StartMenu : : save ( )
{
{
config = new K Config( " bStarter " , false , false ) ;
config = new TDE Config( " bStarter " , false , false ) ;
config - > setGroup ( " Shell " ) ;
config - > setGroup ( " Shell " ) ;
TQStringList lst ;
TQStringList lst ;
for ( TQStringList : : Iterator it = history . begin ( ) ; it ! = history . end ( ) ; + + it )
for ( TQStringList : : Iterator it = history . begin ( ) ; it ! = history . end ( ) ; + + it )
@ -2050,7 +2050,7 @@ void StartMenu::execute(const TQString& command)
_filterData - > setData ( command . stripWhiteSpace ( ) ) ;
_filterData - > setData ( command . stripWhiteSpace ( ) ) ;
TQStringList filters ;
TQStringList filters ;
filters < < " kurisearchfilter " < < " k shorturifilter" ;
filters < < " kurisearchfilter " < < " tde shorturifilter" ;
KURIFilter : : self ( ) - > filterURI ( * ( _filterData ) , filters ) ;
KURIFilter : : self ( ) - > filterURI ( * ( _filterData ) , filters ) ;
TQString cmd = ( _filterData - > uri ( ) . isLocalFile ( ) ? _filterData - > uri ( ) . path ( ) : _filterData - > uri ( ) . url ( ) ) ;
TQString cmd = ( _filterData - > uri ( ) . isLocalFile ( ) ? _filterData - > uri ( ) . path ( ) : _filterData - > uri ( ) . url ( ) ) ;