@ -125,7 +125,7 @@ static const int menuParam = 100000;
KSquirrel * KSquirrel : : m_instance = 0 ;
KSquirrel : : KSquirrel ( TQWidget * parent , const char * name )
: K MainWindow ( parent , name ) , DCOPObject ( name )
: TDE MainWindow ( parent , name ) , DCOPObject ( name )
{
// singleton setup
m_instance = this ;
@ -344,7 +344,7 @@ void KSquirrel::slotRaiseThumbView()
}
// Create location toolbar
void KSquirrel : : createLocationToolbar ( K ToolBar * pTLocation )
void KSquirrel : : createLocationToolbar ( TDE ToolBar * pTLocation )
{
// create new KHistoryCombo
pCurrentURL = new KHistoryCombo ( true , pTLocation , " history combobox " ) ;
@ -523,10 +523,10 @@ void KSquirrel::createWidgets(int createFirst)
// menubar & toolbar
menubar = new KMenuBar ( mainPage ) ;
tools = new K ToolBar( mainPage ) ;
tools = new TDE ToolBar( mainPage ) ;
// location toolbar
pTLocation = new K ToolBar( mainPage , TQString : : fromLatin1 ( " Location toolbar " ) ) ;
pTLocation = new TDE ToolBar( mainPage , TQString : : fromLatin1 ( " Location toolbar " ) ) ;
pTLocation - > setSizePolicy ( TQSizePolicy : : Fixed , TQSizePolicy : : Minimum ) ;
// main splitter
@ -681,10 +681,10 @@ void KSquirrel::slotFireDisk()
// Create menu
void KSquirrel : : createMenu ( KMenuBar * menubar )
{
pop_file = new K PopupMenu( menubar ) ;
pop_view = new K PopupMenu( menubar ) ;
pop_action = new K PopupMenu( menubar ) ;
pop_nav = new K PopupMenu( menubar ) ;
pop_file = new TDE PopupMenu( menubar ) ;
pop_view = new TDE PopupMenu( menubar ) ;
pop_action = new TDE PopupMenu( menubar ) ;
pop_nav = new TDE PopupMenu( menubar ) ;
// create bookmarks and filters
initBookmarks ( ) ;
@ -753,7 +753,7 @@ void KSquirrel::createMenu(KMenuBar *menubar)
}
// Create toolbar
void KSquirrel : : createToolbar ( K ToolBar * tools )
void KSquirrel : : createToolbar ( TDE ToolBar * tools )
{
pWidgetStack - > action ( " back " ) - > plug ( tools ) ;
pWidgetStack - > action ( " forward " ) - > plug ( tools ) ;
@ -784,44 +784,44 @@ void KSquirrel::createToolbar(KToolBar *tools)
configAnime ( ) ;
}
// Create all K Actions
// Create all TDE Actions
void KSquirrel : : createActions ( )
{
pAThumbs = new K ActionMenu( i18n ( " Thumbnail size " ) , " thumbnail " ) ;
pAThumbs = new TDE ActionMenu( i18n ( " Thumbnail size " ) , " thumbnail " ) ;
pAExit = KStdAction : : quit ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotClose ( ) ) , actionCollection ( ) , " SQ close " ) ;
pAConfigure = KStdAction : : preferences ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotOptions ( ) ) , actionCollection ( ) , " SQ Configure " ) ;
pAGLView = new K Action( i18n ( " Image window " ) , " raise " , CTRL + TQt : : Key_I , TQT_TQOBJECT ( this ) , TQT_SLOT ( raiseGLWidget ( ) ) , actionCollection ( ) , " SQ gl view widget " ) ;
pAGLView = new TDE Action( i18n ( " Image window " ) , " raise " , CTRL + TQt : : Key_I , TQT_TQOBJECT ( this ) , TQT_SLOT ( raiseGLWidget ( ) ) , actionCollection ( ) , " SQ gl view widget " ) ;
pARescan = KStdAction : : redisplay ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotRescan ( ) ) , actionCollection ( ) , " SQ rescan libraries " ) ;
pARescan - > setText ( i18n ( " Reload codecs from disk " ) ) ;
pAExtTools = new K Action( i18n ( " Configure external tools... " ) , " launch " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotExtTools ( ) ) , actionCollection ( ) , " SQ external tools " ) ;
pAFilters = new K Action( i18n ( " Configure filters... " ) , " filefind " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFilters ( ) ) , actionCollection ( ) , " SQ filters " ) ;
pAGotoTray = new K Action( i18n ( " Go to tray " ) , " background " , CTRL + TQt : : Key_T , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotGotoTray ( ) ) , actionCollection ( ) , " SQ goto tray " ) ;
pAOpenAndSet = new K Action( i18n ( " Open file and change directory " ) , " fileopen " , CTRL + ALT + TQt : : Key_O , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotOpenFileAndSet ( ) ) , actionCollection ( ) , " SQ open and set " ) ;
pAOpen = new K Action( i18n ( " Open file " ) , " fileopen " , CTRL + TQt : : Key_O , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotOpenFile ( ) ) , actionCollection ( ) , " SQ open file " ) ;
pATCMaster = new K Action( i18n ( " Thumbnail cache manager... " ) , " cache " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTCMaster ( ) ) , actionCollection ( ) , " SQ TC Master " ) ;
pAExtTools = new TDE Action( i18n ( " Configure external tools... " ) , " launch " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotExtTools ( ) ) , actionCollection ( ) , " SQ external tools " ) ;
pAFilters = new TDE Action( i18n ( " Configure filters... " ) , " filefind " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFilters ( ) ) , actionCollection ( ) , " SQ filters " ) ;
pAGotoTray = new TDE Action( i18n ( " Go to tray " ) , " background " , CTRL + TQt : : Key_T , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotGotoTray ( ) ) , actionCollection ( ) , " SQ goto tray " ) ;
pAOpenAndSet = new TDE Action( i18n ( " Open file and change directory " ) , " fileopen " , CTRL + ALT + TQt : : Key_O , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotOpenFileAndSet ( ) ) , actionCollection ( ) , " SQ open and set " ) ;
pAOpen = new TDE Action( i18n ( " Open file " ) , " fileopen " , CTRL + TQt : : Key_O , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotOpenFile ( ) ) , actionCollection ( ) , " SQ open file " ) ;
pATCMaster = new TDE Action( i18n ( " Thumbnail cache manager... " ) , " cache " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTCMaster ( ) ) , actionCollection ( ) , " SQ TC Master " ) ;
pASelectAll = KStdAction : : selectAll ( 0 , 0 , actionCollection ( ) , " SQ Select All " ) ;
pADeselectAll = KStdAction : : deselect ( 0 , 0 , actionCollection ( ) , " SQ Deselect All " ) ;
pARaiseListView = new K RadioAction( i18n ( " List " ) , " view_multicolumn " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotRaiseListView ( ) ) , actionCollection ( ) , " SQ raise list view " ) ;
pARaiseIconView = new K RadioAction( i18n ( " Icons " ) , " view_icon " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotRaiseIconView ( ) ) , actionCollection ( ) , " SQ raise icon view " ) ;
pARaiseDetailView = new K RadioAction( i18n ( " Details " ) , " view_detailed " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotRaiseDetailView ( ) ) , actionCollection ( ) , " SQ raise detailed view " ) ;
pARaiseThumbView = new K RadioAction( i18n ( " Thumbnails " ) , " view_icon " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotRaiseThumbView ( ) ) , actionCollection ( ) , " SQ raise thumbs view " ) ;
pARaiseListView = new TDE RadioAction( i18n ( " List " ) , " view_multicolumn " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotRaiseListView ( ) ) , actionCollection ( ) , " SQ raise list view " ) ;
pARaiseIconView = new TDE RadioAction( i18n ( " Icons " ) , " view_icon " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotRaiseIconView ( ) ) , actionCollection ( ) , " SQ raise icon view " ) ;
pARaiseDetailView = new TDE RadioAction( i18n ( " Details " ) , " view_detailed " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotRaiseDetailView ( ) ) , actionCollection ( ) , " SQ raise detailed view " ) ;
pARaiseThumbView = new TDE RadioAction( i18n ( " Thumbnails " ) , " view_icon " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotRaiseThumbView ( ) ) , actionCollection ( ) , " SQ raise thumbs view " ) ;
pAURL = new K ToggleAction( i18n ( " Show URL box " ) , " history " , CTRL + TQt : : Key_U , 0 , 0 , actionCollection ( ) , " SQ toggle url box " ) ;
pAURL = new TDE ToggleAction( i18n ( " Show URL box " ) , " history " , CTRL + TQt : : Key_U , 0 , 0 , actionCollection ( ) , " SQ toggle url box " ) ;
pASlideShow = new K Action( i18n ( " Slideshow " ) , " folder_video " , CTRL + TQt : : Key_S , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSlideShowStart ( ) ) , actionCollection ( ) , " SQ Slideshow " ) ;
pASlideShowDialog = new K Action( i18n ( " Slideshow advanced " ) , 0 , CTRL + ALT + TQt : : Key_S , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSlideShowDialog ( ) ) , actionCollection ( ) , " SQ SlideShow Dialog " ) ;
pARename = new K Action( i18n ( " Rename " ) , " file_move " , TQt : : Key_F2 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotRename ( ) ) , actionCollection ( ) , " SQ Rename " ) ;
pAPluginsInfo = new K Action( i18n ( " Codec information... " ) , " info " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPluginsInfo ( ) ) , actionCollection ( ) , " SQ Plugins Info " ) ;
pAPluginsDel = new K Action( i18n ( " Codec manager... " ) , 0 , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPluginsDel ( ) ) , actionCollection ( ) , " SQ Plugins Deleter " ) ;
pAGLInfo = new K Action( i18n ( " OpenGL information... " ) , 0 , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotGLInfo ( ) ) , actionCollection ( ) , " SQ OpenGL Info " ) ;
pASlideShow = new TDE Action( i18n ( " Slideshow " ) , " folder_video " , CTRL + TQt : : Key_S , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSlideShowStart ( ) ) , actionCollection ( ) , " SQ Slideshow " ) ;
pASlideShowDialog = new TDE Action( i18n ( " Slideshow advanced " ) , 0 , CTRL + ALT + TQt : : Key_S , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSlideShowDialog ( ) ) , actionCollection ( ) , " SQ SlideShow Dialog " ) ;
pARename = new TDE Action( i18n ( " Rename " ) , " file_move " , TQt : : Key_F2 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotRename ( ) ) , actionCollection ( ) , " SQ Rename " ) ;
pAPluginsInfo = new TDE Action( i18n ( " Codec information... " ) , " info " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPluginsInfo ( ) ) , actionCollection ( ) , " SQ Plugins Info " ) ;
pAPluginsDel = new TDE Action( i18n ( " Codec manager... " ) , 0 , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPluginsDel ( ) ) , actionCollection ( ) , " SQ Plugins Deleter " ) ;
pAGLInfo = new TDE Action( i18n ( " OpenGL information... " ) , 0 , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotGLInfo ( ) ) , actionCollection ( ) , " SQ OpenGL Info " ) ;
pAThumb1 = new K RadioAction( i18n ( " Medium thumbnails " ) , locate ( " data " , " images/thumbs/thumbs_medium.png " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotThumbsMedium ( ) ) , actionCollection ( ) , " SQ thumbs1 " ) ;
pAThumb2 = new K RadioAction( i18n ( " Large thumbnails " ) , locate ( " data " , " images/thumbs/thumbs_large.png " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotThumbsLarge ( ) ) , actionCollection ( ) , " SQ thumbs2 " ) ;
pAThumb3 = new K RadioAction( i18n ( " Huge thumbnails " ) , locate ( " data " , " images/thumbs/thumbs_huge.png " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotThumbsHuge ( ) ) , actionCollection ( ) , " SQ thumbs3 " ) ;
pAThumb1 = new TDE RadioAction( i18n ( " Medium thumbnails " ) , locate ( " data " , " images/thumbs/thumbs_medium.png " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotThumbsMedium ( ) ) , actionCollection ( ) , " SQ thumbs1 " ) ;
pAThumb2 = new TDE RadioAction( i18n ( " Large thumbnails " ) , locate ( " data " , " images/thumbs/thumbs_large.png " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotThumbsLarge ( ) ) , actionCollection ( ) , " SQ thumbs2 " ) ;
pAThumb3 = new TDE RadioAction( i18n ( " Huge thumbnails " ) , locate ( " data " , " images/thumbs/thumbs_huge.png " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotThumbsHuge ( ) ) , actionCollection ( ) , " SQ thumbs3 " ) ;
pASelectGroup = new K Action( i18n ( " Select group " ) , " viewmag+ " , CTRL + TQt : : Key_Plus , 0 , 0 , actionCollection ( ) , " SQ Select Group " ) ;
pADeselectGroup = new K Action( i18n ( " Deselect group " ) , " viewmag- " , CTRL + TQt : : Key_Minus , 0 , 0 , actionCollection ( ) , " SQ Deselect Group " ) ;
pASelectGroup = new TDE Action( i18n ( " Select group " ) , " viewmag+ " , CTRL + TQt : : Key_Plus , 0 , 0 , actionCollection ( ) , " SQ Select Group " ) ;
pADeselectGroup = new TDE Action( i18n ( " Deselect group " ) , " viewmag- " , CTRL + TQt : : Key_Minus , 0 , 0 , actionCollection ( ) , " SQ Deselect Group " ) ;
const TQString thumbs_size__ = TQString : : fromLatin1 ( " thumbs_size__ " ) ;
pAThumb1 - > setExclusiveGroup ( thumbs_size__ ) ;
@ -839,9 +839,9 @@ void KSquirrel::createActions()
pAThumbs - > insert ( pAThumb1 ) ;
pAThumbs - > insert ( pAThumb2 ) ;
pAThumbs - > insert ( pAThumb3 ) ;
pAThumbs - > insert ( new K ActionSeparator( actionCollection ( ) ) ) ;
pAThumbs - > insert ( new TDE ActionSeparator( actionCollection ( ) ) ) ;
pAThumbsE = new K ToggleAction( i18n ( " Extended thumbnails " ) , " " , CTRL + TQt : : Key_E , 0 , 0 , actionCollection ( ) , " SQ Extended thumbs " ) ;
pAThumbsE = new TDE ToggleAction( i18n ( " Extended thumbnails " ) , " " , CTRL + TQt : : Key_E , 0 , 0 , actionCollection ( ) , " SQ Extended thumbs " ) ;
tdeconf - > setGroup ( " Thumbnails " ) ;
pAThumbsE - > setChecked ( tdeconf - > readBoolEntry ( " extended " , false ) ) ;
connect ( pAThumbsE , TQT_SIGNAL ( toggled ( bool ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotExtendedToggled ( bool ) ) ) ;
@ -952,7 +952,7 @@ void KSquirrel::initBookmarks()
SQ_BookmarkOwner * bookmarkOwner = new SQ_BookmarkOwner ( this ) ;
// setup menu
bookmarks = new K ActionMenu( i18n ( " &Bookmarks " ) , " bookmark " , actionCollection ( ) , " bookmarks " ) ;
bookmarks = new TDE ActionMenu( i18n ( " &Bookmarks " ) , " bookmark " , actionCollection ( ) , " bookmarks " ) ;
bookmarkMenu = new KBookmarkMenu ( bmanager , bookmarkOwner , bookmarks - > popupMenu ( ) , actionCollection ( ) , true ) ;
connect ( bookmarkOwner , TQT_SIGNAL ( openURL ( const KURL & ) ) , pWidgetStack , TQT_SLOT ( setURLForCurrent ( const KURL & ) ) ) ;
@ -1107,7 +1107,7 @@ void KSquirrel::saveValues()
if ( ! SQ_GLWidget : : window ( ) - > fullscreen ( ) )
gl_view - > saveGeometry ( ) ;
tdeconf - > writeEntry ( " ignore " , dynamic_cast < K ToggleAction * > ( SQ_GLWidget : : window ( ) - > actionCollection ( ) - > action ( " if less " ) ) - > isChecked ( ) ) ;
tdeconf - > writeEntry ( " ignore " , dynamic_cast < TDE ToggleAction * > ( SQ_GLWidget : : window ( ) - > actionCollection ( ) - > action ( " if less " ) ) - > isChecked ( ) ) ;
tdeconf - > writeEntry ( " zoom type " , SQ_GLWidget : : window ( ) - > zoomType ( ) ) ;
tdeconf - > setGroup ( " Interface " ) ;
@ -1271,9 +1271,9 @@ void KSquirrel::preCreate()
SQ_SplashScreen : : advance ( ) ;
actionFilterMenu = new K PopupMenu;
actionFilterMenu = new TDE PopupMenu;
actionViews = new K PopupMenu;
actionViews = new TDE PopupMenu;
pARaiseListView - > plug ( actionViews ) ;
pARaiseIconView - > plug ( actionViews ) ;
@ -1439,7 +1439,7 @@ void KSquirrel::continueLoading()
void KSquirrel : : setCaption ( const TQString & cap )
{
#if 0
K MainWindow: : setCaption ( cap ) ;
TDE MainWindow: : setCaption ( cap ) ;
# endif
gl_view - > setCaption ( cap . isEmpty ( ) ? " ksquirrel " : kapp - > makeStdCaption ( cap ) ) ;
@ -1748,7 +1748,7 @@ void KSquirrel::control(const TQString &command)
{
int id = it . data ( ) ;
K Action * a = SQ_GLWidget : : window ( ) - > actionCollection ( ) - > action ( TQString : : fromLatin1 ( " action_%1 " ) . arg ( id ) ) ;
TDE Action * a = SQ_GLWidget : : window ( ) - > actionCollection ( ) - > action ( TQString : : fromLatin1 ( " action_%1 " ) . arg ( id ) ) ;
if ( a ) a - > activate ( ) ;
}