rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent ff8c66f117
commit f1087d880d

@ -39,8 +39,8 @@ public:
BookmarkDialog::Mode mMode;
};
BookmarkDialog::BookmarkDialog(TQWidget* tqparent, BookmarkDialog::Mode mode)
: KDialogBase(tqparent,"folderconfig",true,TQString(),Ok|Cancel)
BookmarkDialog::BookmarkDialog(TQWidget* parent, BookmarkDialog::Mode mode)
: KDialogBase(parent,"folderconfig",true,TQString(),Ok|Cancel)
{
d=new BookmarkDialogPrivate;
d->mContent=new BookmarkDialogBase(this);

@ -32,7 +32,7 @@ Q_OBJECT
TQ_OBJECT
public:
enum Mode { BOOKMARK_GROUP, BOOKMARK };
BookmarkDialog(TQWidget* tqparent, Mode mode);
BookmarkDialog(TQWidget* parent, Mode mode);
~BookmarkDialog();

@ -27,8 +27,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Gwenview {
BookmarkOwner::BookmarkOwner(TQWidget* tqparent)
: TQObject(tqparent)
BookmarkOwner::BookmarkOwner(TQWidget* parent)
: TQObject(parent)
{}

@ -32,7 +32,7 @@ class BookmarkOwner : public TQObject, public KBookmarkOwner {
Q_OBJECT
TQ_OBJECT
public:
BookmarkOwner(TQWidget* tqparent);
BookmarkOwner(TQWidget* parent);
// KBookmarkOwner interface
void openBookmarkURL(const TQString&);

@ -52,8 +52,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Gwenview {
// URLDropListView
URLDropListView::URLDropListView(TQWidget* tqparent)
: KListView(tqparent) {
URLDropListView::URLDropListView(TQWidget* parent)
: KListView(parent) {
setAcceptDrops(true);
}
@ -71,8 +71,8 @@ void URLDropListView::contentsDragMoveEvent(TQDragMoveEvent* event) {
struct BookmarkItem : public KListViewItem {
template <class ItemParent>
BookmarkItem(ItemParent* tqparent, const KBookmark& bookmark)
: KListViewItem(tqparent)
BookmarkItem(ItemParent* parent, const KBookmark& bookmark)
: KListViewItem(parent)
, mBookmark(bookmark)
{
refresh();
@ -173,13 +173,13 @@ void URLDropListView::contentsDropEvent(TQDropEvent* event) {
}
BookmarkViewController::BookmarkViewController(TQWidget* tqparent)
: TQObject(tqparent)
BookmarkViewController::BookmarkViewController(TQWidget* parent)
: TQObject(parent)
{
d=new Private;
d->mManager=0;
d->mBox=new TQVBox(tqparent);
d->mBox=new TQVBox(parent);
// Init listview
d->mListView=new URLDropListView(d->mBox);

@ -45,7 +45,7 @@ class URLDropListView : public KListView {
Q_OBJECT
TQ_OBJECT
public:
URLDropListView(TQWidget* tqparent);
URLDropListView(TQWidget* parent);
signals:
void urlDropped(TQDropEvent*, const KURL::List&);

@ -106,13 +106,13 @@ T* addConfigPage(KDialogBase* dialog, const TQString& header, const TQString& na
}
ConfigDialog::ConfigDialog(TQWidget* tqparent, KIPI::PluginLoader* pluginLoader)
ConfigDialog::ConfigDialog(TQWidget* parent, KIPI::PluginLoader* pluginLoader)
: KDialogBase(
KDialogBase::IconList,
i18n("Configure"),
KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::Apply,
KDialogBase::Ok,
tqparent,
parent,
"ConfigDialog",
true,
true)

@ -53,12 +53,12 @@ struct DirViewController::Private {
};
DirViewController::DirViewController(TQWidget* tqparent)
: TQObject(tqparent)
DirViewController::DirViewController(TQWidget* parent)
: TQObject(parent)
{
d=new Private;
d->mTreeView=new TreeView(tqparent);
d->mTreeView=new TreeView(parent);
connect(d->mTreeView, TQT_SIGNAL(selectionChanged(TQListViewItem*)),
this, TQT_SLOT(slotTreeViewSelectionChanged(TQListViewItem*)) );
@ -130,7 +130,7 @@ void DirViewController::removeDir() {
TQListViewItem* item=d->mTreeView->currentItem();
if (!item) return;
item=item->tqparent();
item=item->parent();
if (!item) return;
d->mTreeView->setCurrentItem(item);
}

@ -41,7 +41,7 @@ class DirViewController : public TQObject {
Q_OBJECT
TQ_OBJECT
public:
DirViewController(TQWidget* tqparent);
DirViewController(TQWidget* parent);
virtual ~DirViewController();
TQWidget* widget() const;

@ -119,8 +119,8 @@ struct KIPIInterfacePrivate {
};
KIPIInterface::KIPIInterface( TQWidget* tqparent, FileViewController* fileView)
:KIPI::Interface(TQT_TQOBJECT(tqparent), "Gwenview kipi interface") {
KIPIInterface::KIPIInterface( TQWidget* parent, FileViewController* fileView)
:KIPI::Interface(TQT_TQOBJECT(parent), "Gwenview kipi interface") {
d=new KIPIInterfacePrivate;
d->mFileView=fileView;

@ -41,7 +41,7 @@ class KIPIInterface :public KIPI::Interface {
TQ_OBJECT
public:
KIPIInterface( TQWidget* tqparent, FileViewController*);
KIPIInterface( TQWidget* parent, FileViewController*);
virtual ~KIPIInterface();
KIPI::ImageCollection currentAlbum();

@ -139,7 +139,7 @@ const int HISTORY_MAX_COUNT=20;
enum { StackIDBrowse, StackIDView };
static bool urlIsDirectory(TQWidget* tqparent, const KURL& url) {
static bool urlIsDirectory(TQWidget* parent, const KURL& url) {
if( url.filename( false ).isEmpty()) return true; // file:/somewhere/<nothing here>
// Do direct stat instead of using KIO if the file is local (faster)
if( url.isLocalFile()
@ -150,7 +150,7 @@ static bool urlIsDirectory(TQWidget* tqparent, const KURL& url) {
}
}
KIO::UDSEntry entry;
if( KIO::NetAccess::stat( url, entry, tqparent)) {
if( KIO::NetAccess::stat( url, entry, parent)) {
KIO::UDSEntry::ConstIterator it;
for(it=entry.begin();it!=entry.end();++it) {
if ((*it).m_uds==KIO::UDS_FILE_TYPE) {
@ -715,7 +715,7 @@ void MainWindow::slotDirRenamed(const KURL& oldURL, const KURL& newURL) {
KURL url(mFileViewController->dirURL());
if (!oldURL.isParentOf(url) ) {
LOG(oldURL.prettyURL() << " is not a tqparent of " << url.prettyURL());
LOG(oldURL.prettyURL() << " is not a parent of " << url.prettyURL());
return;
}

@ -32,8 +32,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Gwenview {
// FIXME: Why doesn't MetaEdit inherits from TQTextEdit rather than TQVBox?
MetaEdit::MetaEdit(TQWidget *tqparent, Document *gvp, const char *name)
: TQVBox(tqparent, name)
MetaEdit::MetaEdit(TQWidget *parent, Document *gvp, const char *name)
: TQVBox(parent, name)
, mEmpty(true)
, mDocument(gvp)
{

@ -35,7 +35,7 @@ class MetaEdit : public TQVBox {
Q_OBJECT
TQ_OBJECT
public:
MetaEdit(TQWidget *tqparent, Document*, const char *name="");
MetaEdit(TQWidget *parent, Document*, const char *name="");
~MetaEdit();
protected:
bool eventFilter(TQObject *, TQEvent *);

@ -55,10 +55,10 @@ struct TreeView::Private {
KFileTreeViewItem* mDropTarget;
TQTimer* mAutoOpenTimer;
KFileTreeViewItem* findViewItem(KFileTreeViewItem* tqparent,const TQString& text) {
KFileTreeViewItem* findViewItem(KFileTreeViewItem* parent,const TQString& text) {
TQListViewItem* item;
for (item=tqparent->firstChild();item;item=item->nextSibling()) {
for (item=parent->firstChild();item;item=item->nextSibling()) {
if (item->text(0)==text) {
return static_cast<KFileTreeViewItem*>(item);
}
@ -114,8 +114,8 @@ struct TreeView::Private {
};
TreeView::TreeView(TQWidget* tqparent)
: KFileTreeView(tqparent) {
TreeView::TreeView(TQWidget* parent)
: KFileTreeView(parent) {
d=new Private;
d->mView=this;
d->mBranch=0;
@ -180,7 +180,7 @@ void TreeView::slotTreeViewPopulateFinished(KFileTreeViewItem* item) {
return;
}
// This URL is not a tqparent of a wanted URL, get out
// This URL is not a parent of a wanted URL, get out
if (!url.isParentOf(m_nextUrlToSelect)) return;
// Find the next child item and open it

@ -34,7 +34,7 @@ class TreeView : public KFileTreeView {
Q_OBJECT
TQ_OBJECT
public:
TreeView(TQWidget* tqparent);
TreeView(TQWidget* parent);
~TreeView();
public slots:

@ -36,8 +36,8 @@ namespace Gwenview {
*/
class TruncatedTextLabel : public TQLabel {
public:
TruncatedTextLabel(TQWidget* tqparent)
: TQLabel(tqparent) {}
TruncatedTextLabel(TQWidget* parent)
: TQLabel(parent) {}
TQSize tqminimumSizeHint() const {
TQSize size=TQLabel::tqminimumSizeHint();

@ -38,8 +38,8 @@ struct VTabWidget::Private {
};
VTabWidget::VTabWidget(TQWidget* tqparent)
: TQWidget(tqparent)
VTabWidget::VTabWidget(TQWidget* parent)
: TQWidget(parent)
{
d=new Private;
d->mEmpty=true;

@ -34,7 +34,7 @@ class VTabWidget : public TQWidget {
Q_OBJECT
TQ_OBJECT
public:
VTabWidget(TQWidget* tqparent);
VTabWidget(TQWidget* parent);
virtual ~VTabWidget();
void addTab(TQWidget*, const TQPixmap&, const TQString& label);

@ -26,8 +26,8 @@
namespace Gwenview {
ClickLineEdit::ClickLineEdit(TQWidget *tqparent, const char* name ) :
KLineEdit( tqparent, name )
ClickLineEdit::ClickLineEdit(TQWidget *parent, const char* name ) :
KLineEdit( parent, name )
{
mDrawClickMsg = true;
}

@ -38,7 +38,7 @@ class ClickLineEdit : public KLineEdit
TQ_OBJECT
TQ_PROPERTY( TQString clickMessage READ clickMessage WRITE setClickMessage )
public:
ClickLineEdit(TQWidget *tqparent, const char* name = 0 );
ClickLineEdit(TQWidget *parent, const char* name = 0 );
void setClickMessage( const TQString &msg );
TQString clickMessage() const { return mClickMessage; }

@ -39,8 +39,8 @@
namespace Gwenview {
DeleteDialog::DeleteDialog(TQWidget *tqparent, const char *name) :
KDialogBase(Swallow, WStyle_DialogBorder, tqparent, name,
DeleteDialog::DeleteDialog(TQWidget *parent, const char *name) :
KDialogBase(Swallow, WStyle_DialogBorder, parent, name,
true /* modal */, i18n("About to delete selected files"),
Ok | Cancel, Cancel /* Default */, true /* separator */),
m_trashGuiItem(i18n("&Send to Trash"), "trashcan_full")

@ -31,7 +31,7 @@ class DeleteDialog : public KDialogBase
TQ_OBJECT
public:
DeleteDialog(TQWidget *tqparent, const char *name = "delete_dialog");
DeleteDialog(TQWidget *parent, const char *name = "delete_dialog");
void setURLList(const KURL::List &files);
bool shouldDelete() const;

@ -73,7 +73,7 @@ const char* CONFIG_SAVE_AUTOMATICALLY="save automatically";
/**
* Returns a widget suitable to use as a dialog tqparent
* Returns a widget suitable to use as a dialog parent
*/
static TQWidget* dialogParentWidget() {
return KApplication::kApplication()->mainWidget();
@ -102,8 +102,8 @@ public:
// Document
//
//-------------------------------------------------------------------
Document::Document(TQObject* tqparent)
: TQObject(tqparent) {
Document::Document(TQObject* parent)
: TQObject(parent) {
d=new DocumentPrivate;
d->mModified=false;
d->mImpl=new DocumentEmptyImpl(this);

@ -130,11 +130,11 @@ TQString DocumentLoadedImpl::save(const KURL& _url, const TQCString& format) con
}
} else {
TQFileInfo tqparent=TQFileInfo(info.dirPath());
if (!tqparent.isWritable()) {
TQFileInfo parent=TQFileInfo(info.dirPath());
if (!parent.isWritable()) {
return
i18n("The %1 folder is read-only.")
.tqarg(tqparent.filePath());
.tqarg(parent.filePath());
}
}
}

@ -31,9 +31,9 @@ Copyright 2000-2004 Aur
namespace Gwenview {
ExternalToolAction::ExternalToolAction(
TQObject* tqparent, const KService* service,
TQObject* parent, const KService* service,
const KURL::List& urls)
: KAction(tqparent)
: KAction(parent)
, mService(service)
, mURLs(urls)
{

@ -36,7 +36,7 @@ class ExternalToolAction : public KAction {
Q_OBJECT
TQ_OBJECT
public:
ExternalToolAction(TQObject* tqparent, const KService*, const KURL::List&);
ExternalToolAction(TQObject* parent, const KService*, const KURL::List&);
private slots:
void openExternalTool();

@ -36,10 +36,10 @@ Copyright 2000-2004 Aur
namespace Gwenview {
ExternalToolContext::ExternalToolContext(
TQObject* tqparent,
TQObject* parent,
std::list<KService*> services,
KURL::List urls)
: TQObject(tqparent)
: TQObject(parent)
, mServices(services)
, mURLs(urls)
{}

@ -41,7 +41,7 @@ class LIBGWENVIEW_EXPORT ExternalToolContext : public TQObject {
Q_OBJECT
TQ_OBJECT
public:
ExternalToolContext(TQObject* tqparent,
ExternalToolContext(TQObject* parent,
std::list<KService*> services,
KURL::List urls);
TQPopupMenu* popupMenu();

@ -51,8 +51,8 @@ enum { ID_ALL_IMAGES=0, ID_ALL_FILES, ID_CUSTOM };
class ToolListViewItem : public KListViewItem {
public:
ToolListViewItem(KListView* tqparent, const TQString& label)
: KListViewItem(tqparent, label), mDesktopFile(0L) {}
ToolListViewItem(KListView* parent, const TQString& label)
: KListViewItem(parent, label), mDesktopFile(0L) {}
void setDesktopFile(KDesktopFile* df) {
mDesktopFile=df;
@ -244,8 +244,8 @@ struct ExternalToolDialogPrivate {
class ToolListViewFilterObject : public TQObject {
ExternalToolDialogPrivate* d;
public:
ToolListViewFilterObject(TQObject* tqparent, ExternalToolDialogPrivate* _d)
: TQObject(tqparent), d(_d) {}
ToolListViewFilterObject(TQObject* parent, ExternalToolDialogPrivate* _d)
: TQObject(parent), d(_d) {}
bool eventFilter(TQObject*, TQEvent* event) {
if (event->type()!=TQEvent::MouseButtonPress) return false;
@ -254,9 +254,9 @@ public:
};
ExternalToolDialog::ExternalToolDialog(TQWidget* tqparent)
ExternalToolDialog::ExternalToolDialog(TQWidget* parent)
: KDialogBase(
tqparent,0, false, TQString(), KDialogBase::Ok|KDialogBase::Apply|KDialogBase::Cancel,
parent,0, false, TQString(), KDialogBase::Ok|KDialogBase::Apply|KDialogBase::Cancel,
KDialogBase::Ok, true)
{
setWFlags(getWFlags() | TQt::WDestructiveClose);

@ -35,7 +35,7 @@ class LIBGWENVIEW_EXPORT ExternalToolDialog : public KDialogBase {
Q_OBJECT
TQ_OBJECT
public:
ExternalToolDialog(TQWidget* tqparent);
ExternalToolDialog(TQWidget* parent);
~ExternalToolDialog();
protected slots:

@ -95,7 +95,7 @@ struct ExternalToolManagerPrivate {
}
ExternalToolContext* createContextInternal(
TQObject* tqparent, const KURL::List& urls, const TQStringList& mimeTypes)
TQObject* parent, const KURL::List& urls, const TQStringList& mimeTypes)
{
bool onlyOneURL=urls.size()==1;
@ -119,7 +119,7 @@ struct ExternalToolManagerPrivate {
}
selectionServices.sort(compareKServicePtrByName);
return new ExternalToolContext(tqparent, selectionServices, urls);
return new ExternalToolContext(parent, selectionServices, urls);
}
};
@ -257,7 +257,7 @@ KDesktopFile* ExternalToolManager::createUserDesktopFile(const TQString& name) {
ExternalToolContext* ExternalToolManager::createContext(
TQObject* tqparent, const KFileItemList* items)
TQObject* parent, const KFileItemList* items)
{
KURL::List urls;
TQStringList mimeTypes;
@ -273,12 +273,12 @@ ExternalToolContext* ExternalToolManager::createContext(
}
}
return d->createContextInternal(tqparent, urls, mimeTypes);
return d->createContextInternal(parent, urls, mimeTypes);
}
ExternalToolContext* ExternalToolManager::createContext(
TQObject* tqparent, const KURL& url)
TQObject* parent, const KURL& url)
{
KURL::List urls;
TQStringList mimeTypes;
@ -287,7 +287,7 @@ ExternalToolContext* ExternalToolManager::createContext(
TQString mimeType=KMimeType::findByURL(url, 0, url.isLocalFile(), true)->name();
mimeTypes.append(mimeType);
return d->createContextInternal(tqparent, urls, mimeTypes);
return d->createContextInternal(parent, urls, mimeTypes);
}

@ -42,8 +42,8 @@ class LIBGWENVIEW_EXPORT ExternalToolManager {
public:
~ExternalToolManager();
ExternalToolContext* createContext(TQObject* tqparent, const KFileItemList*);
ExternalToolContext* createContext(TQObject* tqparent, const KURL&);
ExternalToolContext* createContext(TQObject* parent, const KFileItemList*);
ExternalToolContext* createContext(TQObject* parent, const KURL&);
static ExternalToolManager* instance();
TQDict<KDesktopFile>& desktopFiles() const;

@ -73,8 +73,8 @@ static TQPixmap createShownItemPixmap(int size, const TQColor& color) {
}
FileDetailView::FileDetailView(TQWidget *tqparent, const char *name)
: KListView(tqparent, name), FileViewBase()
FileDetailView::FileDetailView(TQWidget *parent, const char *name)
: KListView(parent, name), FileViewBase()
{
mSortingCol = COL_NAME;
mBlockSortingSignal = false;

@ -49,7 +49,7 @@ class FileDetailView : public KListView, public FileViewBase
friend class FileDetailViewItem;
public:
FileDetailView(TQWidget* tqparent, const char* name);
FileDetailView(TQWidget* parent, const char* name);
virtual ~FileDetailView();
virtual TQWidget* widget() { return this; }

@ -39,22 +39,22 @@ namespace Gwenview {
class FileDetailViewItem : public KListViewItem
{
public:
FileDetailViewItem( TQListView* tqparent, const TQString &text,
FileDetailViewItem( TQListView* parent, const TQString &text,
const TQPixmap &icon, KFileItem* fi )
: KListViewItem( tqparent, text ), inf( fi ) {
: KListViewItem( parent, text ), inf( fi ) {
setPixmap( 0, icon );
setText( 0, text );
}
FileDetailViewItem( TQListView* tqparent, KFileItem* fi )
: KListViewItem( tqparent ), inf( fi ) {
FileDetailViewItem( TQListView* parent, KFileItem* fi )
: KListViewItem( parent ), inf( fi ) {
init();
}
FileDetailViewItem( TQListView* tqparent, const TQString &text,
FileDetailViewItem( TQListView* parent, const TQString &text,
const TQPixmap &icon, KFileItem* fi,
TQListViewItem* after)
: KListViewItem( tqparent, after ), inf( fi ) {
: KListViewItem( parent, after ), inf( fi ) {
setPixmap( 0, icon );
setText( 0, text );
}

@ -40,51 +40,51 @@ namespace Gwenview {
namespace FileOperation {
void copyTo(const KURL::List& srcURL,TQWidget* tqparent) {
FileOpObject* op=new FileOpCopyToObject(srcURL,tqparent);
void copyTo(const KURL::List& srcURL,TQWidget* parent) {
FileOpObject* op=new FileOpCopyToObject(srcURL,parent);
(*op)();
}
void linkTo(const KURL::List& srcURL,TQWidget* tqparent) {
FileOpObject* op=new FileOpLinkToObject(srcURL,tqparent);
void linkTo(const KURL::List& srcURL,TQWidget* parent) {
FileOpObject* op=new FileOpLinkToObject(srcURL,parent);
(*op)();
}
void moveTo(const KURL::List& srcURL,TQWidget* tqparent,TQObject* receiver,const char* slot) {
FileOpObject* op=new FileOpMoveToObject(srcURL,tqparent);
void moveTo(const KURL::List& srcURL,TQWidget* parent,TQObject* receiver,const char* slot) {
FileOpObject* op=new FileOpMoveToObject(srcURL,parent);
if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot);
(*op)();
}
void makeDir(const KURL& parentURL, TQWidget* tqparent, TQObject* receiver, const char* slot) {
FileOpObject* op=new FileOpMakeDirObject(parentURL, tqparent);
void makeDir(const KURL& parentURL, TQWidget* parent, TQObject* receiver, const char* slot) {
FileOpObject* op=new FileOpMakeDirObject(parentURL, parent);
if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot);
(*op)();
}
void del(const KURL::List& url,TQWidget* tqparent,TQObject* receiver,const char* slot) {
FileOpObject* op = new FileOpDelObject(url,tqparent);
void del(const KURL::List& url,TQWidget* parent,TQObject* receiver,const char* slot) {
FileOpObject* op = new FileOpDelObject(url,parent);
if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot);
(*op)();
}
void trash(const KURL::List& url, TQWidget* tqparent, TQObject* receiver, const char* slot) {
FileOpObject* op = new FileOpTrashObject(url,tqparent);
void trash(const KURL::List& url, TQWidget* parent, TQObject* receiver, const char* slot) {
FileOpObject* op = new FileOpTrashObject(url,parent);
if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot);
(*op)();
}
void realDelete(const KURL::List& url, TQWidget* tqparent, TQObject* receiver, const char* slot) {
FileOpObject* op = new FileOpRealDeleteObject(url,tqparent);
void realDelete(const KURL::List& url, TQWidget* parent, TQObject* receiver, const char* slot) {
FileOpObject* op = new FileOpRealDeleteObject(url,parent);
if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot);
(*op)();
}
void rename(const KURL& url,TQWidget* tqparent,TQObject* receiver,const char* slot) {
FileOpObject* op=new FileOpRenameObject(url,tqparent);
void rename(const KURL& url,TQWidget* parent,TQObject* receiver,const char* slot) {
FileOpObject* op=new FileOpRenameObject(url,parent);
if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(renamed(const TQString&)),receiver,slot);
(*op)();
}
@ -101,8 +101,8 @@ void fillDropURLMenu(TQPopupMenu* menu, const KURL::List& urls, const KURL& targ
}
void openDropURLMenu(TQWidget* tqparent, const KURL::List& urls, const KURL& target, bool* wasMoved) {
TQPopupMenu menu(tqparent);
void openDropURLMenu(TQWidget* parent, const KURL::List& urls, const KURL& target, bool* wasMoved) {
TQPopupMenu menu(parent);
if (wasMoved) *wasMoved=false;
fillDropURLMenu(&menu, urls, target, wasMoved);

@ -39,14 +39,14 @@ namespace Gwenview {
*/
namespace FileOperation {
LIBGWENVIEW_EXPORT void copyTo(const KURL::List&,TQWidget* tqparent=0L);
LIBGWENVIEW_EXPORT void moveTo(const KURL::List&,TQWidget* tqparent,TQObject* receiver=0L,const char* slot=0L);
LIBGWENVIEW_EXPORT void linkTo(const KURL::List& srcURL,TQWidget* tqparent);
LIBGWENVIEW_EXPORT void makeDir(const KURL& parentURL, TQWidget* tqparent, TQObject* receiver=0L, const char* slot=0L);
LIBGWENVIEW_EXPORT void del(const KURL::List&,TQWidget* tqparent,TQObject* receiver=0L,const char* slot=0L);
LIBGWENVIEW_EXPORT void trash(const KURL::List&,TQWidget* tqparent,TQObject* receiver=0L,const char* slot=0L);
LIBGWENVIEW_EXPORT void realDelete(const KURL::List&,TQWidget* tqparent,TQObject* receiver=0L,const char* slot=0L);
LIBGWENVIEW_EXPORT void rename(const KURL&,TQWidget* tqparent,TQObject* receiver=0L,const char* slot=0L);
LIBGWENVIEW_EXPORT void copyTo(const KURL::List&,TQWidget* parent=0L);
LIBGWENVIEW_EXPORT void moveTo(const KURL::List&,TQWidget* parent,TQObject* receiver=0L,const char* slot=0L);
LIBGWENVIEW_EXPORT void linkTo(const KURL::List& srcURL,TQWidget* parent);
LIBGWENVIEW_EXPORT void makeDir(const KURL& parentURL, TQWidget* parent, TQObject* receiver=0L, const char* slot=0L);
LIBGWENVIEW_EXPORT void del(const KURL::List&,TQWidget* parent,TQObject* receiver=0L,const char* slot=0L);
LIBGWENVIEW_EXPORT void trash(const KURL::List&,TQWidget* parent,TQObject* receiver=0L,const char* slot=0L);
LIBGWENVIEW_EXPORT void realDelete(const KURL::List&,TQWidget* parent,TQObject* receiver=0L,const char* slot=0L);
LIBGWENVIEW_EXPORT void rename(const KURL&,TQWidget* parent,TQObject* receiver=0L,const char* slot=0L);
/**
@ -56,8 +56,8 @@ class DropMenuContext : public TQObject {
Q_OBJECT
TQ_OBJECT
public:
DropMenuContext(TQObject* tqparent, const KURL::List& src, const KURL& dst, bool* wasMoved)
: TQObject(tqparent)
DropMenuContext(TQObject* parent, const KURL::List& src, const KURL& dst, bool* wasMoved)
: TQObject(parent)
, mSrc(src)
, mDst(dst)
, mWasMoved(wasMoved)
@ -87,7 +87,7 @@ private:
LIBGWENVIEW_EXPORT void fillDropURLMenu(TQPopupMenu*, const KURL::List&, const KURL& target, bool* wasMoved=0L);
LIBGWENVIEW_EXPORT void openDropURLMenu(TQWidget* tqparent, const KURL::List&, const KURL& target, bool* wasMoved=0L);
LIBGWENVIEW_EXPORT void openDropURLMenu(TQWidget* parent, const KURL::List&, const KURL& target, bool* wasMoved=0L);
} // namespace

@ -51,8 +51,8 @@ namespace Gwenview {
*/
class DirSelectDialog : public KFileDialog {
public:
DirSelectDialog(const TQString& startDir, TQWidget* tqparent)
: KFileDialog(startDir, TQString(), tqparent, "dirselectdialog", true) {
DirSelectDialog(const TQString& startDir, TQWidget* parent)
: KFileDialog(startDir, TQString(), parent, "dirselectdialog", true) {
locationEdit->setEnabled(false);
filterWidget->setEnabled(false);
setMode(KFile::Directory | KFile::ExistingOnly);
@ -64,15 +64,15 @@ public:
//-FileOpObject--------------------------------------------------------------------
FileOpObject::FileOpObject(const KURL& url,TQWidget* tqparent)
: mParent(tqparent)
FileOpObject::FileOpObject(const KURL& url,TQWidget* parent)
: mParent(parent)
{
mURLList.append(url);
}
FileOpObject::FileOpObject(const KURL::List& list,TQWidget* tqparent)
: mParent(tqparent), mURLList(list)
FileOpObject::FileOpObject(const KURL::List& list,TQWidget* parent)
: mParent(parent), mURLList(list)
{}

@ -46,8 +46,8 @@ class FileOpObject : public TQObject {
Q_OBJECT
TQ_OBJECT
public:
FileOpObject(const KURL&,TQWidget* tqparent=0L);
FileOpObject(const KURL::List&,TQWidget* tqparent=0L);
FileOpObject(const KURL&,TQWidget* parent=0L);
FileOpObject(const KURL::List&,TQWidget* parent=0L);
virtual void operator()()=0;
signals:
@ -68,8 +68,8 @@ class FileOpCopyToObject : public FileOpObject {
Q_OBJECT
TQ_OBJECT
public:
FileOpCopyToObject(const KURL& url,TQWidget* tqparent=0L) : FileOpObject(url,tqparent) {}
FileOpCopyToObject(const KURL::List& urlList,TQWidget* tqparent=0L) : FileOpObject(urlList,tqparent) {}
FileOpCopyToObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
FileOpCopyToObject(const KURL::List& urlList,TQWidget* parent=0L) : FileOpObject(urlList,parent) {}
void operator()();
};
@ -77,8 +77,8 @@ class FileOpLinkToObject : public FileOpObject {
Q_OBJECT
TQ_OBJECT
public:
FileOpLinkToObject(const KURL& url,TQWidget* tqparent=0L) : FileOpObject(url,tqparent) {}
FileOpLinkToObject(const KURL::List& urlList,TQWidget* tqparent=0L) : FileOpObject(urlList,tqparent) {}
FileOpLinkToObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
FileOpLinkToObject(const KURL::List& urlList,TQWidget* parent=0L) : FileOpObject(urlList,parent) {}
void operator()();
};
@ -86,8 +86,8 @@ class FileOpMoveToObject : public FileOpObject {
Q_OBJECT
TQ_OBJECT
public:
FileOpMoveToObject(const KURL& url,TQWidget* tqparent=0L) : FileOpObject(url,tqparent) {}
FileOpMoveToObject(const KURL::List& urlList,TQWidget* tqparent=0L) : FileOpObject(urlList,tqparent) {}
FileOpMoveToObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
FileOpMoveToObject(const KURL::List& urlList,TQWidget* parent=0L) : FileOpObject(urlList,parent) {}
void operator()();
};
@ -95,7 +95,7 @@ class FileOpMakeDirObject : public FileOpObject {
Q_OBJECT
TQ_OBJECT
public:
FileOpMakeDirObject(const KURL& url, TQWidget* tqparent=0L) : FileOpObject(url, tqparent) {}
FileOpMakeDirObject(const KURL& url, TQWidget* parent=0L) : FileOpObject(url, parent) {}
void operator()();
};
@ -103,8 +103,8 @@ class FileOpDelObject : public FileOpObject {
Q_OBJECT
TQ_OBJECT
public:
FileOpDelObject(const KURL& url,TQWidget* tqparent=0L) : FileOpObject(url,tqparent) {}
FileOpDelObject(const KURL::List& urlList,TQWidget* tqparent=0L) : FileOpObject(urlList,tqparent) {}
FileOpDelObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
FileOpDelObject(const KURL::List& urlList,TQWidget* parent=0L) : FileOpObject(urlList,parent) {}
void operator()();
};
@ -113,8 +113,8 @@ class FileOpTrashObject : public FileOpObject {
Q_OBJECT
TQ_OBJECT
public:
FileOpTrashObject(const KURL& url,TQWidget* tqparent=0L) : FileOpObject(url,tqparent) {}
FileOpTrashObject(const KURL::List& urlList,TQWidget* tqparent=0L) : FileOpObject(urlList,tqparent) {}
FileOpTrashObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
FileOpTrashObject(const KURL::List& urlList,TQWidget* parent=0L) : FileOpObject(urlList,parent) {}
void operator()();
};
@ -123,8 +123,8 @@ class FileOpRealDeleteObject : public FileOpObject {
Q_OBJECT
TQ_OBJECT
public:
FileOpRealDeleteObject(const KURL& url,TQWidget* tqparent=0L) : FileOpObject(url,tqparent) {}
FileOpRealDeleteObject(const KURL::List& urlList,TQWidget* tqparent=0L) : FileOpObject(urlList,tqparent) {}
FileOpRealDeleteObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
FileOpRealDeleteObject(const KURL::List& urlList,TQWidget* parent=0L) : FileOpObject(urlList,parent) {}
void operator()();
};
@ -133,7 +133,7 @@ class FileOpRenameObject : public FileOpObject {
Q_OBJECT
TQ_OBJECT
public:
FileOpRenameObject(const KURL& url,TQWidget* tqparent=0L) : FileOpObject(url,tqparent) {}
FileOpRenameObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
void operator()();
signals:

@ -110,7 +110,7 @@ public:
}
void updatePosition() {
FileThumbnailView* view=static_cast<FileThumbnailView*>(TQT_TQWIDGET(tqparent()));
FileThumbnailView* view=static_cast<FileThumbnailView*>(TQT_TQWIDGET(parent()));
TQSize tmp=view->clipper()->size() - size();
move(tmp.width() - 2, tmp.height() - 2);
}
@ -159,8 +159,8 @@ static FileThumbnailViewItem* viewItem(const FileThumbnailView* view, const KFil
}
FileThumbnailView::FileThumbnailView(TQWidget* tqparent)
: KIconView(tqparent), FileViewBase()
FileThumbnailView::FileThumbnailView(TQWidget* parent)
: KIconView(parent), FileViewBase()
{
d=new Private;
d->mUpdateThumbnailsOnNextShow=false;

@ -52,7 +52,7 @@ Q_OBJECT
public:
enum ItemDetail { FILENAME=1, FILESIZE=2, FILEDATE=4, IMAGESIZE=8 };
FileThumbnailView(TQWidget* tqparent);
FileThumbnailView(TQWidget* parent);
~FileThumbnailView();
TQWidget* widget() { return this; }

@ -42,7 +42,7 @@ public:
class WrappedLine;
enum { PADDING=4 };
FileThumbnailViewItem(TQIconView* tqparent,const TQString& text,const TQPixmap& icon, KFileItem* fileItem);
FileThumbnailViewItem(TQIconView* parent,const TQString& text,const TQPixmap& icon, KFileItem* fileItem);
~FileThumbnailViewItem();
KFileItem* fileItem() const { return mFileItem; }

@ -252,8 +252,8 @@ public:
// FileViewController
//
//-----------------------------------------------------------------------
FileViewController::FileViewController(TQWidget* tqparent,KActionCollection* actionCollection)
: TQWidget(tqparent)
FileViewController::FileViewController(TQWidget* parent,KActionCollection* actionCollection)
: TQWidget(parent)
, mMode(FILE_LIST)
, mPrefetch( NULL )
, mChangeDirtqStatus(CHANGE_DIR_STATUS_NONE)

@ -62,7 +62,7 @@ public:
enum Mode { FILE_LIST, THUMBNAIL};
enum FilterMode { ALL, IMAGES_ONLY, VIDEOS_ONLY };
FileViewController(TQWidget* tqparent,KActionCollection*);
FileViewController(TQWidget* parent,KActionCollection*);
~FileViewController();
// Properties

@ -75,8 +75,8 @@ struct FullScreenBar::Private {
};
FullScreenBar::FullScreenBar(TQWidget* tqparent)
: KToolBar(tqparent, "FullScreenBar") {
FullScreenBar::FullScreenBar(TQWidget* parent)
: KToolBar(parent, "FullScreenBar") {
d=new Private;
d->mState=OUT;
d->mFirstShow=true;
@ -105,15 +105,15 @@ FullScreenBar::~FullScreenBar() {
void FullScreenBar::resizeEvent(TQResizeEvent* event) {
KToolBar::resizeEvent(event);
// Create a tqmask
// Create a mask
TQPainter painter;
TQBitmap tqmask(size(), true);
painter.begin(&tqmask);
TQBitmap mask(size(), true);
painter.begin(&mask);
painter.setBrush(TQt::white);
fillMask(painter, rect());
painter.end();
setMask(tqmask);
setMask(mask);
}

@ -34,7 +34,7 @@ class FullScreenBar : public KToolBar {
Q_OBJECT
TQ_OBJECT
public:
FullScreenBar(TQWidget* tqparent);
FullScreenBar(TQWidget* parent);
~FullScreenBar();
void slideIn();

@ -44,8 +44,8 @@ static int findFormatInFilterList(const TQStringList& filters, const TQString& f
}
ImageSaveDialog::ImageSaveDialog(KURL& url, const TQCString& imageFormat, TQWidget* tqparent)
: KFileDialog(":ImageSaveDialog",TQString(),tqparent,"imagesavedialog",true)
ImageSaveDialog::ImageSaveDialog(KURL& url, const TQCString& imageFormat, TQWidget* parent)
: KFileDialog(":ImageSaveDialog",TQString(),parent,"imagesavedialog",true)
, mURL(url)
, mImageFormat(imageFormat)
{

@ -34,7 +34,7 @@ class ImageSaveDialog : public KFileDialog {
Q_OBJECT
TQ_OBJECT
public:
ImageSaveDialog(KURL& url,const TQCString& imageFormat,TQWidget* tqparent);
ImageSaveDialog(KURL& url,const TQCString& imageFormat,TQWidget* parent);
TQCString imageFormat() const { return mImageFormat; }
protected slots:

@ -272,15 +272,15 @@ inline bool doDelayedSmoothing() {
class ImageView::EventFilter : public TQObject {
public:
EventFilter(ImageView* tqparent)
: TQObject(tqparent) {}
EventFilter(ImageView* parent)
: TQObject(parent) {}
bool eventFilter(TQObject*, TQEvent* event) {
switch (event->type()) {
case TQEvent::KeyPress:
case TQEvent::KeyRelease:
case TQEvent::AccelOverride:
return static_cast< ImageView* >( TQT_TQWIDGET(tqparent()))
return static_cast< ImageView* >( TQT_TQWIDGET(parent()))
->viewportKeyEvent(TQT_TQKEYEVENT(event));
default:
break;
@ -291,8 +291,8 @@ public:
ImageView::ImageView(TQWidget* tqparent,Document* document, KActionCollection* actionCollection)
: TQScrollView(tqparent,0L,WResizeNoErase|WRepaintNoErase|WPaintClever)
ImageView::ImageView(TQWidget* parent,Document* document, KActionCollection* actionCollection)
: TQScrollView(parent,0L,WResizeNoErase|WRepaintNoErase|WPaintClever)
{
d=new Private;
d->mDocument=document;

@ -67,7 +67,7 @@ public:
enum ZoomMode { ZOOM_FIT, ZOOM_FIT_WIDTH, ZOOM_FIT_HEIGHT, ZOOM_FREE };
typedef TQMap<ToolID,ToolBase*> Tools;
ImageView(TQWidget* tqparent,Document*,KActionCollection*);
ImageView(TQWidget* parent,Document*,KActionCollection*);
~ImageView();
// Properties

@ -64,11 +64,11 @@ namespace Gwenview {
*/
class XMLGUIBuilder : public KXMLGUIBuilder {
public:
XMLGUIBuilder(TQWidget* tqparent) : KXMLGUIBuilder(tqparent) {}
XMLGUIBuilder(TQWidget* parent) : KXMLGUIBuilder(parent) {}
virtual TQWidget* createContainer(TQWidget *tqparent, int index, const TQDomElement &element, int &id) {
virtual TQWidget* createContainer(TQWidget *parent, int index, const TQDomElement &element, int &id) {
if (element.tagName().lower() == "toolbar") {
return KXMLGUIBuilder::createContainer(tqparent, index, element, id);
return KXMLGUIBuilder::createContainer(parent, index, element, id);
} else {
return 0;
}
@ -264,8 +264,8 @@ struct ImageViewController::Private {
//------------------------------------------------------------------------
ImageViewController::ImageViewController(TQWidget* tqparent, Document* document, KActionCollection* actionCollection)
: TQObject(tqparent) {
ImageViewController::ImageViewController(TQWidget* parent, Document* document, KActionCollection* actionCollection)
: TQObject(parent) {
d=new Private;
d->mImageViewController=this;
d->mDocument=document;
@ -273,7 +273,7 @@ ImageViewController::ImageViewController(TQWidget* tqparent, Document* document,
d->mAutoHideTimer=new TQTimer(this);
d->mCursorHidden=false;
d->mContainer=new TQWidget(tqparent);
d->mContainer=new TQWidget(parent);
d->mContainer->setMinimumWidth(1); // Make sure we can resize the toolbar smaller than its minimum size
TQVBoxLayout* tqlayout=new TQVBoxLayout(d->mContainer);
d->mToolBar=new KToolBar(d->mContainer, "", true);
@ -425,7 +425,7 @@ bool ImageViewController::eventFilter(TQObject* object, TQEvent* event) {
// have to check we are not dealing with another object.
bool isAChildOfStack=false;
TQObject* parentObject;
for (parentObject=object->tqparent(); parentObject; parentObject=parentObject->tqparent()) {
for (parentObject=object->parent(); parentObject; parentObject=parentObject->parent()) {
if (TQT_BASE_OBJECT(parentObject)==TQT_BASE_OBJECT(d->mStack)) {
isAChildOfStack=true;
break;

@ -46,7 +46,7 @@ class LIBGWENVIEW_EXPORT ImageViewController : public TQObject {
Q_OBJECT
TQ_OBJECT
public:
ImageViewController(TQWidget* tqparent, Document*, KActionCollection*);
ImageViewController(TQWidget* parent, Document*, KActionCollection*);
~ImageViewController();
TQWidget* widget() const;

@ -36,8 +36,8 @@ struct InputDialog::Private {
};
InputDialog::InputDialog(TQWidget* tqparent)
: KDialogBase(tqparent, "InputDialog", true, TQString(),
InputDialog::InputDialog(TQWidget* parent)
: KDialogBase(parent, "InputDialog", true, TQString(),
KDialogBase::Ok|KDialogBase::Cancel)
{
d = new Private;

@ -38,7 +38,7 @@ class InputDialog : public KDialogBase {
Q_OBJECT
TQ_OBJECT
public:
InputDialog(TQWidget* tqparent);
InputDialog(TQWidget* parent);
~InputDialog();
void setLabel(const TQString& label);
KLineEdit* lineEdit() const;

@ -76,8 +76,8 @@ static inline double unitToMM(Unit unit) {
}
PrintDialogPage::PrintDialogPage( Document* document, TQWidget *tqparent, const char *name )
: KPrintDialogPage( tqparent, name ) {
PrintDialogPage::PrintDialogPage( Document* document, TQWidget *parent, const char *name )
: KPrintDialogPage( parent, name ) {
mDocument = document;
mContent = new PrintDialogPageBase(this);
setTitle( mContent->caption() );

@ -51,7 +51,7 @@ class LIBGWENVIEW_EXPORT PrintDialogPage : public KPrintDialogPage {
TQ_OBJECT
public:
PrintDialogPage( Document* document, TQWidget *tqparent = 0L, const char *name = 0 );
PrintDialogPage( Document* document, TQWidget *parent = 0L, const char *name = 0 );
~PrintDialogPage();
virtual void getOptions(TQMap<TQString,TQString>& opts, bool incldef = false);

@ -561,7 +561,7 @@ void XCFImageFormat::initializeImage ( XCFImage& xcf_image )
// individual colors.
// Note: TQt treats a bitmap with a Black and White color palette
// as a tqmask, so only the "on" bits are drawn, regardless of the
// as a mask, so only the "on" bits are drawn, regardless of the
// order color table entries. Otherwise (i.e., at least one of the
// color table entries is not black or white), it obeys the one-
// or two-color palette. Have to ask about this...
@ -750,7 +750,7 @@ void XCFImageFormat::setPalette ( XCFImage& xcf_image, TQImage& image )
/*!
* An XCF file can contain an arbitrary number of properties associated
* with the image (and layer and tqmask).
* with the image (and layer and mask).
* \param xcf_io the data stream connected to the XCF image
* \param xcf_image XCF image data.
* \return true if there were no I/O errors.
@ -964,15 +964,15 @@ bool XCFImageFormat::loadLayerProperties ( SafeDataStream& xcf_io, Layer& layer
break;
case PROP_APPLY_MASK:
property >> layer.apply_tqmask;
property >> layer.apply_mask;
break;
case PROP_EDIT_MASK:
property >> layer.edit_tqmask;
property >> layer.edit_mask;
break;
case PROP_SHOW_MASK:
property >> layer.show_tqmask;
property >> layer.show_mask;
break;
case PROP_OFFSETS:
@ -995,9 +995,9 @@ bool XCFImageFormat::loadLayerProperties ( SafeDataStream& xcf_io, Layer& layer
/*!
* An XCF file can contain an arbitrary number of properties associated
* with a channel. Note that this routine only reads tqmask channel properties.
* with a channel. Note that this routine only reads mask channel properties.
* \param xcf_io the data stream connected to the XCF image.
* \param layer layer containing the tqmask channel to collect the properties.
* \param layer layer containing the mask channel to collect the properties.
* \return true if there were no I/O errors.
*/
bool XCFImageFormat::loadChannelProperties ( SafeDataStream& xcf_io, Layer& layer )
@ -1167,9 +1167,9 @@ bool XCFImageFormat::loadLevel ( SafeDataStream& xcf_io, Layer& layer, TQ_INT32
}
/*!
* A layer can have a one channel image which is used as a tqmask.
* A layer can have a one channel image which is used as a mask.
* \param xcf_io the data stream connected to the XCF image.
* \param layer the layer to collect the tqmask image.
* \param layer the layer to collect the mask image.
* \return true if there were no I/O errors.
*/
bool XCFImageFormat::loadMask ( SafeDataStream& xcf_io, Layer& layer )
@ -1181,7 +1181,7 @@ bool XCFImageFormat::loadMask ( SafeDataStream& xcf_io, Layer& layer )
xcf_io >> width >> height >> name;
if ( xcf_io.failed() ) {
qDebug( "XCF: read failure on tqmask info" );
qDebug( "XCF: read failure on mask info" );
return false;
}
@ -1194,7 +1194,7 @@ bool XCFImageFormat::loadMask ( SafeDataStream& xcf_io, Layer& layer )
xcf_io >> hierarchy_offset;
if ( xcf_io.failed() ) {
qDebug( "XCF: read failure on tqmask image offset" );
qDebug( "XCF: read failure on mask image offset" );
return false;
}
@ -1393,8 +1393,8 @@ void XCFImageFormat::assignImageBytes ( Layer& layer, uint i, uint j )
}
/*!
* Copy the bytes from the tile buffer into the tqmask tile TQImage.
* \param layer layer containing the tile buffer and the tqmask tile matrix.
* Copy the bytes from the tile buffer into the mask tile TQImage.
* \param layer layer containing the tile buffer and the mask tile matrix.
* \param i column index of current tile.
* \param j row index of current tile.
*/
@ -1605,9 +1605,9 @@ void XCFImageFormat::copyRGBToRGB ( Layer& layer, uint i, uint j, int k, int l,
if ( layer.type == RGBA_GIMAGE )
src_a = INT_MULT( src_a, tqAlpha( src ) );
// Apply the tqmask (if any)
// Apply the mask (if any)
if ( layer.apply_tqmask == 1 && layer.mask_tiles.size() > j &&
if ( layer.apply_mask == 1 && layer.mask_tiles.size() > j &&
layer.mask_tiles[j].size() > i )
src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) );
@ -1678,9 +1678,9 @@ void XCFImageFormat::copyGrayAToRGB ( Layer& layer, uint i, uint j, int k, int l
src_a = INT_MULT( src_a, layer.opacity );
// Apply the tqmask (if any)
// Apply the mask (if any)
if ( layer.apply_tqmask == 1 && layer.mask_tiles.size() > j &&
if ( layer.apply_mask == 1 && layer.mask_tiles.size() > j &&
layer.mask_tiles[j].size() > i )
src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) );
@ -1726,7 +1726,7 @@ void XCFImageFormat::copyIndexedAToIndexed ( Layer& layer,uint i,uint j,int k,in
src_a = INT_MULT( src_a, layer.opacity );
if ( layer.apply_tqmask == 1 &&
if ( layer.apply_mask == 1 &&
layer.mask_tiles.size() > j &&
layer.mask_tiles[j].size() > i )
src_a = INT_MULT( src_a,
@ -1762,9 +1762,9 @@ void XCFImageFormat::copyIndexedAToRGB ( Layer& layer, uint i, uint j, int k, in
src_a = INT_MULT( src_a, layer.opacity );
// Apply the tqmask (if any)
// Apply the mask (if any)
if ( layer.apply_tqmask == 1 && layer.mask_tiles.size() > j &&
if ( layer.apply_mask == 1 && layer.mask_tiles.size() > j &&
layer.mask_tiles[j].size() > i )
src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) );
@ -2019,9 +2019,9 @@ void XCFImageFormat::mergeRGBToRGB ( Layer& layer, uint i, uint j, int k, int l,
src_a = INT_MULT( src_a, layer.opacity );
// Apply the tqmask (if any)
// Apply the mask (if any)
if ( layer.apply_tqmask == 1 && layer.mask_tiles.size() > j &&
if ( layer.apply_mask == 1 && layer.mask_tiles.size() > j &&
layer.mask_tiles[j].size() > i )
src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) );
@ -2121,9 +2121,9 @@ void XCFImageFormat::mergeGrayAToGray ( Layer& layer, uint i, uint j, int k, int
src_a = INT_MULT( src_a, layer.opacity );
// Apply the tqmask (if any)
// Apply the mask (if any)
if ( layer.apply_tqmask == 1 && layer.mask_tiles.size() > j &&
if ( layer.apply_mask == 1 && layer.mask_tiles.size() > j &&
layer.mask_tiles[j].size() > i )
src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) );
@ -2232,9 +2232,9 @@ void XCFImageFormat::mergeGrayAToRGB ( Layer& layer, uint i, uint j, int k, int
src_a = INT_MULT( src_a, layer.opacity );
// Apply the tqmask (if any)
// Apply the mask (if any)
if ( layer.apply_tqmask == 1 && layer.mask_tiles.size() > j &&
if ( layer.apply_mask == 1 && layer.mask_tiles.size() > j &&
layer.mask_tiles[j].size() > i )
src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) );
@ -2290,7 +2290,7 @@ void XCFImageFormat::mergeIndexedAToIndexed ( Layer& layer,uint i,uint j,int k,i
src_a = INT_MULT( src_a, layer.opacity );
if ( layer.apply_tqmask == 1 &&
if ( layer.apply_mask == 1 &&
layer.mask_tiles.size() > j &&
layer.mask_tiles[j].size() > i )
src_a = INT_MULT( src_a,
@ -2324,9 +2324,9 @@ void XCFImageFormat::mergeIndexedAToRGB ( Layer& layer, uint i, uint j, int k, i
src_a = INT_MULT( src_a, layer.opacity );
// Apply the tqmask (if any)
// Apply the mask (if any)
if ( layer.apply_tqmask == 1 && layer.mask_tiles.size() > j &&
if ( layer.apply_mask == 1 && layer.mask_tiles.size() > j &&
layer.mask_tiles[j].size() > i )
src_a = INT_MULT( src_a, layer.mask_tiles[j][i].pixelIndex( k, l ) );

@ -130,7 +130,7 @@ class XCFImageFormat : public TQImageFormatPlugin {
TQ_INT32 type; //!< Type of the layer (GimpImageType)
char* name; //!< Name of the layer
TQ_UINT32 hierarchy_offset; //!< File position of Tile hierarchy
TQ_UINT32 mask_offset; //!< File position of tqmask image
TQ_UINT32 mask_offset; //!< File position of mask image
uint nrows; //!< Number of rows of tiles (y direction)
uint ncols; //!< Number of columns of tiles (x direction)
@ -139,9 +139,9 @@ class XCFImageFormat : public TQImageFormatPlugin {
//! For Grayscale and Indexed images, the alpha channel is stored
//! separately (in this data structure, anyway).
Tiles alpha_tiles;
Tiles mask_tiles; //!< The layer tqmask (optional)
Tiles mask_tiles; //!< The layer mask (optional)
//! Additional information about a layer tqmask.
//! Additional information about a layer mask.
struct {
TQ_UINT32 opacity;
TQ_UINT32 visible;
@ -155,9 +155,9 @@ class XCFImageFormat : public TQImageFormatPlugin {
TQ_UINT32 visible; //!< Is the layer visible?
TQ_UINT32 linked; //!< Is this layer linked (geometrically)
TQ_UINT32 preserve_transparency; //!< Preserve alpha when drawing on layer?
TQ_UINT32 apply_tqmask; //!< Apply the layer tqmask?
TQ_UINT32 edit_tqmask; //!< Is the layer tqmask the being edited?
TQ_UINT32 show_tqmask; //!< Show the layer tqmask rather than the image?
TQ_UINT32 apply_mask; //!< Apply the layer mask?
TQ_UINT32 edit_mask; //!< Is the layer mask the being edited?
TQ_UINT32 show_mask; //!< Show the layer mask rather than the image?
TQ_INT32 x_offset; //!< x offset of the layer relative to the image
TQ_INT32 y_offset; //!< y offset of the layer relative to the image
TQ_UINT32 mode; //!< Combining mode of layer (LayerModeEffects)
@ -168,7 +168,7 @@ class XCFImageFormat : public TQImageFormatPlugin {
//! The data from tile buffer is copied to the Tile by this
//! method. Depending on the type of the tile (RGB, Grayscale,
//! Indexed) and use (image or tqmask), the bytes in the buffer are
//! Indexed) and use (image or mask), the bytes in the buffer are
//! copied in different ways.
void (*assignBytes)( Layer& layer, uint i, uint j );

@ -59,8 +59,8 @@ const char CONFIG_CACHE_GROUP[]="cache";
typedef KParts::GenericFactory<GVDirPart> GVDirFactory;
K_EXPORT_COMPONENT_FACTORY( libgvdirpart /*library name*/, GVDirFactory )
GVDirPart::GVDirPart(TQWidget* parentWidget, const char* /*widgetName*/, TQObject* tqparent, const char* name,
const TQStringList &) : KParts::ReadOnlyPart( tqparent, name ) {
GVDirPart::GVDirPart(TQWidget* parentWidget, const char* /*widgetName*/, TQObject* parent, const char* name,
const TQStringList &) : KParts::ReadOnlyPart( parent, name ) {
GVDirFactory::instance()->iconLoader()->addAppDir( "gwenview");
setInstance( GVDirFactory::instance() );
KGlobal::locale()->insertCatalogue("gwenview");

@ -59,11 +59,11 @@ const char CONFIG_CACHE_GROUP[]="cache";
#endif
static bool storeData(TQWidget* tqparent, TQFile* file, const TQByteArray& data) {
static bool storeData(TQWidget* parent, TQFile* file, const TQByteArray& data) {
uint sizeWritten = file->writeBlock(data);
if (sizeWritten != data.size()) {
KMessageBox::error(
tqparent,
parent,
i18n("Could not save image to a temporary file"));
return false;
}
@ -75,9 +75,9 @@ static bool storeData(TQWidget* tqparent, TQFile* file, const TQByteArray& data)
typedef KParts::GenericFactory<GVImagePart> GVImageFactory;
K_EXPORT_COMPONENT_FACTORY( libgvimagepart /*library name*/, GVImageFactory )
GVImagePart::GVImagePart(TQWidget* parentWidget, const char* /*widgetName*/, TQObject* tqparent,
GVImagePart::GVImagePart(TQWidget* parentWidget, const char* /*widgetName*/, TQObject* parent,
const char* name, const TQStringList &)
: KParts::ReadOnlyPart( tqparent, name )
: KParts::ReadOnlyPart( parent, name )
, mPrefetch( NULL )
, mLastDirection( DirectionUnknown ) {
GVImageFactory::instance()->iconLoader()->addAppDir( "gwenview");

@ -384,7 +384,7 @@ rm -rf $RPM_BUILD_ROOT
- Fixes:
- Gave contributors the credit they deserve in the about box.
- Updated to libexif 0.5.12 and applied patch from libexif CVS.
- When going to the tqparent folder, make sure the folder we were in before is selected.
- When going to the parent folder, make sure the folder we were in before is selected.
- If there's no image in the current folder, select the first visible file.
- When holding down Shift to zoom, keep the same area of the image under the cursor.
- Nicer drag cursor.

@ -45,10 +45,10 @@ class TSMainThread
virtual void run() { assert( false ); }
};
TSThread::Helper::Helper( TSThread* tqparent )
: thread( tqparent )
TSThread::Helper::Helper( TSThread* parent )
: thread( parent )
{
assert( tqparent );
assert( parent );
}
void TSThread::Helper::run()

@ -176,7 +176,7 @@ class TSThread
: public TQThread
{
public:
Helper( TSThread* tqparent );
Helper( TSThread* parent );
protected:
virtual void run();
private:

Loading…
Cancel
Save