Rename a number of classes to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 11 years ago
parent 921ecd4264
commit 89fd8e2597

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

@ -43,14 +43,14 @@ class TQSplitter;
namespace TDEIO { class Job; } namespace TDEIO { class Job; }
class KMenuBar; class KMenuBar;
class KToolBar; class TDEToolBar;
class KStatusBar; class KStatusBar;
class KSystemTray; class KSystemTray;
class KAction; class TDEAction;
class KRadioAction; class TDERadioAction;
class KActionMenu; class TDEActionMenu;
class KHistoryCombo; class KHistoryCombo;
class KToggleAction; class TDEToggleAction;
class KBookmarkMenu; class KBookmarkMenu;
class SQ_SplashScreen; class SQ_SplashScreen;
@ -75,7 +75,7 @@ class SQ_SlideShowListing;
* Main widget, which can accept DCOP messages * Main widget, which can accept DCOP messages
*/ */
class KSquirrel : public KMainWindow, public DCOPObject class KSquirrel : public TDEMainWindow, public DCOPObject
{ {
Q_OBJECT Q_OBJECT
@ -139,13 +139,13 @@ class KSquirrel : public KMainWindow, public DCOPObject
/* /*
* Return popup menu with filters for filemanager. * Return popup menu with filters for filemanager.
*/ */
KPopupMenu* menuFilters(); TDEPopupMenu* menuFilters();
/* /*
* Return popup menu with view types - * Return popup menu with view types -
* Icon view, Detail view ... * Icon view, Detail view ...
*/ */
KPopupMenu* menuViews(); TDEPopupMenu* menuViews();
/* /*
* Get pointer to a widget, located in status bar. * Get pointer to a widget, located in status bar.
@ -207,7 +207,7 @@ class KSquirrel : public KMainWindow, public DCOPObject
* Create location toolbar and store a pointer to * Create location toolbar and store a pointer to
* it in passed argument. * it in passed argument.
*/ */
void createLocationToolbar(KToolBar *); void createLocationToolbar(TDEToolBar *);
/* /*
* Create statusbar. * Create statusbar.
@ -217,7 +217,7 @@ class KSquirrel : public KMainWindow, public DCOPObject
/* /*
* Create main toolbar. * Create main toolbar.
*/ */
void createToolbar(KToolBar *); void createToolbar(TDEToolBar *);
/* /*
* Create main menu. * Create main menu.
@ -225,7 +225,7 @@ class KSquirrel : public KMainWindow, public DCOPObject
void createMenu(KMenuBar *); void createMenu(KMenuBar *);
/* /*
* Create all KActions * Create all TDEActions
*/ */
void createActions(); void createActions();
@ -544,38 +544,38 @@ class KSquirrel : public KMainWindow, public DCOPObject
bool m_demo; bool m_demo;
KToggleAction *pAThumbsE; TDEToggleAction *pAThumbsE;
// main toolbar // main toolbar
KToolBar *tools; TDEToolBar *tools;
//main menu //main menu
KMenuBar *menubar; KMenuBar *menubar;
// different views (Icon view, List view ...) // different views (Icon view, List view ...)
KRadioAction *pARaiseListView, *pARaiseIconView, *pARaiseDetailView, *pARaiseThumbView; TDERadioAction *pARaiseListView, *pARaiseIconView, *pARaiseDetailView, *pARaiseThumbView;
// popup menu with thumbnail sizes // popup menu with thumbnail sizes
KActionMenu *pAThumbs; TDEActionMenu *pAThumbs;
// thumbnail sizes (small, normal, ...) // thumbnail sizes (small, normal, ...)
KRadioAction *pAThumb0, *pAThumb1, *pAThumb2, *pAThumb3; TDERadioAction *pAThumb0, *pAThumb1, *pAThumb2, *pAThumb3;
// show/hide url box // show/hide url box
KToggleAction *pAURL; TDEToggleAction *pAURL;
// popup menus: "File", "View" ... // popup menus: "File", "View" ...
KPopupMenu *pop_file, *pop_view, *pop_action, *pop_nav; TDEPopupMenu *pop_file, *pop_view, *pop_action, *pop_nav;
// filters and views // filters and views
KPopupMenu *actionFilterMenu, *actionViews; TDEPopupMenu *actionFilterMenu, *actionViews;
// menus with bookmarks // menus with bookmarks
KActionMenu *bookmarks; TDEActionMenu *bookmarks;
KBookmarkMenu *bookmarkMenu; KBookmarkMenu *bookmarkMenu;
// "Open file", "open file #2" // "Open file", "open file #2"
KAction *pAOpen, *pAOpenAndSet, TDEAction *pAOpen, *pAOpenAndSet,
*pARename, *pARename,
@ -646,14 +646,14 @@ class KSquirrel : public KMainWindow, public DCOPObject
TQStringList *sqFiltersName, *sqFiltersExt; TQStringList *sqFiltersName, *sqFiltersExt;
// "Configure KSquirrel" // "Configure KSquirrel"
KAction *pAConfigure, TDEAction *pAConfigure,
// "Select group", "Deselect group", "Select all", "Deselect" // "Select group", "Deselect group", "Select all", "Deselect"
// actions for filemanager // actions for filemanager
*pASelectGroup, *pADeselectGroup, *pASelectAll, *pADeselectAll; *pASelectGroup, *pADeselectGroup, *pASelectAll, *pADeselectAll;
// "Slideshow" // "Slideshow"
KAction *pASlideShow; TDEAction *pASlideShow;
/* /*
* Slideshow-specififc members. * Slideshow-specififc members.
@ -691,7 +691,7 @@ class KSquirrel : public KMainWindow, public DCOPObject
bool slideShowStop; bool slideShowStop;
// url box // url box
KToolBar *pTLocation; TDEToolBar *pTLocation;
// our config file // our config file
SQ_Config *tdeconf; SQ_Config *tdeconf;
@ -775,13 +775,13 @@ TQStringList* KSquirrel::filtersExtensions() const
} }
inline inline
KPopupMenu* KSquirrel::menuFilters() TDEPopupMenu* KSquirrel::menuFilters()
{ {
return actionFilterMenu; return actionFilterMenu;
} }
inline inline
KPopupMenu* KSquirrel::menuViews() TDEPopupMenu* KSquirrel::menuViews()
{ {
return actionViews; return actionViews;
} }

@ -78,51 +78,51 @@ KSquirrelPart::KSquirrelPart(TQWidget *parentWidget, const char *,
connect(gl, TQT_SIGNAL(message(const TQString &)), this, TQT_SIGNAL(setStatusBarText(const TQString&))); connect(gl, TQT_SIGNAL(message(const TQString &)), this, TQT_SIGNAL(setStatusBarText(const TQString&)));
setWidget(gl); setWidget(gl);
KAction *a; TDEAction *a;
a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_Plus)); a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_Plus));
new KAction(i18n("Zoom +"), "viewmag+", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart zoom in"); new TDEAction(i18n("Zoom +"), "viewmag+", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart zoom in");
a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_Minus)); a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_Minus));
new KAction(i18n("Zoom -"), "viewmag-", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart zoom out"); new TDEAction(i18n("Zoom -"), "viewmag-", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart zoom out");
a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_P)); a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_P));
new KAction(i18n("Properties"), "image", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart properties"); new TDEAction(i18n("Properties"), "image", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart properties");
a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_R)); a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_R));
new KAction(i18n("Normalize"), "rebuild", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart normalize"); new TDEAction(i18n("Normalize"), "rebuild", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart normalize");
// colorize & filters // colorize & filters
a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_D)); a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_D));
new KAction(i18n("Color balance..."), "colorize", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart colorbalance"); new TDEAction(i18n("Color balance..."), "colorize", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart colorbalance");
a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_U)); a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_U));
new KAction(i18n("Apply filter..."), "effect", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart filter"); new TDEAction(i18n("Apply filter..."), "effect", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart filter");
// rotate // rotate
a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_Left+CTRL)); a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_Left+CTRL));
new KAction(i18n("Rotate left"), "rotate_ccw", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart rotateleft"); new TDEAction(i18n("Rotate left"), "rotate_ccw", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart rotateleft");
a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_Right+CTRL)); a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_Right+CTRL));
new KAction(i18n("Rotate right"), "rotate_cw", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart rotateright"); new TDEAction(i18n("Rotate right"), "rotate_cw", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart rotateright");
// copy/move // copy/move
a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_F5)); a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_F5));
new KAction(i18n("Copy to..."), "editcopy", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart copyto"); new TDEAction(i18n("Copy to..."), "editcopy", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart copyto");
a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_F7)); a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_F7));
new KAction(i18n("Move to..."), "editcut", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart moveto"); new TDEAction(i18n("Move to..."), "editcut", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart moveto");
a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_F6)); a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_F6));
new KAction(i18n("Copy to last folder"), "", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart copy"); new TDEAction(i18n("Copy to last folder"), "", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart copy");
a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_F8)); a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_F8));
new KAction(i18n("Move to last folder"), "", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart move"); new TDEAction(i18n("Move to last folder"), "", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart move");
a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_S)); a = gl->actionCollection()->action(TQString("action_%1").arg(TQt::Key_S));
new KAction(i18n("Save As..."), "filesaveas", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart saveas"); new TDEAction(i18n("Save As..."), "filesaveas", 0, a, TQT_SLOT(activate()), actionCollection(), "ksquirrelpart saveas");
sa = new KSelectAction(i18n("Zoom"), 0, actionCollection(), "ksquirrelpart zoom"); sa = new TDESelectAction(i18n("Zoom"), 0, actionCollection(), "ksquirrelpart zoom");
sa->setEditable(true); sa->setEditable(true);
TQStringList zooms; TQStringList zooms;
@ -152,11 +152,11 @@ KSquirrelPart::KSquirrelPart(TQWidget *parentWidget, const char *,
TQString group = "selection_group"; TQString group = "selection_group";
ar = new KToggleAction(i18n("Rectangle"), "rectangle", KShortcut(TQt::Key_R+CTRL), 0, 0, actionCollection(), "ksquirrelpart rectangle"); ar = new TDEToggleAction(i18n("Rectangle"), "rectangle", TDEShortcut(TQt::Key_R+CTRL), 0, 0, actionCollection(), "ksquirrelpart rectangle");
ar->setExclusiveGroup(group); ar->setExclusiveGroup(group);
connect(ar, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotSelectionRect(bool))); connect(ar, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotSelectionRect(bool)));
ae = new KToggleAction(i18n("Ellipse"), "circle", KShortcut(TQt::Key_E+CTRL), 0, 0, actionCollection(), "ksquirrelpart ellipse"); ae = new TDEToggleAction(i18n("Ellipse"), "circle", TDEShortcut(TQt::Key_E+CTRL), 0, 0, actionCollection(), "ksquirrelpart ellipse");
ae->setExclusiveGroup(group); ae->setExclusiveGroup(group);
connect(ae, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotSelectionEllipse(bool))); connect(ae, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotSelectionEllipse(bool)));

@ -21,8 +21,8 @@
#include <tdeparts/part.h> #include <tdeparts/part.h>
class TDEAboutData; class TDEAboutData;
class KToggleAction; class TDEToggleAction;
class KSelectAction; class TDESelectAction;
class SQ_GLWidget; class SQ_GLWidget;
@ -75,8 +75,8 @@ class KSquirrelPart : public KParts::ReadOnlyPart
private: private:
SQ_GLWidget *gl; SQ_GLWidget *gl;
KToggleAction *ar, *ae; TDEToggleAction *ar, *ae;
KSelectAction *sa; TDESelectAction *sa;
KSquirrelPartBrowserExtension *ext; KSquirrelPartBrowserExtension *ext;
}; };

@ -121,7 +121,7 @@ SQ_GLWidget::SQ_GLWidget(TQWidget *parent, const char *name) : TQGLWidget(parent
images = 0; images = 0;
parts_broken = 0; parts_broken = 0;
ac = new KActionCollection(this, TQT_TQOBJECT(this), "GLWidget actionCollection"); ac = new TDEActionCollection(this, TQT_TQOBJECT(this), "GLWidget actionCollection");
changed = blocked = decoded = reset_mode = false; changed = blocked = decoded = reset_mode = false;
movetype = -1; movetype = -1;
buffer = new RGBA [512 * 512]; buffer = new RGBA [512 * 512];
@ -169,7 +169,7 @@ SQ_GLWidget::SQ_GLWidget(TQWidget *parent, const char *name) : TQGLWidget(parent
setAcceptDrops(true); setAcceptDrops(true);
// popup menu with image pages // popup menu with image pages
images = new KPopupMenu; images = new TDEPopupMenu;
images->setCheckable(true); images->setCheckable(true);
// create actions // create actions

@ -48,11 +48,11 @@ struct RGBA;
#define MATRIX_Y tab->matrix[7] #define MATRIX_Y tab->matrix[7]
#define MATRIX_Z tab->matrix[11] #define MATRIX_Z tab->matrix[11]
class KAction; class TDEAction;
class KActionCollection; class TDEActionCollection;
class KToggleAction; class TDEToggleAction;
class KPopupMenu; class TDEPopupMenu;
class KRadioAction; class TDERadioAction;
class KTempFile; class KTempFile;
namespace TDEIO { class Job; } namespace TDEIO { class Job; }
@ -168,7 +168,7 @@ class SQ_GLWidget : public TQGLWidget
*/ */
GLfloat getZoomPercents() const; GLfloat getZoomPercents() const;
KActionCollection* actionCollection() const; TDEActionCollection* actionCollection() const;
/* /*
* Are we in fullscreen state ? * Are we in fullscreen state ?
@ -332,7 +332,7 @@ class SQ_GLWidget : public TQGLWidget
void decodeFailedOn0(const int err_code); void decodeFailedOn0(const int err_code);
/* /*
* Create KActions. * Create TDEActions.
*/ */
void createActions(); void createActions();
@ -519,8 +519,8 @@ class SQ_GLWidget : public TQGLWidget
void slotCopyResult(TDEIO::Job *); void slotCopyResult(TDEIO::Job *);
private: private:
KAction *pASelectionClear; TDEAction *pASelectionClear;
KToggleAction *pAFull, *pAIfLess, *pAZoomW, TDEToggleAction *pAFull, *pAIfLess, *pAZoomW,
*pAZoomH, *pAZoomWH, *pAZoom100, *pAZoomH, *pAZoomWH, *pAZoom100,
*pAZoomLast, *pAZoomLast,
*pASelectionEllipse, *pASelectionRect; *pASelectionEllipse, *pASelectionRect;
@ -528,14 +528,14 @@ class SQ_GLWidget : public TQGLWidget
SQ_ToolButton *pAToolQuick, *pAToolFull, *pAToolProp, *pAToolPrint; SQ_ToolButton *pAToolQuick, *pAToolFull, *pAToolProp, *pAToolPrint;
SQ_ToolButtonPopup *pAToolZoom, *pAToolImages; SQ_ToolButtonPopup *pAToolZoom, *pAToolImages;
KActionCollection *ac, *acMain; TDEActionCollection *ac, *acMain;
TQPopupMenu *menu, *menuFile, *menuImage; TQPopupMenu *menu, *menuFile, *menuImage;
int id_saveas, id_settings, int id_saveas, id_settings,
id_f5, id_f6, id_f7, id_f8, id_del, id_f5, id_f6, id_f7, id_f8, id_del,
id_prop; id_prop;
// popup menu with zoom types (fit width, fit height, zoom 100%...) // popup menu with zoom types (fit width, fit height, zoom 100%...)
KPopupMenu *zoomMenu, *selectionMenu, TDEPopupMenu *zoomMenu, *selectionMenu,
// popup menu with image pages // popup menu with image pages
*images; *images;
@ -594,7 +594,7 @@ bool SQ_GLWidget::isnice()
} }
inline inline
KActionCollection* SQ_GLWidget::actionCollection() const TDEActionCollection* SQ_GLWidget::actionCollection() const
{ {
return ac; return ac;
} }

@ -36,8 +36,8 @@
#include "sq_glwidget_helpers.h" #include "sq_glwidget_helpers.h"
SQ_ToolButtonPopup::SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, KToolBar *parent) SQ_ToolButtonPopup::SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, TDEToolBar *parent)
: KToolBarButton(pix, -1, parent, 0, textLabel) : TDEToolBarButton(pix, -1, parent, 0, textLabel)
{ {
setFixedWidth(SQ_ToolButton::fixedWidth()); setFixedWidth(SQ_ToolButton::fixedWidth());
} }
@ -46,7 +46,7 @@ SQ_ToolButtonPopup::~SQ_ToolButtonPopup()
{} {}
SQ_ToolButton::SQ_ToolButton(const TQIconSet &iconSet, const TQString &textLabel, SQ_ToolButton::SQ_ToolButton(const TQIconSet &iconSet, const TQString &textLabel,
TQObject *receiver, const char *slot, KToolBar *parent, const char *name) TQObject *receiver, const char *slot, TDEToolBar *parent, const char *name)
: TQToolButton(iconSet, textLabel, TQString(), receiver, slot, parent, name) : TQToolButton(iconSet, textLabel, TQString(), receiver, slot, parent, name)
{ {
setFixedWidth(SQ_ToolButton::fixedWidth()); setFixedWidth(SQ_ToolButton::fixedWidth());

@ -22,14 +22,14 @@
class TQWMatrix; class TQWMatrix;
class KToolBar; class TDEToolBar;
struct RGBA; struct RGBA;
class SQ_ToolButtonPopup : public KToolBarButton class SQ_ToolButtonPopup : public TDEToolBarButton
{ {
public: public:
SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, KToolBar *parent); SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, TDEToolBar *parent);
~SQ_ToolButtonPopup(); ~SQ_ToolButtonPopup();
}; };
@ -37,7 +37,7 @@ class SQ_ToolButton : public TQToolButton
{ {
public: public:
SQ_ToolButton(const TQIconSet &iconSet, const TQString &textLabel, TQObject *receiver, SQ_ToolButton(const TQIconSet &iconSet, const TQString &textLabel, TQObject *receiver,
const char *slot, KToolBar *parent, const char *name = 0); const char *slot, TDEToolBar *parent, const char *name = 0);
~SQ_ToolButton(); ~SQ_ToolButton();
static int fixedWidth(); static int fixedWidth();

@ -78,18 +78,18 @@
// Create actions // Create actions
void SQ_GLWidget::createActions() void SQ_GLWidget::createActions()
{ {
pASelectionRect = new KToggleAction(i18n("Rectangle"), TQPixmap(locate("data", "images/actions/glselection_rect.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotSelectionRect()), ac, "SQ Selection Rect"); pASelectionRect = new TDEToggleAction(i18n("Rectangle"), TQPixmap(locate("data", "images/actions/glselection_rect.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotSelectionRect()), ac, "SQ Selection Rect");
pASelectionEllipse = new KToggleAction(i18n("Ellipse"), TQPixmap(locate("data", "images/actions/glselection_ellipse.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotSelectionEllipse()), ac, "SQ Selection Ellipse"); pASelectionEllipse = new TDEToggleAction(i18n("Ellipse"), TQPixmap(locate("data", "images/actions/glselection_ellipse.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotSelectionEllipse()), ac, "SQ Selection Ellipse");
pASelectionClear = new KAction(i18n("Clear"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotSelectionClear()), ac, "SQ Selection Clear"); pASelectionClear = new TDEAction(i18n("Clear"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotSelectionClear()), ac, "SQ Selection Clear");
pAZoomW = new KToggleAction(i18n("Fit width"), TQPixmap(locate("data", "images/actions/zoomW.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoomW()), ac, "SQ ZoomW"); pAZoomW = new TDEToggleAction(i18n("Fit width"), TQPixmap(locate("data", "images/actions/zoomW.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoomW()), ac, "SQ ZoomW");
pAZoomH = new KToggleAction(i18n("Fit height"), TQPixmap(locate("data", "images/actions/zoomH.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoomH()), ac, "SQ ZoomH"); pAZoomH = new TDEToggleAction(i18n("Fit height"), TQPixmap(locate("data", "images/actions/zoomH.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoomH()), ac, "SQ ZoomH");
pAZoomWH = new KToggleAction(i18n("Fit image"), TQPixmap(locate("data", "images/actions/zoomWH.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoomWH()), ac, "SQ ZoomWH"); pAZoomWH = new TDEToggleAction(i18n("Fit image"), TQPixmap(locate("data", "images/actions/zoomWH.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoomWH()), ac, "SQ ZoomWH");
pAZoom100 = new KToggleAction(i18n("Zoom 100%"), TQPixmap(locate("data", "images/actions/zoom100.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoom100()), ac, "SQ Zoom100"); pAZoom100 = new TDEToggleAction(i18n("Zoom 100%"), TQPixmap(locate("data", "images/actions/zoom100.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoom100()), ac, "SQ Zoom100");
pAZoomLast = new KToggleAction(i18n("Leave previous zoom"), TQPixmap(locate("data", "images/actions/zoomlast.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoomLast()), ac, "SQ ZoomLast"); pAZoomLast = new TDEToggleAction(i18n("Leave previous zoom"), TQPixmap(locate("data", "images/actions/zoomlast.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoomLast()), ac, "SQ ZoomLast");
pAIfLess = new KToggleAction(i18n("Ignore, if image is smaller than window"), TQPixmap(locate("data", "images/actions/ifless.png")), 0, 0, 0, ac, "if less"); pAIfLess = new TDEToggleAction(i18n("Ignore, if image is smaller than window"), TQPixmap(locate("data", "images/actions/ifless.png")), 0, 0, 0, ac, "if less");
pAFull = new KToggleAction(TQString(), 0, 0, 0, ac, "SQ GL Full"); pAFull = new TDEToggleAction(TQString(), 0, 0, 0, ac, "SQ GL Full");
TQString squirrel_zoom_actions = TQString::fromLatin1("squirrel_zoom_actions"); TQString squirrel_zoom_actions = TQString::fromLatin1("squirrel_zoom_actions");
pAZoomW->setExclusiveGroup(squirrel_zoom_actions); pAZoomW->setExclusiveGroup(squirrel_zoom_actions);
@ -115,10 +115,10 @@ void SQ_GLWidget::createActions()
void SQ_GLWidget::createToolbar() void SQ_GLWidget::createToolbar()
{ {
zoomMenu = new KPopupMenu; zoomMenu = new TDEPopupMenu;
#ifndef KSQUIRREL_PART #ifndef KSQUIRREL_PART
selectionMenu = new KPopupMenu; selectionMenu = new TDEPopupMenu;
SQ_ToolButton *pATool; SQ_ToolButton *pATool;
@ -156,12 +156,12 @@ void SQ_GLWidget::createToolbar()
/* /*
* We will create TQToolButtons and put them in toolbar. * We will create TQToolButtons and put them in toolbar.
* Of course, we can just KAction::plug(), BUT plugged KActions * Of course, we can just TDEAction::plug(), BUT plugged TDEActions
* will produce buttons, which cann't be clicked twise! I think * will produce buttons, which cann't be clicked twise! I think
* plugged KActions will treat our attempt as double-click, not two single-clicks. * plugged TDEActions will treat our attempt as double-click, not two single-clicks.
* On the other hand, we can click TQToolButton as frequently as we want. * On the other hand, we can click TQToolButton as frequently as we want.
* *
* Plugged KActions also don't know about autorepeat :( * Plugged TDEActions also don't know about autorepeat :(
*/ */
new SQ_ToolButton(TQPixmap(locate("data", "images/actions/file_first.png")), i18n("Go to first image"), TQT_TQOBJECT(this), TQT_SLOT(slotFirst()), toolbar); new SQ_ToolButton(TQPixmap(locate("data", "images/actions/file_first.png")), i18n("Go to first image"), TQT_TQOBJECT(this), TQT_SLOT(slotFirst()), toolbar);
pATool = new SQ_ToolButton(TQPixmap(locate("data", "images/actions/file_prev.png")), i18n("Previous image"), TQT_TQOBJECT(this), TQT_SLOT(slotPrev()), toolbar); pATool = new SQ_ToolButton(TQPixmap(locate("data", "images/actions/file_prev.png")), i18n("Previous image"), TQT_TQOBJECT(this), TQT_SLOT(slotPrev()), toolbar);
@ -867,7 +867,7 @@ void SQ_GLWidget::initAccelsAndMenu()
menu->insertItem(i18n("Image"), menuImage); menu->insertItem(i18n("Image"), menuImage);
#define SQ_ADD_KACTION(b) \ #define SQ_ADD_KACTION(b) \
(new KAction(TQString(), b, TQT_TQOBJECT(this), TQT_SLOT(slotAccelActivated()), ac, TQString::fromLatin1("action_%1").arg(b))) (new TDEAction(TQString(), b, TQT_TQOBJECT(this), TQT_SLOT(slotAccelActivated()), ac, TQString::fromLatin1("action_%1").arg(b)))
id_saveas = menuFile->insertItem(SQ_IconLoader::instance()->loadIcon("filesaveas", KIcon::Desktop, KIcon::SizeSmall), i18n("Save As...") + "\tS", SQ_ADD_KACTION(TQt::Key_S), TQT_SLOT(activate())); id_saveas = menuFile->insertItem(SQ_IconLoader::instance()->loadIcon("filesaveas", KIcon::Desktop, KIcon::SizeSmall), i18n("Save As...") + "\tS", SQ_ADD_KACTION(TQt::Key_S), TQT_SLOT(activate()));
@ -992,9 +992,9 @@ void SQ_GLWidget::initAccelsAndMenu()
void SQ_GLWidget::slotAccelActivated() void SQ_GLWidget::slotAccelActivated()
{ {
KAction *accel = static_cast<KAction *>(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME *>(sender()))); TDEAction *accel = static_cast<TDEAction *>(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME *>(sender())));
KShortcut ks = accel->shortcut(); TDEShortcut ks = accel->shortcut();
if(!ks.compare(TQt::Key_Left)) matrix_move(movefactor, 0); if(!ks.compare(TQt::Key_Left)) matrix_move(movefactor, 0);
else if(!ks.compare(TQt::Key_Right)) matrix_move(-movefactor, 0); else if(!ks.compare(TQt::Key_Right)) matrix_move(-movefactor, 0);

@ -934,18 +934,18 @@
<include location="local" impldecl="in implementation">sq_imageproperties.ui.h</include> <include location="local" impldecl="in implementation">sq_imageproperties.ui.h</include>
</includes> </includes>
<forwards> <forwards>
<forward>class KPopupMenu;</forward> <forward>class TDEPopupMenu;</forward>
<forward>class KAction;</forward> <forward>class TDEAction;</forward>
<forward>namespace TDEIO { class Job; }</forward> <forward>namespace TDEIO { class Job; }</forward>
</forwards> </forwards>
<variables> <variables>
<variable access="private">KURL url;</variable> <variable access="private">KURL url;</variable>
<variable access="private">QWidget *kew;</variable> <variable access="private">QWidget *kew;</variable>
<variable access="private">TQPixmap ok, error;</variable> <variable access="private">TQPixmap ok, error;</variable>
<variable access="private">KPopupMenu *menu;</variable> <variable access="private">TDEPopupMenu *menu;</variable>
<variable access="private">TQListViewItem *data;</variable> <variable access="private">TQListViewItem *data;</variable>
<variable access="private">int z, exifMode;</variable> <variable access="private">int z, exifMode;</variable>
<variable access="private">KAction *copy, *copyentry, *copyall;</variable> <variable access="private">TDEAction *copy, *copyentry, *copyall;</variable>
<variable access="private">TQString file;</variable> <variable access="private">TQString file;</variable>
</variables> </variables>
<Q_SLOTS> <Q_SLOTS>

@ -24,10 +24,10 @@
void SQ_ImageProperties::init() void SQ_ImageProperties::init()
{ {
menu = new KPopupMenu; menu = new TDEPopupMenu;
copy = KStdAction::copy(TQT_TQOBJECT(this), TQT_SLOT(slotCopyString()), 0); copy = KStdAction::copy(TQT_TQOBJECT(this), TQT_SLOT(slotCopyString()), 0);
copyentry = new KAction(i18n("Copy entry"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotCopyEntry()), 0); copyentry = new TDEAction(i18n("Copy entry"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotCopyEntry()), 0);
copyall = new KAction(i18n("Copy all entries"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotCopyAll()), 0); copyall = new TDEAction(i18n("Copy all entries"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotCopyAll()), 0);
copyentry->setIcon(copy->icon()); copyentry->setIcon(copy->icon());
copyall->setIcon(copy->icon()); copyall->setIcon(copy->icon());

@ -22,7 +22,7 @@
#include "sq_popupmenu.h" #include "sq_popupmenu.h"
SQ_PopupMenu::SQ_PopupMenu(TQWidget *parent, const char *name) SQ_PopupMenu::SQ_PopupMenu(TQWidget *parent, const char *name)
: KPopupMenu(parent, name), title(0) : TDEPopupMenu(parent, name), title(0)
{} {}
SQ_PopupMenu::~SQ_PopupMenu() SQ_PopupMenu::~SQ_PopupMenu()
@ -30,10 +30,10 @@ SQ_PopupMenu::~SQ_PopupMenu()
void SQ_PopupMenu::insertTitle(const TQString &t) void SQ_PopupMenu::insertTitle(const TQString &t)
{ {
title = KPopupMenu::insertTitle(t); title = TDEPopupMenu::insertTitle(t);
} }
void SQ_PopupMenu::changeTitle(const TQString &t) void SQ_PopupMenu::changeTitle(const TQString &t)
{ {
KPopupMenu::changeTitle(title, t); TDEPopupMenu::changeTitle(title, t);
} }

@ -24,7 +24,7 @@
*@author Baryshev Dmitry *@author Baryshev Dmitry
*/ */
class SQ_PopupMenu : public KPopupMenu class SQ_PopupMenu : public TDEPopupMenu
{ {
public: public:
SQ_PopupMenu(TQWidget *parent = 0, const char *name = 0); SQ_PopupMenu(TQWidget *parent = 0, const char *name = 0);

@ -108,7 +108,7 @@ SQ_CategoriesView::SQ_CategoriesView(TQWidget *parent, const char *name) : KFile
connect(TQT_TQOBJECT(this), TQT_SIGNAL(spacePressed(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SIGNAL(executed(TQListViewItem*))); connect(TQT_TQOBJECT(this), TQT_SIGNAL(spacePressed(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SIGNAL(executed(TQListViewItem*)));
connect(TQT_TQOBJECT(this), TQT_SIGNAL(returnPressed(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SIGNAL(executed(TQListViewItem*))); connect(TQT_TQOBJECT(this), TQT_SIGNAL(returnPressed(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SIGNAL(executed(TQListViewItem*)));
connect(TQT_TQOBJECT(this), TQT_SIGNAL(executed(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotItemExecuted(TQListViewItem*))); connect(TQT_TQOBJECT(this), TQT_SIGNAL(executed(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotItemExecuted(TQListViewItem*)));
connect(TQT_TQOBJECT(this), TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)), TQT_TQOBJECT(this), TQT_SLOT(slotContextMenu(KListView*, TQListViewItem*, const TQPoint&))); connect(TQT_TQOBJECT(this), TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), TQT_TQOBJECT(this), TQT_SLOT(slotContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)));
} }
SQ_CategoriesView::~SQ_CategoriesView() SQ_CategoriesView::~SQ_CategoriesView()
@ -116,7 +116,7 @@ SQ_CategoriesView::~SQ_CategoriesView()
delete m_dir; delete m_dir;
} }
void SQ_CategoriesView::slotContextMenu(KListView *, TQListViewItem *item, const TQPoint &p) void SQ_CategoriesView::slotContextMenu(TDEListView *, TQListViewItem *item, const TQPoint &p)
{ {
if(item) if(item)
{ {
@ -158,7 +158,7 @@ SQ_CategoriesBox::SQ_CategoriesBox(TQWidget *parent, const char *name) : TQVBox(
lastdir = i18n("New Category"); lastdir = i18n("New Category");
view = new SQ_CategoriesView(this); view = new SQ_CategoriesView(this);
toolbar = new KToolBar(this); toolbar = new TDEToolBar(this);
connect(view, TQT_SIGNAL(dropped(TQDropEvent*, TQListViewItem*, TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotDropped(TQDropEvent*, TQListViewItem*, TQListViewItem*))); connect(view, TQT_SIGNAL(dropped(TQDropEvent*, TQListViewItem*, TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotDropped(TQDropEvent*, TQListViewItem*, TQListViewItem*)));

@ -23,7 +23,7 @@
#include <tdefiletreeview.h> #include <tdefiletreeview.h>
#include <tdefiletreebranch.h> #include <tdefiletreebranch.h>
class KToolBar; class TDEToolBar;
class SQ_CategoryBrowserMenu; class SQ_CategoryBrowserMenu;
class SQ_TreeViewMenu; class SQ_TreeViewMenu;
@ -62,7 +62,7 @@ class SQ_CategoriesView : public KFileTreeView
private slots: private slots:
void slotItemExecuted(TQListViewItem *item); void slotItemExecuted(TQListViewItem *item);
void slotContextMenu(KListView *, TQListViewItem *i, const TQPoint &p); void slotContextMenu(TDEListView *, TQListViewItem *i, const TQPoint &p);
private: private:
KFileTreeBranch *root; KFileTreeBranch *root;
@ -115,7 +115,7 @@ class SQ_CategoriesBox : public TQVBox
private: private:
SQ_CategoriesView *view; SQ_CategoriesView *view;
KToolBar *toolbar; TDEToolBar *toolbar;
TQString lastdir, copypath; TQString lastdir, copypath;
SQ_CategoryBrowserMenu *menu; SQ_CategoryBrowserMenu *menu;

@ -251,7 +251,7 @@ SQ_DirectoryBasket::SQ_DirectoryBasket(TQWidget *parent, const char *name) : KFi
connect(TQT_TQOBJECT(this), TQT_SIGNAL(spacePressed(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SIGNAL(executed(TQListViewItem*))); connect(TQT_TQOBJECT(this), TQT_SIGNAL(spacePressed(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SIGNAL(executed(TQListViewItem*)));
connect(TQT_TQOBJECT(this), TQT_SIGNAL(returnPressed(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SIGNAL(executed(TQListViewItem*))); connect(TQT_TQOBJECT(this), TQT_SIGNAL(returnPressed(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SIGNAL(executed(TQListViewItem*)));
connect(TQT_TQOBJECT(this), TQT_SIGNAL(executed(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotItemExecuted(TQListViewItem*))); connect(TQT_TQOBJECT(this), TQT_SIGNAL(executed(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotItemExecuted(TQListViewItem*)));
connect(TQT_TQOBJECT(this), TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)), TQT_TQOBJECT(this), TQT_SLOT(slotContextMenu(KListView*, TQListViewItem*, const TQPoint&))); connect(TQT_TQOBJECT(this), TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), TQT_TQOBJECT(this), TQT_SLOT(slotContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)));
connect(TQT_TQOBJECT(this), TQT_SIGNAL(dropped(TQDropEvent*, TQListViewItem*, TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotDropped(TQDropEvent*, TQListViewItem*, TQListViewItem*))); connect(TQT_TQOBJECT(this), TQT_SIGNAL(dropped(TQDropEvent*, TQListViewItem*, TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotDropped(TQDropEvent*, TQListViewItem*, TQListViewItem*)));
connect(TQT_TQOBJECT(this), TQT_SIGNAL(itemRenamed(TQListViewItem *, int, const TQString &)), TQT_TQOBJECT(this), TQT_SLOT(slotItemRenamedMy(TQListViewItem *, int, const TQString &))); connect(TQT_TQOBJECT(this), TQT_SIGNAL(itemRenamed(TQListViewItem *, int, const TQString &)), TQT_TQOBJECT(this), TQT_SLOT(slotItemRenamedMy(TQListViewItem *, int, const TQString &)));
connect(TQT_TQOBJECT(this), TQT_SIGNAL(itemAdded(TQListViewItem *)), TQT_TQOBJECT(this), TQT_SLOT(slotSort())); connect(TQT_TQOBJECT(this), TQT_SIGNAL(itemAdded(TQListViewItem *)), TQT_TQOBJECT(this), TQT_SLOT(slotSort()));
@ -388,7 +388,7 @@ void SQ_DirectoryBasket::slotItemExecuted(TQListViewItem *item)
} }
} }
void SQ_DirectoryBasket::slotContextMenu(KListView *, TQListViewItem *item, const TQPoint &p) void SQ_DirectoryBasket::slotContextMenu(TDEListView *, TQListViewItem *item, const TQPoint &p)
{ {
if(item) if(item)
{ {

@ -174,7 +174,7 @@ class SQ_DirectoryBasket : public KFileTreeView
private slots: private slots:
void slotDropped(TQDropEvent *, TQListViewItem *, TQListViewItem *); void slotDropped(TQDropEvent *, TQListViewItem *, TQListViewItem *);
void slotItemExecuted(TQListViewItem *item); void slotItemExecuted(TQListViewItem *item);
void slotContextMenu(KListView *, TQListViewItem *item, const TQPoint &p); void slotContextMenu(TDEListView *, TQListViewItem *item, const TQPoint &p);
void slotNewDirectory(); void slotNewDirectory();
void slotSortReal(); void slotSortReal();
void slotSort(); void slotSort();

@ -237,7 +237,7 @@ void SQ_ImageBasket::slotViewChanged(KFileView *v)
if(iv) if(iv)
{ {
KAction *a; TDEAction *a;
a = iv->actionCollection()->action("zoomIn"); a = iv->actionCollection()->action("zoomIn");
if(a) a->setShortcut(0); if(a) a->setShortcut(0);
@ -267,7 +267,7 @@ void SQ_ImageBasket::activatedMenu(const KFileItem *, const TQPoint &pos)
setupMenu(KDirOperator::AllActions ^ KDirOperator::NavActions ^ KDirOperator::ViewActions); setupMenu(KDirOperator::AllActions ^ KDirOperator::NavActions ^ KDirOperator::ViewActions);
updateSelectionDependentActions(); updateSelectionDependentActions();
KActionMenu *pADirOperatorMenu = dynamic_cast<KActionMenu *>(actionCollection()->action("popupMenu")); TDEActionMenu *pADirOperatorMenu = dynamic_cast<TDEActionMenu *>(actionCollection()->action("popupMenu"));
pADirOperatorMenu->popupMenu()->insertItem(i18n("Synchronize"), this, TQT_SLOT(slotSync()), 0, -1, 0); pADirOperatorMenu->popupMenu()->insertItem(i18n("Synchronize"), this, TQT_SLOT(slotSync()), 0, -1, 0);
pADirOperatorMenu->popupMenu()->insertSeparator(1); pADirOperatorMenu->popupMenu()->insertSeparator(1);

@ -34,11 +34,11 @@
SQ_MountView * SQ_MountView::m_inst = 0; SQ_MountView * SQ_MountView::m_inst = 0;
SQ_MountView::SQ_MountView(TQWidget *parent, const char *name) : KListView(parent, name), m_columns(-1) SQ_MountView::SQ_MountView(TQWidget *parent, const char *name) : TDEListView(parent, name), m_columns(-1)
{ {
m_inst = this; m_inst = this;
popup = new KPopupMenu; popup = new TDEPopupMenu;
id_mount = popup->insertItem(SQ_IconLoader::instance()->loadIcon("hdd_mount", KIcon::Desktop, KIcon::SizeSmall), id_mount = popup->insertItem(SQ_IconLoader::instance()->loadIcon("hdd_mount", KIcon::Desktop, KIcon::SizeSmall),
i18n("Mount"), this, TQT_SLOT(slotMount())); i18n("Mount"), this, TQT_SLOT(slotMount()));
id_unmount = popup->insertItem(SQ_IconLoader::instance()->loadIcon("hdd_unmount", KIcon::Desktop, KIcon::SizeSmall), id_unmount = popup->insertItem(SQ_IconLoader::instance()->loadIcon("hdd_unmount", KIcon::Desktop, KIcon::SizeSmall),
@ -48,8 +48,8 @@ SQ_MountView::SQ_MountView(TQWidget *parent, const char *name) : KListView(paren
popup->insertSeparator(); popup->insertSeparator();
popup->insertItem(i18n("Cancel")); popup->insertItem(i18n("Cancel"));
connect(this, TQT_SIGNAL(contextMenu(KListView *, TQListViewItem *, const TQPoint &)), connect(this, TQT_SIGNAL(contextMenu(TDEListView *, TQListViewItem *, const TQPoint &)),
this, TQT_SLOT(slotContextMenu(KListView *, TQListViewItem *, const TQPoint &))); this, TQT_SLOT(slotContextMenu(TDEListView *, TQListViewItem *, const TQPoint &)));
setAcceptDrops(false); setAcceptDrops(false);
connect(this, TQT_SIGNAL(returnPressed(TQListViewItem*)), this, TQT_SLOT(slotExecuted(TQListViewItem *))); connect(this, TQT_SIGNAL(returnPressed(TQListViewItem*)), this, TQT_SLOT(slotExecuted(TQListViewItem *)));
@ -195,7 +195,7 @@ void SQ_MountView::setupColumns()
setColumns(p); setColumns(p);
} }
void SQ_MountView::slotContextMenu(KListView *, TQListViewItem *i, const TQPoint &p) void SQ_MountView::slotContextMenu(TDEListView *, TQListViewItem *i, const TQPoint &p)
{ {
SQ_MountViewItem *mvi = static_cast<SQ_MountViewItem *>(i); SQ_MountViewItem *mvi = static_cast<SQ_MountViewItem *>(i);

@ -22,7 +22,7 @@
#include <klistview.h> #include <klistview.h>
class KPopupMenu; class TDEPopupMenu;
class SQ_MountViewItem; class SQ_MountViewItem;
@ -30,7 +30,7 @@ class SQ_MountViewItem;
* SQ_MountView is an detailed view representing mount points. * SQ_MountView is an detailed view representing mount points.
*/ */
class SQ_MountView : public KListView class SQ_MountView : public TDEListView
{ {
Q_OBJECT Q_OBJECT
@ -53,7 +53,7 @@ class SQ_MountView : public KListView
private slots: private slots:
void slotContextMenu(KListView *, TQListViewItem *i, const TQPoint &p); void slotContextMenu(TDEListView *, TQListViewItem *i, const TQPoint &p);
/* /*
* Item executed. We should emit path() signal. * Item executed. We should emit path() signal.
*/ */
@ -75,7 +75,7 @@ class SQ_MountView : public KListView
int m_columns; int m_columns;
SQ_MountViewItem *mountItem, *citem; SQ_MountViewItem *mountItem, *citem;
TQStringList mounted; TQStringList mounted;
KPopupMenu *popup; TDEPopupMenu *popup;
int id_mount, id_unmount; int id_mount, id_unmount;
static SQ_MountView *m_inst; static SQ_MountView *m_inst;

@ -24,8 +24,8 @@
#include "sq_mountviewitem.h" #include "sq_mountviewitem.h"
#include "sq_iconloader.h" #include "sq_iconloader.h"
SQ_MountViewItem::SQ_MountViewItem(KListView *parent, const TQString &mpoint) SQ_MountViewItem::SQ_MountViewItem(TDEListView *parent, const TQString &mpoint)
: KListViewItem(parent, mpoint), m_mounted(false) : TDEListViewItem(parent, mpoint), m_mounted(false)
{} {}
SQ_MountViewItem::~SQ_MountViewItem() SQ_MountViewItem::~SQ_MountViewItem()

@ -20,10 +20,10 @@
#include <klistview.h> #include <klistview.h>
class SQ_MountViewItem : public KListViewItem class SQ_MountViewItem : public TDEListViewItem
{ {
public: public:
SQ_MountViewItem(KListView *parent, const TQString &mpoint); SQ_MountViewItem(TDEListView *parent, const TQString &mpoint);
~SQ_MountViewItem(); ~SQ_MountViewItem();
bool mounted() const; bool mounted() const;

@ -59,7 +59,7 @@ SQ_PreviewWidget::SQ_PreviewWidget(TQWidget *parent, const char *name)
connect(down, TQT_SIGNAL(result(const KURL &)), TQT_TQOBJECT(this), TQT_SLOT(slotDownloadResult(const KURL &))); connect(down, TQT_SIGNAL(result(const KURL &)), TQT_TQOBJECT(this), TQT_SLOT(slotDownloadResult(const KURL &)));
connect(down, TQT_SIGNAL(percents(int)), TQT_TQOBJECT(this), TQT_SLOT(slotDownloadPercents(int))); connect(down, TQT_SIGNAL(percents(int)), TQT_TQOBJECT(this), TQT_SLOT(slotDownloadPercents(int)));
popup = new KPopupMenu; popup = new TDEPopupMenu;
popup->insertItem(i18n("Background color..."), TQT_TQOBJECT(this), TQT_SLOT(slotBackground())); popup->insertItem(i18n("Background color..."), TQT_TQOBJECT(this), TQT_SLOT(slotBackground()));
popup->insertItem(i18n("Text color..."), TQT_TQOBJECT(this), TQT_SLOT(slotText())); popup->insertItem(i18n("Text color..."), TQT_TQOBJECT(this), TQT_SLOT(slotText()));
popup->insertSeparator(); popup->insertSeparator();

@ -26,7 +26,7 @@
#include <kurl.h> #include <kurl.h>
class KPopupMenu; class TDEPopupMenu;
class SQ_Downloader; class SQ_Downloader;
@ -92,7 +92,7 @@ class SQ_PreviewWidget : public TQWidget
TQPixmap pixmap; TQPixmap pixmap;
bool m_ignore, m_forceignore, m_cancel; bool m_ignore, m_forceignore, m_cancel;
TQColor color, colorText; TQColor color, colorText;
KPopupMenu *popup; TDEPopupMenu *popup;
KURL pending, m_url; KURL pending, m_url;
int m_delay; int m_delay;
TQWMatrix matrix; TQWMatrix matrix;

@ -143,8 +143,8 @@ SQ_TreeView::SQ_TreeView(TQWidget *parent, const char *name) : KFileTreeView(par
connect(this, TQT_SIGNAL(dropped(TQDropEvent *, TQListViewItem *, TQListViewItem *)), connect(this, TQT_SIGNAL(dropped(TQDropEvent *, TQListViewItem *, TQListViewItem *)),
this, TQT_SLOT(slotDropped(TQDropEvent *, TQListViewItem *, TQListViewItem *))); this, TQT_SLOT(slotDropped(TQDropEvent *, TQListViewItem *, TQListViewItem *)));
connect(this, TQT_SIGNAL(contextMenu(KListView *, TQListViewItem *, const TQPoint &)), connect(this, TQT_SIGNAL(contextMenu(TDEListView *, TQListViewItem *, const TQPoint &)),
this, TQT_SLOT(slotContextMenu(KListView *, TQListViewItem *, const TQPoint &))); this, TQT_SLOT(slotContextMenu(TDEListView *, TQListViewItem *, const TQPoint &)));
menu = new SQ_TreeViewMenu(this); menu = new SQ_TreeViewMenu(this);
@ -624,7 +624,7 @@ void SQ_TreeView::slotDropped(TQDropEvent *e, TQListViewItem *parent, TQListView
SQ_NavigatorDropMenu::instance()->exec(TQCursor::pos(), true); SQ_NavigatorDropMenu::instance()->exec(TQCursor::pos(), true);
} }
void SQ_TreeView::slotContextMenu(KListView *, TQListViewItem *item, const TQPoint &point) void SQ_TreeView::slotContextMenu(TDEListView *, TQListViewItem *item, const TQPoint &point)
{ {
if(item) if(item)
{ {

@ -142,7 +142,7 @@ class SQ_TreeView : public KFileTreeView
void slotAnimation(); void slotAnimation();
void slotDropped(TQDropEvent *, TQListViewItem *, TQListViewItem *); void slotDropped(TQDropEvent *, TQListViewItem *, TQListViewItem *);
void slotContextMenu(KListView *, TQListViewItem *, const TQPoint &); void slotContextMenu(TDEListView *, TQListViewItem *, const TQPoint &);
signals: signals:
void newURL(const KURL &url); void newURL(const KURL &url);

@ -41,7 +41,7 @@ void SQ_TreeViewItem::paintFocus(TQPainter *, const TQColorGroup &, const TQRect
void SQ_TreeViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment) void SQ_TreeViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment)
{ {
KListView *klv = static_cast<KListView *>(listView()); TDEListView *klv = static_cast<TDEListView *>(listView());
// mark item // mark item
if(column) if(column)

@ -13,7 +13,7 @@
#include "ksquirrel.h" #include "ksquirrel.h"
#include "sq_iconloader.h" #include "sq_iconloader.h"
SQ_TreeViewMenu::SQ_TreeViewMenu(TQWidget *parent, const char *name) : KPopupMenu(parent, name) SQ_TreeViewMenu::SQ_TreeViewMenu(TQWidget *parent, const char *name) : TDEPopupMenu(parent, name)
{ {
id_new = insertItem(SQ_IconLoader::instance()->loadIcon("folder_new", KIcon::Desktop, KIcon::SizeSmall), i18n("New folder..."), this, TQT_SLOT(slotDirectoryNew())); id_new = insertItem(SQ_IconLoader::instance()->loadIcon("folder_new", KIcon::Desktop, KIcon::SizeSmall), i18n("New folder..."), this, TQT_SLOT(slotDirectoryNew()));
insertSeparator(); insertSeparator();

@ -8,7 +8,7 @@ class TQPoint;
namespace TDEIO { class Job; } namespace TDEIO { class Job; }
class SQ_TreeViewMenu : public KPopupMenu class SQ_TreeViewMenu : public TDEPopupMenu
{ {
Q_OBJECT Q_OBJECT

@ -115,7 +115,7 @@ SQ_DirOperator::SQ_DirOperator(const KURL &url, ViewT type_, TQWidget *parent, c
if(SQ_Config::instance()->readBoolEntry("sorting_reverse", false)) sorting |= TQDir::Reversed; if(SQ_Config::instance()->readBoolEntry("sorting_reverse", false)) sorting |= TQDir::Reversed;
if(SQ_Config::instance()->readBoolEntry("sorting_ignore", false)) sorting |= TQDir::IgnoreCase; if(SQ_Config::instance()->readBoolEntry("sorting_ignore", false)) sorting |= TQDir::IgnoreCase;
actionHidden = dynamic_cast<KToggleAction *>(actionCollection()->action("show hidden")); actionHidden = dynamic_cast<TDEToggleAction *>(actionCollection()->action("show hidden"));
if(SQ_Config::instance()->readBoolEntry("show hidden", false) && actionHidden) if(SQ_Config::instance()->readBoolEntry("show hidden", false) && actionHidden)
{ {
@ -349,43 +349,43 @@ void SQ_DirOperator::slotDropped(const KFileItem *i, TQDropEvent*, const KURL::L
// Insert new actions in context menu. // Insert new actions in context menu.
void SQ_DirOperator::setupActionsMy() void SQ_DirOperator::setupActionsMy()
{ {
new KAction(i18n("Edit file type"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotEditMime()), actionCollection(), "dirop_edit_mime"); new TDEAction(i18n("Edit file type"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotEditMime()), actionCollection(), "dirop_edit_mime");
if(SQ_HLOptions::instance()->have_imagebasket) if(SQ_HLOptions::instance()->have_imagebasket)
new KAction(i18n("Add to Basket"), "folder_image", CTRL+TQt::Key_B, TQT_TQOBJECT(this), TQT_SLOT(slotAddToBasket()), actionCollection(), "dirop_tobasket"); new TDEAction(i18n("Add to Basket"), "folder_image", CTRL+TQt::Key_B, TQT_TQOBJECT(this), TQT_SLOT(slotAddToBasket()), actionCollection(), "dirop_tobasket");
if(SQ_HLOptions::instance()->have_directorybasket) if(SQ_HLOptions::instance()->have_directorybasket)
new KAction(i18n("Add to Folder Basket"), "folder_image", CTRL+TQt::Key_D, TQT_TQOBJECT(this), TQT_SLOT(slotAddToDirectoryBasket()), actionCollection(), "dirop_todirbasket"); new TDEAction(i18n("Add to Folder Basket"), "folder_image", CTRL+TQt::Key_D, TQT_TQOBJECT(this), TQT_SLOT(slotAddToDirectoryBasket()), actionCollection(), "dirop_todirbasket");
KActionMenu *file = new KActionMenu(i18n("File actions"), actionCollection(), "dirop_file_menu"); TDEActionMenu *file = new TDEActionMenu(i18n("File actions"), actionCollection(), "dirop_file_menu");
KAction *prop = actionCollection()->action("properties"); TDEAction *prop = actionCollection()->action("properties");
KAction *reload = actionCollection()->action("mkdir"); TDEAction *reload = actionCollection()->action("mkdir");
if(reload && reload->shortcut().isNull()) reload->setShortcut(KShortcut(CTRL+TQt::Key_N)); if(reload && reload->shortcut().isNull()) reload->setShortcut(TDEShortcut(CTRL+TQt::Key_N));
reload = actionCollection()->action("reload"); reload = actionCollection()->action("reload");
connect(prop, TQT_SIGNAL(enabled(bool)), TQT_TQOBJECT(this), TQT_SLOT(slotEnableFileActions(bool))); connect(prop, TQT_SIGNAL(enabled(bool)), TQT_TQOBJECT(this), TQT_SLOT(slotEnableFileActions(bool)));
KAction *sep = actionCollection()->action("separator"); TDEAction *sep = actionCollection()->action("separator");
file->insert(new KAction(i18n("Copy"), "editcopy", KStdAccel::copy(), SQ_WidgetStack::instance(), TQT_SLOT(slotFileCopy()), actionCollection(), "dirop_copy")); file->insert(new TDEAction(i18n("Copy"), "editcopy", TDEStdAccel::copy(), SQ_WidgetStack::instance(), TQT_SLOT(slotFileCopy()), actionCollection(), "dirop_copy"));
file->insert(new KAction(i18n("Cut"), "editcut", KStdAccel::cut(), SQ_WidgetStack::instance(), TQT_SLOT(slotFileCut()), actionCollection(), "dirop_cut")); file->insert(new TDEAction(i18n("Cut"), "editcut", TDEStdAccel::cut(), SQ_WidgetStack::instance(), TQT_SLOT(slotFileCut()), actionCollection(), "dirop_cut"));
file->insert(new KAction(i18n("Paste"), "editpaste", KStdAccel::paste(), SQ_WidgetStack::instance(), TQT_SLOT(slotFilePaste()), actionCollection(), "dirop_paste")); file->insert(new TDEAction(i18n("Paste"), "editpaste", TDEStdAccel::paste(), SQ_WidgetStack::instance(), TQT_SLOT(slotFilePaste()), actionCollection(), "dirop_paste"));
file->insert(sep); file->insert(sep);
file->insert(new KAction(i18n("Copy to..."), 0, TQt::Key_F5, SQ_WidgetStack::instance(), TQT_SLOT(slotFileCopyTo()), actionCollection(), "dirop_copyto")); file->insert(new TDEAction(i18n("Copy to..."), 0, TQt::Key_F5, SQ_WidgetStack::instance(), TQT_SLOT(slotFileCopyTo()), actionCollection(), "dirop_copyto"));
file->insert(new KAction(i18n("Move to..."), 0, TQt::Key_F6, SQ_WidgetStack::instance(), TQT_SLOT(slotFileMoveTo()),actionCollection(), "dirop_cutto")); file->insert(new TDEAction(i18n("Move to..."), 0, TQt::Key_F6, SQ_WidgetStack::instance(), TQT_SLOT(slotFileMoveTo()),actionCollection(), "dirop_cutto"));
file->insert(new KAction(i18n("Link to..."), 0, TQt::Key_F7, SQ_WidgetStack::instance(), TQT_SLOT(slotFileLinkTo()), actionCollection(), "dirop_linkto")); file->insert(new TDEAction(i18n("Link to..."), 0, TQt::Key_F7, SQ_WidgetStack::instance(), TQT_SLOT(slotFileLinkTo()), actionCollection(), "dirop_linkto"));
file->insert(sep); file->insert(sep);
file->insert(new KAction(i18n("Run"), "launch", CTRL+Key_J, SQ_WidgetStack::instance(), TQT_SLOT(slotRunSeparately()), actionCollection(), "dirop_runsepar")); file->insert(new TDEAction(i18n("Run"), "launch", CTRL+Key_J, SQ_WidgetStack::instance(), TQT_SLOT(slotRunSeparately()), actionCollection(), "dirop_runsepar"));
file->insert(new KAction(i18n("Repeat (nothing to repeat)"), "down", TQt::Key_F10, TQT_TQOBJECT(KSquirrel::app()), TQT_SLOT(slotRepeat()), actionCollection(), "dirop_repeat")); file->insert(new TDEAction(i18n("Repeat (nothing to repeat)"), "down", TQt::Key_F10, TQT_TQOBJECT(KSquirrel::app()), TQT_SLOT(slotRepeat()), actionCollection(), "dirop_repeat"));
file->insert(new KAction(i18n("Convert..."), 0, CTRL+TQt::Key_K, SQ_Converter::instance(), TQT_SLOT(slotStartEdit()), actionCollection(), "dirop_convert")); file->insert(new TDEAction(i18n("Convert..."), 0, CTRL+TQt::Key_K, SQ_Converter::instance(), TQT_SLOT(slotStartEdit()), actionCollection(), "dirop_convert"));
file->insert(sep); file->insert(sep);
file->insert(new KAction(i18n("Recreate selected thumbnails"), "reload", CTRL+TQt::Key_R, SQ_WidgetStack::instance(), file->insert(new TDEAction(i18n("Recreate selected thumbnails"), "reload", CTRL+TQt::Key_R, SQ_WidgetStack::instance(),
TQT_SLOT(slotRecreateThumbnail()), actionCollection(), "dirop_recreate_thumbnails")); TQT_SLOT(slotRecreateThumbnail()), actionCollection(), "dirop_recreate_thumbnails"));
file->insert(sep); file->insert(sep);
file->insert(new KAction(i18n("Copy file path"), 0, TQt::Key_F8, TQT_TQOBJECT(this), TQT_SLOT(slotCopyPath()), actionCollection(), "dirop_copypath")); file->insert(new TDEAction(i18n("Copy file path"), 0, TQt::Key_F8, TQT_TQOBJECT(this), TQT_SLOT(slotCopyPath()), actionCollection(), "dirop_copypath"));
file->insert(new KAction(i18n("Copy file url"), 0, TQt::Key_F9, TQT_TQOBJECT(this), TQT_SLOT(slotCopyURL()), actionCollection(), "dirop_copyurl")); file->insert(new TDEAction(i18n("Copy file url"), 0, TQt::Key_F9, TQT_TQOBJECT(this), TQT_SLOT(slotCopyURL()), actionCollection(), "dirop_copyurl"));
if(reload) reload->setShortcut(CTRL+TQt::Key_F5); if(reload) reload->setShortcut(CTRL+TQt::Key_F5);
} }
@ -820,7 +820,7 @@ void SQ_DirOperator::executePrivate(KFileItem *fi)
void SQ_DirOperator::disableSpecificActions(KFileIconView *v) void SQ_DirOperator::disableSpecificActions(KFileIconView *v)
{ {
KAction *a; TDEAction *a;
a = v->actionCollection()->action("zoomIn"); a = v->actionCollection()->action("zoomIn");
if(a) a->setEnabled(false); if(a) a->setEnabled(false);
@ -959,7 +959,7 @@ void SQ_DirOperator::activatedMenu(const KFileItem *, const TQPoint &pos)
setupMenu(KDirOperator::AllActions ^ KDirOperator::ViewActions); setupMenu(KDirOperator::AllActions ^ KDirOperator::ViewActions);
updateSelectionDependentActions(); updateSelectionDependentActions();
KActionMenu *pADirOperatorMenu = dynamic_cast<KActionMenu *>(actionCollection()->action("popupMenu")); TDEActionMenu *pADirOperatorMenu = dynamic_cast<TDEActionMenu *>(actionCollection()->action("popupMenu"));
pADirOperatorMenu->insert(actionCollection()->action("dirop_edit_mime")); pADirOperatorMenu->insert(actionCollection()->action("dirop_edit_mime"));
pADirOperatorMenu->insert(actionCollection()->action("separator")); pADirOperatorMenu->insert(actionCollection()->action("separator"));
@ -973,7 +973,7 @@ void SQ_DirOperator::activatedMenu(const KFileItem *, const TQPoint &pos)
if(SQ_HLOptions::instance()->have_directorybasket) if(SQ_HLOptions::instance()->have_directorybasket)
pADirOperatorMenu->insert(actionCollection()->action("dirop_todirbasket")); pADirOperatorMenu->insert(actionCollection()->action("dirop_todirbasket"));
pADirOperatorMenu->popupMenu()->insertItem(i18n("File actions"), dynamic_cast<KActionMenu *>(actionCollection()->action("dirop_file_menu"))->popupMenu(), -1, 0); pADirOperatorMenu->popupMenu()->insertItem(i18n("File actions"), dynamic_cast<TDEActionMenu *>(actionCollection()->action("dirop_file_menu"))->popupMenu(), -1, 0);
pADirOperatorMenu->popupMenu()->insertItem(i18n("&External tools"), SQ_ExternalTool::instance()->constPopupMenu(), -1, 1); pADirOperatorMenu->popupMenu()->insertItem(i18n("&External tools"), SQ_ExternalTool::instance()->constPopupMenu(), -1, 1);
pADirOperatorMenu->popupMenu()->insertSeparator(2); pADirOperatorMenu->popupMenu()->insertSeparator(2);

@ -245,8 +245,8 @@ class SQ_DirOperator : public KDirOperator
/* /*
* Some additional menus. * Some additional menus.
*/ */
KActionMenu *pADirOperatorMenu, *pAFileActions, *pAImageActions; TDEActionMenu *pADirOperatorMenu, *pAFileActions, *pAImageActions;
KToggleAction *actionHidden; TDEToggleAction *actionHidden;
ViewT type; ViewT type;
TQTimer *timer_preview; TQTimer *timer_preview;

@ -209,7 +209,7 @@ void SQ_GLView::resetStatusBar()
names["SBFrame"]->setText(TQString::fromLatin1("0/0")); names["SBFrame"]->setText(TQString::fromLatin1("0/0"));
} }
SQ_ToolBar::SQ_ToolBar(TQWidget *parent) : KToolBar(parent) SQ_ToolBar::SQ_ToolBar(TQWidget *parent) : TDEToolBar(parent)
{ {
setFixedHeight(SQ_ToolButton::fixedWidth() + 5); setFixedHeight(SQ_ToolButton::fixedWidth() + 5);
boxLayout()->setSpacing(0); boxLayout()->setSpacing(0);

@ -33,7 +33,7 @@ class KTabBar;
class TQLabel; class TQLabel;
class SQ_ToolBar : public KToolBar class SQ_ToolBar : public TDEToolBar
{ {
public: public:
SQ_ToolBar(TQWidget *parent); SQ_ToolBar(TQWidget *parent);

@ -121,7 +121,7 @@ SQ_GLWidget::SQ_GLWidget(TQWidget *parent, const char *name) : TQGLWidget(parent
images = 0; images = 0;
parts_broken = 0; parts_broken = 0;
ac = new KActionCollection(this, TQT_TQOBJECT(this), "GLWidget actionCollection"); ac = new TDEActionCollection(this, TQT_TQOBJECT(this), "GLWidget actionCollection");
changed = blocked = decoded = reset_mode = false; changed = blocked = decoded = reset_mode = false;
movetype = -1; movetype = -1;
buffer = new RGBA [512 * 512]; buffer = new RGBA [512 * 512];
@ -169,7 +169,7 @@ SQ_GLWidget::SQ_GLWidget(TQWidget *parent, const char *name) : TQGLWidget(parent
setAcceptDrops(true); setAcceptDrops(true);
// popup menu with image pages // popup menu with image pages
images = new KPopupMenu; images = new TDEPopupMenu;
images->setCheckable(true); images->setCheckable(true);
// create actions // create actions

@ -48,11 +48,11 @@ struct RGBA;
#define MATRIX_Y tab->matrix[7] #define MATRIX_Y tab->matrix[7]
#define MATRIX_Z tab->matrix[11] #define MATRIX_Z tab->matrix[11]
class KAction; class TDEAction;
class KActionCollection; class TDEActionCollection;
class KToggleAction; class TDEToggleAction;
class KPopupMenu; class TDEPopupMenu;
class KRadioAction; class TDERadioAction;
class KTempFile; class KTempFile;
namespace TDEIO { class Job; } namespace TDEIO { class Job; }
@ -168,7 +168,7 @@ class SQ_GLWidget : public TQGLWidget
*/ */
GLfloat getZoomPercents() const; GLfloat getZoomPercents() const;
KActionCollection* actionCollection() const; TDEActionCollection* actionCollection() const;
/* /*
* Are we in fullscreen state ? * Are we in fullscreen state ?
@ -332,7 +332,7 @@ class SQ_GLWidget : public TQGLWidget
void decodeFailedOn0(const int err_code); void decodeFailedOn0(const int err_code);
/* /*
* Create KActions. * Create TDEActions.
*/ */
void createActions(); void createActions();
@ -519,8 +519,8 @@ class SQ_GLWidget : public TQGLWidget
void slotCopyResult(TDEIO::Job *); void slotCopyResult(TDEIO::Job *);
private: private:
KAction *pASelectionClear; TDEAction *pASelectionClear;
KToggleAction *pAFull, *pAIfLess, *pAZoomW, TDEToggleAction *pAFull, *pAIfLess, *pAZoomW,
*pAZoomH, *pAZoomWH, *pAZoom100, *pAZoomH, *pAZoomWH, *pAZoom100,
*pAZoomLast, *pAZoomLast,
*pASelectionEllipse, *pASelectionRect; *pASelectionEllipse, *pASelectionRect;
@ -528,14 +528,14 @@ class SQ_GLWidget : public TQGLWidget
SQ_ToolButton *pAToolQuick, *pAToolFull, *pAToolProp, *pAToolPrint; SQ_ToolButton *pAToolQuick, *pAToolFull, *pAToolProp, *pAToolPrint;
SQ_ToolButtonPopup *pAToolZoom, *pAToolImages; SQ_ToolButtonPopup *pAToolZoom, *pAToolImages;
KActionCollection *ac, *acMain; TDEActionCollection *ac, *acMain;
TQPopupMenu *menu, *menuFile, *menuImage; TQPopupMenu *menu, *menuFile, *menuImage;
int id_saveas, id_settings, int id_saveas, id_settings,
id_f5, id_f6, id_f7, id_f8, id_del, id_f5, id_f6, id_f7, id_f8, id_del,
id_prop; id_prop;
// popup menu with zoom types (fit width, fit height, zoom 100%...) // popup menu with zoom types (fit width, fit height, zoom 100%...)
KPopupMenu *zoomMenu, *selectionMenu, TDEPopupMenu *zoomMenu, *selectionMenu,
// popup menu with image pages // popup menu with image pages
*images; *images;
@ -594,7 +594,7 @@ bool SQ_GLWidget::isnice()
} }
inline inline
KActionCollection* SQ_GLWidget::actionCollection() const TDEActionCollection* SQ_GLWidget::actionCollection() const
{ {
return ac; return ac;
} }

@ -36,8 +36,8 @@
#include "sq_glwidget_helpers.h" #include "sq_glwidget_helpers.h"
SQ_ToolButtonPopup::SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, KToolBar *parent) SQ_ToolButtonPopup::SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, TDEToolBar *parent)
: KToolBarButton(pix, -1, parent, 0, textLabel) : TDEToolBarButton(pix, -1, parent, 0, textLabel)
{ {
setFixedWidth(SQ_ToolButton::fixedWidth()); setFixedWidth(SQ_ToolButton::fixedWidth());
} }
@ -46,7 +46,7 @@ SQ_ToolButtonPopup::~SQ_ToolButtonPopup()
{} {}
SQ_ToolButton::SQ_ToolButton(const TQIconSet &iconSet, const TQString &textLabel, SQ_ToolButton::SQ_ToolButton(const TQIconSet &iconSet, const TQString &textLabel,
TQObject *receiver, const char *slot, KToolBar *parent, const char *name) TQObject *receiver, const char *slot, TDEToolBar *parent, const char *name)
: TQToolButton(iconSet, textLabel, TQString(), receiver, slot, parent, name) : TQToolButton(iconSet, textLabel, TQString(), receiver, slot, parent, name)
{ {
setFixedWidth(SQ_ToolButton::fixedWidth()); setFixedWidth(SQ_ToolButton::fixedWidth());

@ -22,14 +22,14 @@
class TQWMatrix; class TQWMatrix;
class KToolBar; class TDEToolBar;
struct RGBA; struct RGBA;
class SQ_ToolButtonPopup : public KToolBarButton class SQ_ToolButtonPopup : public TDEToolBarButton
{ {
public: public:
SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, KToolBar *parent); SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, TDEToolBar *parent);
~SQ_ToolButtonPopup(); ~SQ_ToolButtonPopup();
}; };
@ -37,7 +37,7 @@ class SQ_ToolButton : public TQToolButton
{ {
public: public:
SQ_ToolButton(const TQIconSet &iconSet, const TQString &textLabel, TQObject *receiver, SQ_ToolButton(const TQIconSet &iconSet, const TQString &textLabel, TQObject *receiver,
const char *slot, KToolBar *parent, const char *name = 0); const char *slot, TDEToolBar *parent, const char *name = 0);
~SQ_ToolButton(); ~SQ_ToolButton();
static int fixedWidth(); static int fixedWidth();

@ -78,18 +78,18 @@
// Create actions // Create actions
void SQ_GLWidget::createActions() void SQ_GLWidget::createActions()
{ {
pASelectionRect = new KToggleAction(i18n("Rectangle"), TQPixmap(locate("data", "images/actions/glselection_rect.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotSelectionRect()), ac, "SQ Selection Rect"); pASelectionRect = new TDEToggleAction(i18n("Rectangle"), TQPixmap(locate("data", "images/actions/glselection_rect.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotSelectionRect()), ac, "SQ Selection Rect");
pASelectionEllipse = new KToggleAction(i18n("Ellipse"), TQPixmap(locate("data", "images/actions/glselection_ellipse.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotSelectionEllipse()), ac, "SQ Selection Ellipse"); pASelectionEllipse = new TDEToggleAction(i18n("Ellipse"), TQPixmap(locate("data", "images/actions/glselection_ellipse.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotSelectionEllipse()), ac, "SQ Selection Ellipse");
pASelectionClear = new KAction(i18n("Clear"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotSelectionClear()), ac, "SQ Selection Clear"); pASelectionClear = new TDEAction(i18n("Clear"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotSelectionClear()), ac, "SQ Selection Clear");
pAZoomW = new KToggleAction(i18n("Fit width"), TQPixmap(locate("data", "images/actions/zoomW.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoomW()), ac, "SQ ZoomW"); pAZoomW = new TDEToggleAction(i18n("Fit width"), TQPixmap(locate("data", "images/actions/zoomW.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoomW()), ac, "SQ ZoomW");
pAZoomH = new KToggleAction(i18n("Fit height"), TQPixmap(locate("data", "images/actions/zoomH.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoomH()), ac, "SQ ZoomH"); pAZoomH = new TDEToggleAction(i18n("Fit height"), TQPixmap(locate("data", "images/actions/zoomH.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoomH()), ac, "SQ ZoomH");
pAZoomWH = new KToggleAction(i18n("Fit image"), TQPixmap(locate("data", "images/actions/zoomWH.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoomWH()), ac, "SQ ZoomWH"); pAZoomWH = new TDEToggleAction(i18n("Fit image"), TQPixmap(locate("data", "images/actions/zoomWH.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoomWH()), ac, "SQ ZoomWH");
pAZoom100 = new KToggleAction(i18n("Zoom 100%"), TQPixmap(locate("data", "images/actions/zoom100.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoom100()), ac, "SQ Zoom100"); pAZoom100 = new TDEToggleAction(i18n("Zoom 100%"), TQPixmap(locate("data", "images/actions/zoom100.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoom100()), ac, "SQ Zoom100");
pAZoomLast = new KToggleAction(i18n("Leave previous zoom"), TQPixmap(locate("data", "images/actions/zoomlast.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoomLast()), ac, "SQ ZoomLast"); pAZoomLast = new TDEToggleAction(i18n("Leave previous zoom"), TQPixmap(locate("data", "images/actions/zoomlast.png")), 0, TQT_TQOBJECT(this), TQT_SLOT(slotZoomLast()), ac, "SQ ZoomLast");
pAIfLess = new KToggleAction(i18n("Ignore, if image is smaller than window"), TQPixmap(locate("data", "images/actions/ifless.png")), 0, 0, 0, ac, "if less"); pAIfLess = new TDEToggleAction(i18n("Ignore, if image is smaller than window"), TQPixmap(locate("data", "images/actions/ifless.png")), 0, 0, 0, ac, "if less");
pAFull = new KToggleAction(TQString(), 0, 0, 0, ac, "SQ GL Full"); pAFull = new TDEToggleAction(TQString(), 0, 0, 0, ac, "SQ GL Full");
TQString squirrel_zoom_actions = TQString::fromLatin1("squirrel_zoom_actions"); TQString squirrel_zoom_actions = TQString::fromLatin1("squirrel_zoom_actions");
pAZoomW->setExclusiveGroup(squirrel_zoom_actions); pAZoomW->setExclusiveGroup(squirrel_zoom_actions);
@ -115,10 +115,10 @@ void SQ_GLWidget::createActions()
void SQ_GLWidget::createToolbar() void SQ_GLWidget::createToolbar()
{ {
zoomMenu = new KPopupMenu; zoomMenu = new TDEPopupMenu;
#ifndef KSQUIRREL_PART #ifndef KSQUIRREL_PART
selectionMenu = new KPopupMenu; selectionMenu = new TDEPopupMenu;
SQ_ToolButton *pATool; SQ_ToolButton *pATool;
@ -156,12 +156,12 @@ void SQ_GLWidget::createToolbar()
/* /*
* We will create TQToolButtons and put them in toolbar. * We will create TQToolButtons and put them in toolbar.
* Of course, we can just KAction::plug(), BUT plugged KActions * Of course, we can just TDEAction::plug(), BUT plugged TDEActions
* will produce buttons, which cann't be clicked twise! I think * will produce buttons, which cann't be clicked twise! I think
* plugged KActions will treat our attempt as double-click, not two single-clicks. * plugged TDEActions will treat our attempt as double-click, not two single-clicks.
* On the other hand, we can click TQToolButton as frequently as we want. * On the other hand, we can click TQToolButton as frequently as we want.
* *
* Plugged KActions also don't know about autorepeat :( * Plugged TDEActions also don't know about autorepeat :(
*/ */
new SQ_ToolButton(TQPixmap(locate("data", "images/actions/file_first.png")), i18n("Go to first image"), TQT_TQOBJECT(this), TQT_SLOT(slotFirst()), toolbar); new SQ_ToolButton(TQPixmap(locate("data", "images/actions/file_first.png")), i18n("Go to first image"), TQT_TQOBJECT(this), TQT_SLOT(slotFirst()), toolbar);
pATool = new SQ_ToolButton(TQPixmap(locate("data", "images/actions/file_prev.png")), i18n("Previous image"), TQT_TQOBJECT(this), TQT_SLOT(slotPrev()), toolbar); pATool = new SQ_ToolButton(TQPixmap(locate("data", "images/actions/file_prev.png")), i18n("Previous image"), TQT_TQOBJECT(this), TQT_SLOT(slotPrev()), toolbar);
@ -867,7 +867,7 @@ void SQ_GLWidget::initAccelsAndMenu()
menu->insertItem(i18n("Image"), menuImage); menu->insertItem(i18n("Image"), menuImage);
#define SQ_ADD_KACTION(b) \ #define SQ_ADD_KACTION(b) \
(new KAction(TQString(), b, TQT_TQOBJECT(this), TQT_SLOT(slotAccelActivated()), ac, TQString::fromLatin1("action_%1").arg(b))) (new TDEAction(TQString(), b, TQT_TQOBJECT(this), TQT_SLOT(slotAccelActivated()), ac, TQString::fromLatin1("action_%1").arg(b)))
id_saveas = menuFile->insertItem(SQ_IconLoader::instance()->loadIcon("filesaveas", KIcon::Desktop, KIcon::SizeSmall), i18n("Save As...") + "\tS", SQ_ADD_KACTION(TQt::Key_S), TQT_SLOT(activate())); id_saveas = menuFile->insertItem(SQ_IconLoader::instance()->loadIcon("filesaveas", KIcon::Desktop, KIcon::SizeSmall), i18n("Save As...") + "\tS", SQ_ADD_KACTION(TQt::Key_S), TQT_SLOT(activate()));
@ -992,9 +992,9 @@ void SQ_GLWidget::initAccelsAndMenu()
void SQ_GLWidget::slotAccelActivated() void SQ_GLWidget::slotAccelActivated()
{ {
KAction *accel = static_cast<KAction *>(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME *>(sender()))); TDEAction *accel = static_cast<TDEAction *>(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME *>(sender())));
KShortcut ks = accel->shortcut(); TDEShortcut ks = accel->shortcut();
if(!ks.compare(TQt::Key_Left)) matrix_move(movefactor, 0); if(!ks.compare(TQt::Key_Left)) matrix_move(movefactor, 0);
else if(!ks.compare(TQt::Key_Right)) matrix_move(-movefactor, 0); else if(!ks.compare(TQt::Key_Right)) matrix_move(-movefactor, 0);

@ -22,7 +22,7 @@
#include "sq_iconlistbox.h" #include "sq_iconlistbox.h"
#include "sq_iconlistitem.h" #include "sq_iconlistitem.h"
SQ_IconListBox::SQ_IconListBox(TQWidget *parent, const char *name, WFlags f) : KListBox(parent, name, f), SQ_IconListBox::SQ_IconListBox(TQWidget *parent, const char *name, WFlags f) : TDEListBox(parent, name, f),
mHeightValid(false), mWidthValid(false) mHeightValid(false), mWidthValid(false)
{ {
setHScrollBarMode(TQScrollView::AlwaysOff); setHScrollBarMode(TQScrollView::AlwaysOff);

@ -26,7 +26,7 @@
* SQ_IconListBox and SQ_IconListItem are used in SQ_Options. * SQ_IconListBox and SQ_IconListItem are used in SQ_Options.
*/ */
class SQ_IconListBox : public KListBox class SQ_IconListBox : public TDEListBox
{ {
public: public:
SQ_IconListBox(TQWidget * = 0, const char * = 0, WFlags = 0); SQ_IconListBox(TQWidget * = 0, const char * = 0, WFlags = 0);

@ -934,18 +934,18 @@
<include location="local" impldecl="in implementation">sq_imageproperties.ui.h</include> <include location="local" impldecl="in implementation">sq_imageproperties.ui.h</include>
</includes> </includes>
<forwards> <forwards>
<forward>class KPopupMenu;</forward> <forward>class TDEPopupMenu;</forward>
<forward>class KAction;</forward> <forward>class TDEAction;</forward>
<forward>namespace TDEIO { class Job; }</forward> <forward>namespace TDEIO { class Job; }</forward>
</forwards> </forwards>
<variables> <variables>
<variable access="private">KURL url;</variable> <variable access="private">KURL url;</variable>
<variable access="private">TQWidget *kew;</variable> <variable access="private">TQWidget *kew;</variable>
<variable access="private">TQPixmap ok, error;</variable> <variable access="private">TQPixmap ok, error;</variable>
<variable access="private">KPopupMenu *menu;</variable> <variable access="private">TDEPopupMenu *menu;</variable>
<variable access="private">TQListViewItem *data;</variable> <variable access="private">TQListViewItem *data;</variable>
<variable access="private">int z, exifMode;</variable> <variable access="private">int z, exifMode;</variable>
<variable access="private">KAction *copy, *copyentry, *copyall;</variable> <variable access="private">TDEAction *copy, *copyentry, *copyall;</variable>
<variable access="private">TQString file;</variable> <variable access="private">TQString file;</variable>
</variables> </variables>
<Q_SLOTS> <Q_SLOTS>

@ -24,10 +24,10 @@
void SQ_ImageProperties::init() void SQ_ImageProperties::init()
{ {
menu = new KPopupMenu; menu = new TDEPopupMenu;
copy = KStdAction::copy(TQT_TQOBJECT(this), TQT_SLOT(slotCopyString()), 0); copy = KStdAction::copy(TQT_TQOBJECT(this), TQT_SLOT(slotCopyString()), 0);
copyentry = new KAction(i18n("Copy entry"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotCopyEntry()), 0); copyentry = new TDEAction(i18n("Copy entry"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotCopyEntry()), 0);
copyall = new KAction(i18n("Copy all entries"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotCopyAll()), 0); copyall = new TDEAction(i18n("Copy all entries"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotCopyAll()), 0);
copyentry->setIcon(copy->icon()); copyentry->setIcon(copy->icon());
copyall->setIcon(copy->icon()); copyall->setIcon(copy->icon());

@ -36,24 +36,24 @@
#include "sq_kipiinterface.h" #include "sq_kipiinterface.h"
SQ_ActionMenu::SQ_ActionMenu(const TQString &text, TQObject *parent, const char *name) SQ_ActionMenu::SQ_ActionMenu(const TQString &text, TQObject *parent, const char *name)
: KActionMenu(text, parent, name) : TDEActionMenu(text, parent, name)
{} {}
SQ_ActionMenu::SQ_ActionMenu(const TQString &text, const TQString &icon, TQObject *parent, const char *name) SQ_ActionMenu::SQ_ActionMenu(const TQString &text, const TQString &icon, TQObject *parent, const char *name)
: KActionMenu(text, icon, parent, name) : TDEActionMenu(text, icon, parent, name)
{} {}
SQ_ActionMenu::~SQ_ActionMenu() SQ_ActionMenu::~SQ_ActionMenu()
{ {
TQValueVector<KAction *>::iterator itEnd = plugged.end(); TQValueVector<TDEAction *>::iterator itEnd = plugged.end();
for(TQValueVector<KAction *>::iterator it = plugged.begin();it != itEnd;++it) for(TQValueVector<TDEAction *>::iterator it = plugged.begin();it != itEnd;++it)
remove(*it); remove(*it);
} }
void SQ_ActionMenu::insert(KAction *ka, int index) void SQ_ActionMenu::insert(TDEAction *ka, int index)
{ {
KActionMenu::insert(ka, index); TDEActionMenu::insert(ka, index);
plugged.append(ka); plugged.append(ka);
} }
@ -65,12 +65,12 @@ SQ_KIPIManager::SQ_KIPIManager(TQWidget *_parent, const char *name) : TQObject(_
kdDebug() << "+SQ_KIPIManager" << endl; kdDebug() << "+SQ_KIPIManager" << endl;
// Create a dummy "no plugin" action // Create a dummy "no plugin" action
noPlugin = new KAction(i18n("No Plugins"), 0, 0, 0, (KActionCollection *)0/*actionCollection()*/, "no_plugin"); noPlugin = new TDEAction(i18n("No Plugins"), 0, 0, 0, (TDEActionCollection *)0/*actionCollection()*/, "no_plugin");
noPlugin->setShortcutConfigurable(false); noPlugin->setShortcutConfigurable(false);
noPlugin->setEnabled(false); noPlugin->setEnabled(false);
loaded = false; loaded = false;
p = new KPopupMenu; p = new TDEPopupMenu;
connect(p, TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotAboutToShow())); connect(p, TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotAboutToShow()));
@ -149,8 +149,8 @@ void SQ_KIPIManager::slotReplug()
plugin->setup(parent); plugin->setup(parent);
KActionPtrList actions = plugin->actions(); TDEActionPtrList actions = plugin->actions();
KActionPtrList::ConstIterator actionIt = actions.begin(), end = actions.end(); TDEActionPtrList::ConstIterator actionIt = actions.begin(), end = actions.end();
KIPI::Category category; KIPI::Category category;
for ( ;actionIt != end;++actionIt) for ( ;actionIt != end;++actionIt)

@ -40,33 +40,33 @@ namespace KIPI { class PluginLoader; }
class TQWidget; class TQWidget;
class KPopupMenu; class TDEPopupMenu;
/* /*
* This subclass of KActionMenu should know which KActions * This subclass of TDEActionMenu should know which TDEActions
* are currently plugged in it. * are currently plugged in it.
*/ */
class SQ_ActionMenu : public KActionMenu class SQ_ActionMenu : public TDEActionMenu
{ {
public: public:
SQ_ActionMenu(const TQString &text, TQObject *parent = 0, const char *name = 0); SQ_ActionMenu(const TQString &text, TQObject *parent = 0, const char *name = 0);
SQ_ActionMenu(const TQString &text, const TQString &icon, TQObject *parent = 0, const char *name = 0); SQ_ActionMenu(const TQString &text, const TQString &icon, TQObject *parent = 0, const char *name = 0);
/* /*
* remove() all KActions currently plugged. * remove() all TDEActions currently plugged.
*/ */
~SQ_ActionMenu(); ~SQ_ActionMenu();
/* /*
* Reimplement insert() to let us remember "ka" * Reimplement insert() to let us remember "ka"
*/ */
void insert(KAction *ka, int index = -1); void insert(TDEAction *ka, int index = -1);
int count() const; int count() const;
private: private:
// Currently plugged KActions // Currently plugged TDEActions
TQValueVector<KAction *> plugged; TQValueVector<TDEAction *> plugged;
}; };
inline inline
@ -88,7 +88,7 @@ class SQ_KIPIManager : public TQObject
SQ_KIPIManager(TQWidget *_parent, const char *name = 0); SQ_KIPIManager(TQWidget *_parent, const char *name = 0);
~SQ_KIPIManager(); ~SQ_KIPIManager();
KPopupMenu* popup() const; TDEPopupMenu* popup() const;
void loadPlugins(); void loadPlugins();
@ -104,14 +104,14 @@ class SQ_KIPIManager : public TQObject
KIPI::PluginLoader *mPluginLoader; KIPI::PluginLoader *mPluginLoader;
CategoryMap cmenus; CategoryMap cmenus;
KAction *noPlugin; TDEAction *noPlugin;
TQWidget *parent; TQWidget *parent;
KPopupMenu *p; TDEPopupMenu *p;
bool loaded; bool loaded;
}; };
inline inline
KPopupMenu* SQ_KIPIManager::popup() const TDEPopupMenu* SQ_KIPIManager::popup() const
{ {
return p; return p;
} }

@ -34,21 +34,21 @@ SQ_NavigatorDropMenu::SQ_NavigatorDropMenu(TQObject *parent) : TQObject(parent)
{ {
m_instance = this; m_instance = this;
KActionCollection *ac = new KActionCollection(0, this, "Actions for drop menu"); TDEActionCollection *ac = new TDEActionCollection(0, this, "Actions for drop menu");
dropmenu = new SQ_PopupMenu(0); dropmenu = new SQ_PopupMenu(0);
// "copy" action // "copy" action
KAction *pACopy = new KAction(i18n("Copy here"), "editpaste", 0, this, TQT_SLOT(slotCopy()), ac, "sq_copy"); TDEAction *pACopy = new TDEAction(i18n("Copy here"), "editpaste", 0, this, TQT_SLOT(slotCopy()), ac, "sq_copy");
// "move" action // "move" action
KAction *pAMove = new KAction(i18n("Move here"), 0, 0, this, TQT_SLOT(slotMove()), ac, "sq_move"); TDEAction *pAMove = new TDEAction(i18n("Move here"), 0, 0, this, TQT_SLOT(slotMove()), ac, "sq_move");
// "link" action // "link" action
KAction *pALink = new KAction(i18n("Link here"), "www", 0, this, TQT_SLOT(slotLink()), ac, "sq_link"); TDEAction *pALink = new TDEAction(i18n("Link here"), "www", 0, this, TQT_SLOT(slotLink()), ac, "sq_link");
// "cancel" action, this action will do nothing - just close popup menu // "cancel" action, this action will do nothing - just close popup menu
KAction *pACancel = new KAction(i18n("Cancel"), 0, 0, 0, 0, ac, "sq_cancel"); TDEAction *pACancel = new TDEAction(i18n("Cancel"), 0, 0, 0, 0, ac, "sq_cancel");
// plug all actions to popup menu // plug all actions to popup menu
dropmenu->insertTitle(TQString()); dropmenu->insertTitle(TQString());

@ -22,7 +22,7 @@
#include "sq_popupmenu.h" #include "sq_popupmenu.h"
SQ_PopupMenu::SQ_PopupMenu(TQWidget *parent, const char *name) SQ_PopupMenu::SQ_PopupMenu(TQWidget *parent, const char *name)
: KPopupMenu(parent, name), title(0) : TDEPopupMenu(parent, name), title(0)
{} {}
SQ_PopupMenu::~SQ_PopupMenu() SQ_PopupMenu::~SQ_PopupMenu()
@ -30,10 +30,10 @@ SQ_PopupMenu::~SQ_PopupMenu()
void SQ_PopupMenu::insertTitle(const TQString &t) void SQ_PopupMenu::insertTitle(const TQString &t)
{ {
title = KPopupMenu::insertTitle(t); title = TDEPopupMenu::insertTitle(t);
} }
void SQ_PopupMenu::changeTitle(const TQString &t) void SQ_PopupMenu::changeTitle(const TQString &t)
{ {
KPopupMenu::changeTitle(title, t); TDEPopupMenu::changeTitle(title, t);
} }

@ -24,7 +24,7 @@
*@author Baryshev Dmitry *@author Baryshev Dmitry
*/ */
class SQ_PopupMenu : public KPopupMenu class SQ_PopupMenu : public TDEPopupMenu
{ {
public: public:
SQ_PopupMenu(TQWidget *parent = 0, const char *name = 0); SQ_PopupMenu(TQWidget *parent = 0, const char *name = 0);

@ -751,7 +751,7 @@ void SQ_WidgetStack::slotSelectAll()
} }
} }
KAction* SQ_WidgetStack::action(const TQString &name) TDEAction* SQ_WidgetStack::action(const TQString &name)
{ {
return dirop->actionCollection()->action(name); return dirop->actionCollection()->action(name);
} }

@ -30,8 +30,8 @@ namespace TDEIO { class Job; }
class TQTimer; class TQTimer;
class KAction; class TDEAction;
class KToggleAction; class TDEToggleAction;
class KFileView; class KFileView;
/* /*
@ -107,7 +107,7 @@ class SQ_WidgetStack : public TQObject
/* /*
* Quick access to SQ_DirOperator::actionCollection::action() * Quick access to SQ_DirOperator::actionCollection::action()
*/ */
KAction *action(const TQString &name); TDEAction *action(const TQString &name);
/* /*
* Select first supported image in current directory. * Select first supported image in current directory.

Loading…
Cancel
Save