rename the following methods:

tqparent parent
tqmask mask


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

@ -37,7 +37,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
static Data::BorrowerPtr getBorrower(TQWidget* tqparent); static Data::BorrowerPtr getBorrower(TQWidget* parent);
private slots: private slots:
void selectItem(const TQString& name); void selectItem(const TQString& name);
@ -48,10 +48,10 @@ private:
/** /**
* The constructor sets up the dialog. * The constructor sets up the dialog.
* *
* @param tqparent A pointer to the tqparent widget * @param parent A pointer to the parent widget
* @param name The widget name * @param name The widget name
*/ */
BorrowerDialog(TQWidget* tqparent, const char* name=0); BorrowerDialog(TQWidget* parent, const char* name=0);
Data::BorrowerPtr borrower(); Data::BorrowerPtr borrower();
TQString m_uid; TQString m_uid;
@ -61,8 +61,8 @@ private:
class Item : public KListViewItem { class Item : public KListViewItem {
public: public:
Item(KListView* tqparent, const KABC::Addressee& addressee); Item(KListView* parent, const KABC::Addressee& addressee);
Item(KListView* tqparent, const Data::Borrower& borrower); Item(KListView* parent, const Data::Borrower& borrower);
const TQString& uid() const { return m_uid; } const TQString& uid() const { return m_uid; }
private: private:

@ -24,7 +24,7 @@ namespace Tellico {
*/ */
class BorrowerItem : public GUI::CountedItem { class BorrowerItem : public GUI::CountedItem {
public: public:
BorrowerItem(GUI::ListView* tqparent, Data::BorrowerPtr filter); BorrowerItem(GUI::ListView* parent, Data::BorrowerPtr filter);
virtual bool isBorrowerItem() const { return true; } virtual bool isBorrowerItem() const { return true; }
Data::BorrowerPtr borrower() { return m_borrower; } Data::BorrowerPtr borrower() { return m_borrower; }

@ -112,7 +112,7 @@ CollectionFieldsDialog::CollectionFieldsDialog(Data::CollPtr coll_, TQWidget* pa
TQGroupBox* propGroup = new TQGroupBox(1, Qt::Horizontal, i18n("Field Properties"), vbox); TQGroupBox* propGroup = new TQGroupBox(1, Qt::Horizontal, i18n("Field Properties"), vbox);
TQWidget* grid = new TQWidget(propGroup); TQWidget* grid = new TQWidget(propGroup);
// (tqparent, nrows, ncols, margin, spacing) // (parent, nrows, ncols, margin, spacing)
TQGridLayout* tqlayout = new TQGridLayout(grid, 4, 4, 0, KDialog::spacingHint()); TQGridLayout* tqlayout = new TQGridLayout(grid, 4, 4, 0, KDialog::spacingHint());
int row = -1; int row = -1;

@ -57,11 +57,11 @@ public:
/** /**
* The constructor sets up the dialog. * The constructor sets up the dialog.
* *
* @param coll A pointer to the collection tqparent of all the attributes * @param coll A pointer to the collection parent of all the attributes
* @param tqparent A pointer to the tqparent widget * @param parent A pointer to the parent widget
* @param name The widget name * @param name The widget name
*/ */
CollectionFieldsDialog(Data::CollPtr coll, TQWidget* tqparent, const char* name=0); CollectionFieldsDialog(Data::CollPtr coll, TQWidget* parent, const char* name=0);
~CollectionFieldsDialog(); ~CollectionFieldsDialog();
signals: signals:

@ -830,7 +830,7 @@ void ConfigDialog::slotRemoveSourceClicked() {
Fetch::ConfigWidget* cw = m_configWidgets[item]; Fetch::ConfigWidget* cw = m_configWidgets[item];
if(cw) { if(cw) {
m_removedConfigWidgets.append(cw); m_removedConfigWidgets.append(cw);
// it gets deleted by the tqparent // it gets deleted by the parent
} }
m_configWidgets.remove(item); m_configWidgets.remove(item);
delete item; delete item;

@ -53,10 +53,10 @@ public:
/** /**
* The constructor sets up the Tabbed dialog pages. * The constructor sets up the Tabbed dialog pages.
* *
* @param tqparent A pointer to the tqparent widget * @param parent A pointer to the parent widget
* @param name The widget name * @param name The widget name
*/ */
ConfigDialog(TQWidget* tqparent, const char* name=0); ConfigDialog(TQWidget* parent, const char* name=0);
virtual ~ConfigDialog(); virtual ~ConfigDialog();
/** /**
@ -200,10 +200,10 @@ public:
class SourceListViewItem : public KListViewItem { class SourceListViewItem : public KListViewItem {
public: public:
SourceListViewItem(KListView* tqparent, const GeneralFetcherInfo& info, SourceListViewItem(KListView* parent, const GeneralFetcherInfo& info,
const TQString& groupName = TQString()); const TQString& groupName = TQString());
SourceListViewItem(KListView* tqparent, TQListViewItem* after, SourceListViewItem(KListView* parent, TQListViewItem* after,
const GeneralFetcherInfo& info, const TQString& groupName = TQString()); const GeneralFetcherInfo& info, const TQString& groupName = TQString());
void setConfigGroup(const TQString& s) { m_configGroup = s; } void setConfigGroup(const TQString& s) { m_configGroup = s; }

@ -44,8 +44,8 @@ public:
/** /**
* Initializes the singleton. Should just be called once, from Tellico::MainWindow * Initializes the singleton. Should just be called once, from Tellico::MainWindow
*/ */
static void init(MainWindow* tqparent, const char* name=0) { static void init(MainWindow* parent, const char* name=0) {
if(!s_self) s_self = new Controller(tqparent, name); if(!s_self) s_self = new Controller(parent, name);
} }
const Data::EntryVec& selectedEntries() const { return m_selectedEntries; } const Data::EntryVec& selectedEntries() const { return m_selectedEntries; }
@ -108,7 +108,7 @@ public:
public slots: public slots:
/** /**
* When a collection is added to the document, certain actions need to be taken * When a collection is added to the document, certain actions need to be taken
* by the tqparent app. The collection toolbar is updated, the entry count is set, and * by the parent app. The collection toolbar is updated, the entry count is set, and
* the collection's modified signal is connected to the @ref GroupView widget. * the collection's modified signal is connected to the @ref GroupView widget.
* *
* @param coll A pointer to the collection being added * @param coll A pointer to the collection being added
@ -149,7 +149,7 @@ signals:
private: private:
static Controller* s_self; static Controller* s_self;
Controller(MainWindow* tqparent, const char* name); Controller(MainWindow* parent, const char* name);
void blockAllSignals(bool block) const; void blockAllSignals(bool block) const;
bool canCheckIn() const; bool canCheckIn() const;

@ -24,7 +24,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DropHandler(TQObject* tqparent); DropHandler(TQObject* parent);
~DropHandler(); ~DropHandler();
protected: protected:

@ -30,7 +30,7 @@ class DetailedEntryItem : public EntryItem {
public: public:
enum State { Normal, New, Modified }; enum State { Normal, New, Modified };
DetailedEntryItem(DetailedListView* tqparent, Data::EntryPtr entry); DetailedEntryItem(DetailedListView* parent, Data::EntryPtr entry);
~DetailedEntryItem(); ~DetailedEntryItem();
void setState(State state); void setState(State state);

@ -41,10 +41,10 @@ public:
/** /**
* The constructor initializes the popup menu, but no columns are inserted. * The constructor initializes the popup menu, but no columns are inserted.
* *
* @param tqparent A pointer to the tqparent widget * @param parent A pointer to the parent widget
* @param name The widget name * @param name The widget name
*/ */
DetailedListView(TQWidget* tqparent, const char* name=0); DetailedListView(TQWidget* parent, const char* name=0);
~DetailedListView(); ~DetailedListView();
/** /**

@ -72,7 +72,7 @@ public:
* The constructor, which automatically sets the id to the current number * The constructor, which automatically sets the id to the current number
* of entries in the collection. * of entries in the collection.
* *
* @param coll A pointer to the tqparent collection object * @param coll A pointer to the parent collection object
*/ */
Entry(CollPtr coll); Entry(CollPtr coll);
Entry(CollPtr coll, int id); Entry(CollPtr coll, int id);
@ -140,7 +140,7 @@ public:
bool setField(const TQString& fieldName, const TQString& value); bool setField(const TQString& fieldName, const TQString& value);
bool setField(Data::FieldPtr field, const TQString& value); bool setField(Data::FieldPtr field, const TQString& value);
/** /**
* Returns a pointer to the tqparent collection of the entry. * Returns a pointer to the parent collection of the entry.
* *
* @return The collection pointer * @return The collection pointer
*/ */
@ -201,8 +201,8 @@ public:
*/ */
TQStringList formattedFieldValues() const { return m_formattedFields.values(); } TQStringList formattedFieldValues() const { return m_formattedFields.values(); }
/** /**
* Returns a boolean indicating if the entry's tqparent collection recognizes * Returns a boolean indicating if the entry's parent collection recognizes
* it existence, that is, the tqparent collection has this entry in its list. * it existence, that is, the parent collection has this entry in its list.
* *
* @return Whether the entry is owned or not * @return Whether the entry is owned or not
*/ */

@ -155,12 +155,12 @@ void EntryEditDialog::setLayout(Data::CollPtr coll_) {
// if this tqlayout model is changed, be sure to check slotUpdateField() // if this tqlayout model is changed, be sure to check slotUpdateField()
TQWidget* page = new TQWidget(m_tabs); TQWidget* page = new TQWidget(m_tabs);
// (tqparent, margin, spacing) // (parent, margin, spacing)
TQVBoxLayout* boxLayout = new TQVBoxLayout(page, 0, 0); TQVBoxLayout* boxLayout = new TQVBoxLayout(page, 0, 0);
TQWidget* grid = new TQWidget(page); TQWidget* grid = new TQWidget(page);
gridList.append(grid); gridList.append(grid);
// (tqparent, nrows, ncols, margin, spacing) // (parent, nrows, ncols, margin, spacing)
// spacing gets a bit weird, if there are absolutely no Choice fields, // spacing gets a bit weird, if there are absolutely no Choice fields,
// then spacing should be 5, which is set later // then spacing should be 5, which is set later
TQGridLayout* tqlayout = new TQGridLayout(grid, 0, NCOLS, 8, 2); TQGridLayout* tqlayout = new TQGridLayout(grid, 0, NCOLS, 8, 2);
@ -249,7 +249,7 @@ void EntryEditDialog::setLayout(Data::CollPtr coll_) {
} }
// I don't want anything to be hidden, Keramik has a bug if I don't do this // I don't want anything to be hidden, Keramik has a bug if I don't do this
it.current()->setMinimumHeight(it.current()->tqsizeHint().height()); it.current()->setMinimumHeight(it.current()->tqsizeHint().height());
// the tqparent of the grid is the page that got added to the tabs // the parent of the grid is the page that got added to the tabs
it.current()->parentWidget()->tqlayout()->tqinvalidate(); it.current()->parentWidget()->tqlayout()->tqinvalidate();
it.current()->parentWidget()->setMinimumHeight(it.current()->parentWidget()->tqsizeHint().height()); it.current()->parentWidget()->setMinimumHeight(it.current()->parentWidget()->tqsizeHint().height());
} }
@ -560,7 +560,7 @@ void EntryEditDialog::removeField(Data::CollPtr, Data::FieldPtr field_) {
// so the category should be gone from the category list // so the category should be gone from the category list
if(m_currColl->fieldCategories().findIndex(field_->category()) == -1) { if(m_currColl->fieldCategories().findIndex(field_->category()) == -1) {
// myDebug() << "last field in the category" << endl; // myDebug() << "last field in the category" << endl;
// fragile, widget's tqparent is the grid, whose tqparent is the tab page // fragile, widget's parent is the grid, whose parent is the tab page
TQWidget* w = widget->parentWidget()->parentWidget(); TQWidget* w = widget->parentWidget()->parentWidget();
m_tabs->removePage(w); m_tabs->removePage(w);
delete w; // automatically deletes child widget delete w; // automatically deletes child widget
@ -716,7 +716,7 @@ void EntryEditDialog::modifyField(Data::CollPtr coll_, Data::FieldPtr oldField_,
delete childList; delete childList;
} }
// this is very fragile! // this is very fragile!
// field widgets's tqparent is the grid, whose tqparent is the tab page // field widgets's parent is the grid, whose parent is the tab page
// this is for singleCategory fields // this is for singleCategory fields
if(newField_->category() != oldField_->category()) { if(newField_->category() != oldField_->category()) {
m_tabs->setTabLabel(widget->parentWidget()->parentWidget(), newField_->category()); m_tabs->setTabLabel(widget->parentWidget()->parentWidget(), newField_->category());

@ -39,7 +39,7 @@ Q_OBJECT
friend class GUI::FieldWidget; friend class GUI::FieldWidget;
public: public:
EntryEditDialog(TQWidget* tqparent, const char* name); EntryEditDialog(TQWidget* parent, const char* name);
/** /**
* Checks to see if any data needs to be saved. Returns @p true if it's ok to continue with * Checks to see if any data needs to be saved. Returns @p true if it's ok to continue with
@ -75,7 +75,7 @@ public:
* Updates a widget when its field has been modified. The category may have changed, completions may have * Updates a widget when its field has been modified. The category may have changed, completions may have
* been added or removed, or what-have-you. * been added or removed, or what-have-you.
* *
* @param coll A pointer to the tqparent collection * @param coll A pointer to the parent collection
* @param oldField A pointer to the old field, which should have the same name as the new one * @param oldField A pointer to the old field, which should have the same name as the new one
* @param newField A pointer to the new field * @param newField A pointer to the new field
*/ */

@ -29,7 +29,7 @@ namespace Tellico {
*/ */
class EntryGroupItem : public GUI::CountedItem { class EntryGroupItem : public GUI::CountedItem {
public: public:
EntryGroupItem(GUI::ListView* tqparent, Data::EntryGroup* group, int fieldType); EntryGroupItem(GUI::ListView* parent, Data::EntryGroup* group, int fieldType);
virtual bool isEntryGroupItem() const { return true; } virtual bool isEntryGroupItem() const { return true; }
Data::EntryGroup* group() const { return m_group; } Data::EntryGroup* group() const { return m_group; }

@ -38,7 +38,7 @@ Q_OBJECT
friend class EntryIconViewItem; friend class EntryIconViewItem;
public: public:
EntryIconView(TQWidget* tqparent, const char* name = 0); EntryIconView(TQWidget* parent, const char* name = 0);
~EntryIconView(); ~EntryIconView();
EntryIconViewItem* firstItem() const; EntryIconViewItem* firstItem() const;
@ -101,7 +101,7 @@ private:
class EntryIconViewItem : public KIconViewItem { class EntryIconViewItem : public KIconViewItem {
public: public:
EntryIconViewItem(EntryIconView* tqparent, Data::EntryPtr entry); EntryIconViewItem(EntryIconView* parent, Data::EntryPtr entry);
~EntryIconViewItem(); ~EntryIconViewItem();
EntryIconView* iconView() const { return static_cast<EntryIconView*>(KIconViewItem::iconView()); } EntryIconView* iconView() const { return static_cast<EntryIconView*>(KIconViewItem::iconView()); }

@ -21,8 +21,8 @@
using Tellico::EntryItem; using Tellico::EntryItem;
EntryItem::EntryItem(GUI::ListView* tqparent, Data::EntryPtr entry) EntryItem::EntryItem(GUI::ListView* parent, Data::EntryPtr entry)
: GUI::ListViewItem(tqparent), m_entry(entry), m_isDetailedList(true) { : GUI::ListViewItem(parent), m_entry(entry), m_isDetailedList(true) {
} }
EntryItem::EntryItem(GUI::CountedItem* parent_, Data::EntryPtr entry_) EntryItem::EntryItem(GUI::CountedItem* parent_, Data::EntryPtr entry_)

@ -37,19 +37,19 @@ public:
* This constructor is for items which are direct tqchildren of a ListView object, * This constructor is for items which are direct tqchildren of a ListView object,
* which is just the @ref DetailedListView. * which is just the @ref DetailedListView.
* *
* @param tqparent A pointer to the tqparent * @param parent A pointer to the parent
* @param entry A pointer to the entry to which the item refers * @param entry A pointer to the entry to which the item refers
*/ */
EntryItem(GUI::ListView* tqparent, Data::EntryPtr entry); EntryItem(GUI::ListView* parent, Data::EntryPtr entry);
/** /**
* This constructor is for items which have other KListViewItems as parents. It * This constructor is for items which have other KListViewItems as parents. It
* initializes the text in the first column, as well. * initializes the text in the first column, as well.
* *
* @param tqparent A pointer to the tqparent * @param parent A pointer to the parent
* @param text The text in the first column * @param text The text in the first column
* @param entry A pointer to the entry to which the item refers * @param entry A pointer to the entry to which the item refers
*/ */
EntryItem(GUI::CountedItem* tqparent, Data::EntryPtr entry); EntryItem(GUI::CountedItem* parent, Data::EntryPtr entry);
virtual bool isEntryItem() const { return true; } virtual bool isEntryItem() const { return true; }
@ -73,7 +73,7 @@ public:
private: private:
Data::EntryPtr m_entry; Data::EntryPtr m_entry;
// if the tqparent is a DetailedListView // if the parent is a DetailedListView
// this way, I don't have to call listView()->isA("Tellico::DetailedListView") every time // this way, I don't have to call listView()->isA("Tellico::DetailedListView") every time
// when I want to do funky comparisons // when I want to do funky comparisons
bool m_isDetailedList : 1; bool m_isDetailedList : 1;

@ -27,7 +27,7 @@ class EntryMerger : public TQObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
EntryMerger(Data::EntryVec entries, TQObject* tqparent); EntryMerger(Data::EntryVec entries, TQObject* parent);
public slots: public slots:
void slotCancel(); void slotCancel();

@ -29,8 +29,8 @@ class EntryUpdater : public TQObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
EntryUpdater(Data::CollPtr coll, Data::EntryVec entries, TQObject* tqparent); EntryUpdater(Data::CollPtr coll, Data::EntryVec entries, TQObject* parent);
EntryUpdater(const TQString& fetcher, Data::CollPtr coll, Data::EntryVec entries, TQObject* tqparent); EntryUpdater(const TQString& fetcher, Data::CollPtr coll, Data::EntryVec entries, TQObject* parent);
~EntryUpdater(); ~EntryUpdater();
public slots: public slots:

@ -39,10 +39,10 @@ public:
/** /**
* The EntryView shows a HTML representation of the data in the entry. * The EntryView shows a HTML representation of the data in the entry.
* *
* @param tqparent TQWidget tqparent * @param parent TQWidget parent
* @param name TQObject name * @param name TQObject name
*/ */
EntryView(TQWidget* tqparent, const char* name=0); EntryView(TQWidget* parent, const char* name=0);
/** /**
*/ */
virtual ~EntryView(); virtual ~EntryView();

@ -36,7 +36,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ExportDialog(Export::Format format, Data::CollPtr coll, TQWidget* tqparent, const char* name); ExportDialog(Export::Format format, Data::CollPtr coll, TQWidget* parent, const char* name);
~ExportDialog(); ~ExportDialog();
TQString fileFilter(); TQString fileFilter();

@ -68,7 +68,7 @@ public:
NoImage=3 NoImage=3
}; };
AmazonFetcher(Site site, TQObject* tqparent, const char* name = 0); AmazonFetcher(Site site, TQObject* parent, const char* name = 0);
virtual ~AmazonFetcher(); virtual ~AmazonFetcher();
virtual TQString source() const; virtual TQString source() const;
@ -94,7 +94,7 @@ public:
/** /**
* Returns a widget for modifying the fetcher's config. * Returns a widget for modifying the fetcher's config.
*/ */
virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const ; virtual Fetch::ConfigWidget* configWidget(TQWidget* parent) const ;
static StringMap customFields(); static StringMap customFields();

@ -37,7 +37,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
AnimeNfoFetcher(TQObject* tqparent, const char* name = 0); AnimeNfoFetcher(TQObject* parent, const char* name = 0);
virtual ~AnimeNfoFetcher() {} virtual ~AnimeNfoFetcher() {}
virtual TQString source() const; virtual TQString source() const;
@ -53,7 +53,7 @@ public:
virtual void updateEntry(Data::EntryPtr entry); virtual void updateEntry(Data::EntryPtr entry);
virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; virtual Fetch::ConfigWidget* configWidget(TQWidget* parent) const;
class ConfigWidget : public Fetch::ConfigWidget { class ConfigWidget : public Fetch::ConfigWidget {
public: public:

@ -37,7 +37,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ArxivFetcher(TQObject* tqparent); ArxivFetcher(TQObject* parent);
~ArxivFetcher(); ~ArxivFetcher();
virtual TQString source() const; virtual TQString source() const;
@ -55,7 +55,7 @@ public:
virtual void updateEntry(Data::EntryPtr entry); virtual void updateEntry(Data::EntryPtr entry);
virtual void updateEntrySynchronous(Data::EntryPtr entry); virtual void updateEntrySynchronous(Data::EntryPtr entry);
virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; virtual Fetch::ConfigWidget* configWidget(TQWidget* parent) const;
class ConfigWidget : public Fetch::ConfigWidget { class ConfigWidget : public Fetch::ConfigWidget {
public: public:

@ -34,7 +34,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
BibsonomyFetcher(TQObject* tqparent); BibsonomyFetcher(TQObject* parent);
~BibsonomyFetcher(); ~BibsonomyFetcher();
virtual TQString source() const; virtual TQString source() const;
@ -50,7 +50,7 @@ public:
virtual void updateEntry(Data::EntryPtr entry); virtual void updateEntry(Data::EntryPtr entry);
virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; virtual Fetch::ConfigWidget* configWidget(TQWidget* parent) const;
class ConfigWidget : public Fetch::ConfigWidget { class ConfigWidget : public Fetch::ConfigWidget {
public: public:

@ -34,7 +34,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CitebaseFetcher(TQObject* tqparent); CitebaseFetcher(TQObject* parent);
~CitebaseFetcher(); ~CitebaseFetcher();
virtual TQString source() const; virtual TQString source() const;
@ -51,7 +51,7 @@ public:
virtual void updateEntry(Data::EntryPtr entry); virtual void updateEntry(Data::EntryPtr entry);
virtual void updateEntrySynchronous(Data::EntryPtr entry); virtual void updateEntrySynchronous(Data::EntryPtr entry);
virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; virtual Fetch::ConfigWidget* configWidget(TQWidget* parent) const;
class ConfigWidget : public Fetch::ConfigWidget { class ConfigWidget : public Fetch::ConfigWidget {
public: public:

@ -34,7 +34,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ConfigWidget(TQWidget* tqparent); ConfigWidget(TQWidget* parent);
virtual ~ConfigWidget() {} virtual ~ConfigWidget() {}
void setAccepted(bool accepted_) { m_accepted = accepted_; } void setAccepted(bool accepted_) { m_accepted = accepted_; }

@ -39,7 +39,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CrossRefFetcher(TQObject* tqparent); CrossRefFetcher(TQObject* parent);
~CrossRefFetcher(); ~CrossRefFetcher();
virtual TQString source() const; virtual TQString source() const;
@ -56,7 +56,7 @@ public:
virtual void updateEntry(Data::EntryPtr entry); virtual void updateEntry(Data::EntryPtr entry);
virtual void updateEntrySynchronous(Data::EntryPtr entry); virtual void updateEntrySynchronous(Data::EntryPtr entry);
virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; virtual Fetch::ConfigWidget* configWidget(TQWidget* parent) const;
class ConfigWidget : public Fetch::ConfigWidget { class ConfigWidget : public Fetch::ConfigWidget {
public: public:

@ -46,7 +46,7 @@ Q_OBJECT
public: public:
/** /**
*/ */
DiscogsFetcher(TQObject* tqparent, const char* name = 0); DiscogsFetcher(TQObject* parent, const char* name = 0);
/** /**
*/ */
virtual ~DiscogsFetcher(); virtual ~DiscogsFetcher();
@ -70,7 +70,7 @@ public:
/** /**
* Returns a widget for modifying the fetcher's config. * Returns a widget for modifying the fetcher's config.
*/ */
virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; virtual Fetch::ConfigWidget* configWidget(TQWidget* parent) const;
static StringMap customFields(); static StringMap customFields();

@ -40,7 +40,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
EntrezFetcher(TQObject* tqparent, const char* name=0); EntrezFetcher(TQObject* parent, const char* name=0);
/** /**
*/ */
virtual ~EntrezFetcher(); virtual ~EntrezFetcher();
@ -57,7 +57,7 @@ public:
virtual bool canFetch(int type) const; virtual bool canFetch(int type) const;
virtual void readConfigHook(const KConfigGroup& config); virtual void readConfigHook(const KConfigGroup& config);
virtual void updateEntry(Data::EntryPtr entry); virtual void updateEntry(Data::EntryPtr entry);
virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; virtual Fetch::ConfigWidget* configWidget(TQWidget* parent) const;
static StringMap customFields(); static StringMap customFields();

@ -43,7 +43,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ExecExternalFetcher(TQObject* tqparent, const char* name=0); ExecExternalFetcher(TQObject* parent, const char* name=0);
/** /**
*/ */
virtual ~ExecExternalFetcher(); virtual ~ExecExternalFetcher();
@ -59,13 +59,13 @@ public:
virtual Type type() const { return ExecExternal; } virtual Type type() const { return ExecExternal; }
virtual bool canFetch(int type) const; virtual bool canFetch(int type) const;
virtual void readConfigHook(const KConfigGroup& config); virtual void readConfigHook(const KConfigGroup& config);
virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; virtual Fetch::ConfigWidget* configWidget(TQWidget* parent) const;
const TQString& execPath() const { return m_path; } const TQString& execPath() const { return m_path; }
class ConfigWidget : public Fetch::ConfigWidget { class ConfigWidget : public Fetch::ConfigWidget {
public: public:
ConfigWidget(TQWidget* tqparent = 0, const ExecExternalFetcher* fetcher = 0); ConfigWidget(TQWidget* parent = 0, const ExecExternalFetcher* fetcher = 0);
~ConfigWidget(); ~ConfigWidget();
void readConfig(KConfig* config); void readConfig(KConfig* config);

@ -45,7 +45,7 @@ public:
/** /**
*/ */
Fetcher(TQObject* tqparent, const char* name = 0) : TQObject(tqparent, name), KShared(), Fetcher(TQObject* parent, const char* name = 0) : TQObject(parent, name), KShared(),
m_updateOverwrite(false), m_hasMoreResults(false), m_updateOverwrite(false), m_hasMoreResults(false),
m_messager(0) {} m_messager(0) {}
/** /**
@ -114,7 +114,7 @@ public:
/** /**
* Returns a widget for modifying the fetcher's config. * Returns a widget for modifying the fetcher's config.
*/ */
virtual ConfigWidget* configWidget(TQWidget* tqparent) const = 0; virtual ConfigWidget* configWidget(TQWidget* parent) const = 0;
signals: signals:
// void signaltqStatus(const TQString& status); // void signaltqStatus(const TQString& status);

@ -62,7 +62,7 @@ public:
const FetcherVec& fetchers() const { return m_fetchers; } const FetcherVec& fetchers() const { return m_fetchers; }
FetcherVec fetchers(int type); FetcherVec fetchers(int type);
TypePairList typeList(); TypePairList typeList();
ConfigWidget* configWidget(TQWidget* tqparent, Type type, const TQString& name); ConfigWidget* configWidget(TQWidget* parent, Type type, const TQString& name);
// create fetcher for updating an entry // create fetcher for updating an entry
FetcherVec createUpdateFetchers(int collType); FetcherVec createUpdateFetchers(int collType);

@ -39,7 +39,7 @@ Q_OBJECT
public: public:
GCstarPluginFetcher(TQObject* tqparent, const char* name=0); GCstarPluginFetcher(TQObject* parent, const char* name=0);
/** /**
*/ */
virtual ~GCstarPluginFetcher(); virtual ~GCstarPluginFetcher();
@ -55,7 +55,7 @@ public:
virtual Type type() const { return GCstarPlugin; } virtual Type type() const { return GCstarPlugin; }
virtual bool canFetch(int type) const; virtual bool canFetch(int type) const;
virtual void readConfigHook(const KConfigGroup& config); virtual void readConfigHook(const KConfigGroup& config);
virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; virtual Fetch::ConfigWidget* configWidget(TQWidget* parent) const;
class ConfigWidget; class ConfigWidget;
friend class ConfigWidget; friend class ConfigWidget;
@ -96,7 +96,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ConfigWidget(TQWidget* tqparent, const GCstarPluginFetcher* fetcher = 0); ConfigWidget(TQWidget* parent, const GCstarPluginFetcher* fetcher = 0);
~ConfigWidget(); ~ConfigWidget();
virtual void saveConfig(KConfigGroup& config); virtual void saveConfig(KConfigGroup& config);

@ -40,7 +40,7 @@ Q_OBJECT
public: public:
/** /**
*/ */
GoogleScholarFetcher(TQObject* tqparent, const char* name = 0); GoogleScholarFetcher(TQObject* parent, const char* name = 0);
/** /**
*/ */
virtual ~GoogleScholarFetcher(); virtual ~GoogleScholarFetcher();
@ -64,7 +64,7 @@ public:
/** /**
* Returns a widget for modifying the fetcher's config. * Returns a widget for modifying the fetcher's config.
*/ */
virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; virtual Fetch::ConfigWidget* configWidget(TQWidget* parent) const;
class ConfigWidget : public Fetch::ConfigWidget { class ConfigWidget : public Fetch::ConfigWidget {
public: public:

@ -37,7 +37,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
IBSFetcher(TQObject* tqparent, const char* name = 0); IBSFetcher(TQObject* parent, const char* name = 0);
virtual ~IBSFetcher() {} virtual ~IBSFetcher() {}
virtual TQString source() const; virtual TQString source() const;
@ -53,7 +53,7 @@ public:
virtual void updateEntry(Data::EntryPtr entry); virtual void updateEntry(Data::EntryPtr entry);
virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; virtual Fetch::ConfigWidget* configWidget(TQWidget* parent) const;
class ConfigWidget : public Fetch::ConfigWidget { class ConfigWidget : public Fetch::ConfigWidget {
public: public:

@ -41,7 +41,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
IMDBFetcher(TQObject* tqparent, const char* name=0); IMDBFetcher(TQObject* parent, const char* name=0);
/** /**
*/ */
virtual ~IMDBFetcher(); virtual ~IMDBFetcher();
@ -60,7 +60,7 @@ public:
virtual void updateEntry(Data::EntryPtr entry); virtual void updateEntry(Data::EntryPtr entry);
virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; virtual Fetch::ConfigWidget* configWidget(TQWidget* parent) const;
static StringMap customFields(); static StringMap customFields();

@ -38,7 +38,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ISBNdbFetcher(TQObject* tqparent = 0, const char* name = 0); ISBNdbFetcher(TQObject* parent = 0, const char* name = 0);
~ISBNdbFetcher(); ~ISBNdbFetcher();
virtual TQString source() const; virtual TQString source() const;
@ -54,7 +54,7 @@ public:
virtual void updateEntry(Data::EntryPtr entry); virtual void updateEntry(Data::EntryPtr entry);
virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; virtual Fetch::ConfigWidget* configWidget(TQWidget* parent) const;
class ConfigWidget : public Fetch::ConfigWidget { class ConfigWidget : public Fetch::ConfigWidget {
public: public:

@ -55,9 +55,9 @@ friend class SRUConfigWidget;
public: public:
/** /**
*/ */
SRUFetcher(TQObject* tqparent, const char* name = 0); SRUFetcher(TQObject* parent, const char* name = 0);
SRUFetcher(const TQString& name, const TQString& host, uint port, const TQString& dbname, SRUFetcher(const TQString& name, const TQString& host, uint port, const TQString& dbname,
TQObject* tqparent); TQObject* parent);
/** /**
*/ */
virtual ~SRUFetcher(); virtual ~SRUFetcher();
@ -79,11 +79,11 @@ public:
static StringMap customFields(); static StringMap customFields();
virtual ConfigWidget* configWidget(TQWidget* tqparent) const; virtual ConfigWidget* configWidget(TQWidget* parent) const;
static TQString defaultName(); static TQString defaultName();
static Fetcher::Ptr libraryOfCongress(TQObject* tqparent); static Fetcher::Ptr libraryOfCongress(TQObject* parent);
private slots: private slots:
void slotData(KIO::Job* job, const TQByteArray& data); void slotData(KIO::Job* job, const TQByteArray& data);

@ -42,7 +42,7 @@ Q_OBJECT
public: public:
/** /**
*/ */
YahooFetcher(TQObject* tqparent, const char* name = 0); YahooFetcher(TQObject* parent, const char* name = 0);
/** /**
*/ */
virtual ~YahooFetcher(); virtual ~YahooFetcher();
@ -65,7 +65,7 @@ public:
/** /**
* Returns a widget for modifying the fetcher's config. * Returns a widget for modifying the fetcher's config.
*/ */
virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; virtual Fetch::ConfigWidget* configWidget(TQWidget* parent) const;
class ConfigWidget : public Fetch::ConfigWidget { class ConfigWidget : public Fetch::ConfigWidget {
public: public:

@ -53,7 +53,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
Z3950Fetcher(TQObject* tqparent, const char* name = 0); Z3950Fetcher(TQObject* parent, const char* name = 0);
virtual ~Z3950Fetcher(); virtual ~Z3950Fetcher();
@ -75,7 +75,7 @@ public:
static StringMap customFields(); static StringMap customFields();
virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; virtual Fetch::ConfigWidget* configWidget(TQWidget* parent) const;
class ConfigWidget; class ConfigWidget;
friend class ConfigWidget; friend class ConfigWidget;
@ -125,7 +125,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ConfigWidget(TQWidget* tqparent, const Z3950Fetcher* fetcher = 0); ConfigWidget(TQWidget* parent, const Z3950Fetcher* fetcher = 0);
virtual ~ConfigWidget(); virtual ~ConfigWidget();
virtual void saveConfig(KConfigGroup& config_); virtual void saveConfig(KConfigGroup& config_);
virtual TQString preferredName() const; virtual TQString preferredName() const;

@ -59,7 +59,7 @@ public:
/** /**
* Constructor * Constructor
*/ */
FetchDialog(TQWidget* tqparent, const char* name = 0); FetchDialog(TQWidget* parent, const char* name = 0);
~FetchDialog(); ~FetchDialog();
public slots: public slots:

@ -38,9 +38,9 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FetcherConfigDialog(TQWidget* tqparent); FetcherConfigDialog(TQWidget* parent);
FetcherConfigDialog(const TQString& sourceName, Fetch::Type type, bool updateOverwrite, FetcherConfigDialog(const TQString& sourceName, Fetch::Type type, bool updateOverwrite,
Fetch::ConfigWidget* configWidget, TQWidget* tqparent); Fetch::ConfigWidget* configWidget, TQWidget* parent);
TQString sourceName() const; TQString sourceName() const;
Fetch::Type sourceType() const; Fetch::Type sourceType() const;

@ -54,7 +54,7 @@ public:
* Constructor. You give a @ref FilterRule as parameter, which will * Constructor. You give a @ref FilterRule as parameter, which will
* be used to initialize the widget. * be used to initialize the widget.
*/ */
FilterRuleWidget(FilterRule* rule, TQWidget* tqparent, const char* name=0); FilterRuleWidget(FilterRule* rule, TQWidget* parent, const char* name=0);
/** /**
* Set the rule. The rule is accepted regardless of the return * Set the rule. The rule is accepted regardless of the return
@ -102,7 +102,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FilterRuleWidgetLister(TQWidget* tqparent, const char* name=0); FilterRuleWidgetLister(TQWidget* parent, const char* name=0);
const TQPtrList<TQWidget>& widgetList() const; const TQPtrList<TQWidget>& widgetList() const;
void setFilter(Filter::Ptr filter); void setFilter(Filter::Ptr filter);
@ -116,7 +116,7 @@ signals:
protected: protected:
virtual void clearWidget(TQWidget* widget); virtual void clearWidget(TQWidget* widget);
virtual TQWidget* createWidget(TQWidget* tqparent); virtual TQWidget* createWidget(TQWidget* parent);
}; };
/** /**
@ -135,10 +135,10 @@ public:
/** /**
* The constructor sets up the dialog. * The constructor sets up the dialog.
* *
* @param tqparent A pointer to the tqparent widget * @param parent A pointer to the parent widget
* @param name The widget name * @param name The widget name
*/ */
FilterDialog(Mode mode, TQWidget* tqparent, const char* name=0); FilterDialog(Mode mode, TQWidget* parent, const char* name=0);
FilterPtr currentFilter(); FilterPtr currentFilter();
void setFilter(FilterPtr filter); void setFilter(FilterPtr filter);

@ -24,7 +24,7 @@ namespace Tellico {
*/ */
class FilterItem : public GUI::CountedItem { class FilterItem : public GUI::CountedItem {
public: public:
FilterItem(GUI::ListView* tqparent, Tellico::Filter::Ptr filter); FilterItem(GUI::ListView* parent, Tellico::Filter::Ptr filter);
virtual bool isFilterItem() const { return true; } virtual bool isFilterItem() const { return true; }
Filter::Ptr filter() { return m_filter; } Filter::Ptr filter() { return m_filter; }

@ -30,7 +30,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FilterView(TQWidget* tqparent, const char* name=0); FilterView(TQWidget* parent, const char* name=0);
virtual bool isSelectable(GUI::ListViewItem*) const; virtual bool isSelectable(GUI::ListViewItem*) const;

@ -47,10 +47,10 @@ public:
/** /**
* The constructor sets up the single column, and initializes the popup menu. * The constructor sets up the single column, and initializes the popup menu.
* *
* @param tqparent A pointer to the tqparent widget * @param parent A pointer to the parent widget
* @param name The widget name * @param name The widget name
*/ */
GroupView(TQWidget* tqparent, const char* name=0); GroupView(TQWidget* parent, const char* name=0);
/** /**
* Returns the name of the field by which the entries are grouped * Returns the name of the field by which the entries are grouped

@ -31,7 +31,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
BoolFieldWidget(Data::FieldPtr field, TQWidget* tqparent, const char* name=0); BoolFieldWidget(Data::FieldPtr field, TQWidget* parent, const char* name=0);
virtual ~BoolFieldWidget() {} virtual ~BoolFieldWidget() {}
virtual TQString text() const; virtual TQString text() const;

@ -30,7 +30,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ChoiceFieldWidget(Data::FieldPtr field, TQWidget* tqparent, const char* name=0); ChoiceFieldWidget(Data::FieldPtr field, TQWidget* parent, const char* name=0);
virtual ~ChoiceFieldWidget() {} virtual ~ChoiceFieldWidget() {}
virtual TQString text() const; virtual TQString text() const;

@ -22,7 +22,7 @@ namespace GUI {
class CollectionTypeCombo : public ComboBox { class CollectionTypeCombo : public ComboBox {
public: public:
CollectionTypeCombo(TQWidget* tqparent); CollectionTypeCombo(TQWidget* parent);
void reset(); void reset();
void setCurrentType(int type); void setCurrentType(int type);
int currentType() const { return currentData().toInt(); } int currentType() const { return currentData().toInt(); }

@ -28,8 +28,8 @@ namespace Tellico {
*/ */
class CountedItem : public GUI::ListViewItem { class CountedItem : public GUI::ListViewItem {
public: public:
CountedItem(ListView* tqparent) : ListViewItem(tqparent) {} CountedItem(ListView* parent) : ListViewItem(parent) {}
CountedItem(ListViewItem* tqparent) : ListViewItem(tqparent) {} CountedItem(ListViewItem* parent) : ListViewItem(parent) {}
virtual int compare(TQListViewItem* item, int col, bool ascending) const; virtual int compare(TQListViewItem* item, int col, bool ascending) const;
/** /**

@ -31,7 +31,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DateFieldWidget(Data::FieldPtr field, TQWidget* tqparent, const char* name=0); DateFieldWidget(Data::FieldPtr field, TQWidget* parent, const char* name=0);
virtual ~DateFieldWidget() {} virtual ~DateFieldWidget() {}
virtual TQString text() const; virtual TQString text() const;

@ -32,7 +32,7 @@
using Tellico::GUI::SpinBox; using Tellico::GUI::SpinBox;
using Tellico::GUI::DateWidget; using Tellico::GUI::DateWidget;
SpinBox::SpinBox(int min, int max, TQWidget *tqparent) : TQSpinBox(min, max, 1, tqparent) SpinBox::SpinBox(int min, int max, TQWidget *parent) : TQSpinBox(min, max, 1, parent)
{ {
editor()->tqsetAlignment(AlignRight); editor()->tqsetAlignment(AlignRight);
// I want to be able to omit the day // I want to be able to omit the day

@ -32,7 +32,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
SpinBox(int min, int max, TQWidget *tqparent); SpinBox(int min, int max, TQWidget *parent);
}; };
/** /**
@ -43,7 +43,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DateWidget(TQWidget* tqparent, const char* name = 0); DateWidget(TQWidget* parent, const char* name = 0);
~DateWidget() {} ~DateWidget() {}
TQDate date() const; TQDate date() const;

@ -91,7 +91,7 @@ FieldWidget* FieldWidget::create(Data::FieldPtr field_, TQWidget* parent_, const
FieldWidget::FieldWidget(Data::FieldPtr field_, TQWidget* parent_, const char* name_/*=0*/) FieldWidget::FieldWidget(Data::FieldPtr field_, TQWidget* parent_, const char* name_/*=0*/)
: TQWidget(parent_, name_), m_field(field_) { : TQWidget(parent_, name_), m_field(field_) {
TQHBoxLayout* l = new TQHBoxLayout(this, 2, 2); // tqparent, margin, spacing TQHBoxLayout* l = new TQHBoxLayout(this, 2, 2); // parent, margin, spacing
l->addSpacing(4); // add some more space in the columns between widgets l->addSpacing(4); // add some more space in the columns between widgets
if(TQCString(tqstyle().name()).lower().find("keramik", 0, false) > -1) { if(TQCString(tqstyle().name()).lower().find("keramik", 0, false) > -1) {
l->setMargin(1); l->setMargin(1);

@ -40,7 +40,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FieldWidget(Data::FieldPtr field, TQWidget* tqparent, const char* name=0); FieldWidget(Data::FieldPtr field, TQWidget* parent, const char* name=0);
virtual ~FieldWidget() {} virtual ~FieldWidget() {}
Data::FieldPtr field() const { return m_field; } Data::FieldPtr field() const { return m_field; }
@ -59,7 +59,7 @@ public:
virtual void addCompletionObjectItem(const TQString&) {} virtual void addCompletionObjectItem(const TQString&) {}
// factory function // factory function
static FieldWidget* create(Data::FieldPtr field, TQWidget* tqparent, const char* name=0); static FieldWidget* create(Data::FieldPtr field, TQWidget* parent, const char* name=0);
public slots: public slots:
virtual void insertDefault(); virtual void insertDefault();

@ -31,7 +31,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ImageFieldWidget(Data::FieldPtr field, TQWidget* tqparent, const char* name=0); ImageFieldWidget(Data::FieldPtr field, TQWidget* parent, const char* name=0);
virtual ~ImageFieldWidget() {} virtual ~ImageFieldWidget() {}
virtual TQString text() const; virtual TQString text() const;

@ -37,7 +37,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ImageWidget(TQWidget* tqparent, const char* name = 0); ImageWidget(TQWidget* parent, const char* name = 0);
virtual ~ImageWidget() {} virtual ~ImageWidget() {}
const TQString& id() const { return m_imageID; } const TQString& id() const { return m_imageID; }

@ -41,8 +41,8 @@
#include <assert.h> #include <assert.h>
KWidgetLister::KWidgetLister( int minWidgets, int maxWidgets, TQWidget *tqparent, const char* name ) KWidgetLister::KWidgetLister( int minWidgets, int maxWidgets, TQWidget *parent, const char* name )
: TQWidget( tqparent, name ) : TQWidget( parent, name )
{ {
mWidgetList.setAutoDelete(TRUE); mWidgetList.setAutoDelete(TRUE);
@ -146,9 +146,9 @@ void KWidgetLister::clearWidget( TQWidget* /*aWidget*/ )
{ {
} }
TQWidget* KWidgetLister::createWidget( TQWidget* tqparent ) TQWidget* KWidgetLister::createWidget( TQWidget* parent )
{ {
return new TQWidget( tqparent ); return new TQWidget( parent );
} }
void KWidgetLister::setNumberOfShownWidgetsTo( int aNum ) void KWidgetLister::setNumberOfShownWidgetsTo( int aNum )

@ -64,7 +64,7 @@ class KWidgetLister : public TQWidget
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KWidgetLister( int minWidgets=1, int maxWidgets=8, TQWidget* tqparent=0, const char* name=0 ); KWidgetLister( int minWidgets=1, int maxWidgets=8, TQWidget* parent=0, const char* name=0 );
virtual ~KWidgetLister(); virtual ~KWidgetLister();
protected slots: protected slots:
@ -97,7 +97,7 @@ protected:
when showing it on screen. Make sure you call this when showing it on screen. Make sure you call this
implementaion, though, since you cannot put the widget on screen implementaion, though, since you cannot put the widget on screen
from derived classes (@p mLayout is private). from derived classes (@p mLayout is private).
Make sure the tqparent of the TQWidget to add is this KWidgetLister. */ Make sure the parent of the TQWidget to add is this KWidgetLister. */
virtual void addWidgetAtEnd(TQWidget *w =0); virtual void addWidgetAtEnd(TQWidget *w =0);
/** Removes a single (always the last) widget. Doesn't care if there /** Removes a single (always the last) widget. Doesn't care if there
are still only @ref mMinWidgets left on screen and whether it are still only @ref mMinWidgets left on screen and whether it
@ -114,7 +114,7 @@ protected:
classes, we are forced to emulate this by forcing the classes, we are forced to emulate this by forcing the
implementers of subclasses of KWidgetLister to reimplement this implementers of subclasses of KWidgetLister to reimplement this
function which replaces the "@p new @p T" call. */ function which replaces the "@p new @p T" call. */
virtual TQWidget* createWidget( TQWidget *tqparent ); virtual TQWidget* createWidget( TQWidget *parent );
/** Sets the number of widgets on scrren to exactly @p aNum. Doesn't /** Sets the number of widgets on scrren to exactly @p aNum. Doesn't
check if @p aNum is inside the range @p check if @p aNum is inside the range @p
[mMinWidgets,mMaxWidgets]. */ [mMinWidgets,mMaxWidgets]. */

@ -32,7 +32,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
LineEdit(TQWidget* tqparent = 0, const char* name = 0); LineEdit(TQWidget* parent = 0, const char* name = 0);
virtual void setText(const TQString& text); virtual void setText(const TQString& text);
void setHint(const TQString& hint); void setHint(const TQString& hint);

@ -29,7 +29,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
LineFieldWidget(Data::FieldPtr field, TQWidget* tqparent, const char* name=0); LineFieldWidget(Data::FieldPtr field, TQWidget* parent, const char* name=0);
virtual ~LineFieldWidget() {} virtual ~LineFieldWidget() {}
virtual TQString text() const; virtual TQString text() const;

@ -71,8 +71,8 @@ bool ListView::isSelectable(ListViewItem* item_) const {
} }
// selecting multiple items is ok // selecting multiple items is ok
// only when tqparent is open. Be careful to check for existence of tqparent // only when parent is open. Be careful to check for existence of parent
if(item_->tqparent() && !item_->tqparent()->isOpen()) { if(item_->parent() && !item_->parent()->isOpen()) {
return false; return false;
} }

@ -52,7 +52,7 @@ public:
SortByCount = 1 SortByCount = 1
}; };
ListView(TQWidget* tqparent, const char* name = 0); ListView(TQWidget* parent, const char* name = 0);
virtual ~ListView(); virtual ~ListView();
void clearSelection(); void clearSelection();
@ -132,11 +132,11 @@ private:
*/ */
class ListViewItem : public KListViewItem { class ListViewItem : public KListViewItem {
public: public:
ListViewItem(ListView* tqparent) : KListViewItem(tqparent), m_sortWeight(-1) {} ListViewItem(ListView* parent) : KListViewItem(parent), m_sortWeight(-1) {}
ListViewItem(ListView* tqparent, TQListViewItem* after) : KListViewItem(tqparent, after), m_sortWeight(-1) {} ListViewItem(ListView* parent, TQListViewItem* after) : KListViewItem(parent, after), m_sortWeight(-1) {}
ListViewItem(ListViewItem* tqparent) : KListViewItem(tqparent), m_sortWeight(-1) {} ListViewItem(ListViewItem* parent) : KListViewItem(parent), m_sortWeight(-1) {}
ListViewItem(ListView* tqparent, const TQString& text) : KListViewItem(tqparent, text), m_sortWeight(-1) {} ListViewItem(ListView* parent, const TQString& text) : KListViewItem(parent, text), m_sortWeight(-1) {}
ListViewItem(ListViewItem* tqparent, const TQString& text) : KListViewItem(tqparent, text), m_sortWeight(-1) {} ListViewItem(ListViewItem* parent, const TQString& text) : KListViewItem(parent, text), m_sortWeight(-1) {}
virtual ~ListViewItem(); virtual ~ListViewItem();
virtual int realChildCount() const { return childCount(); } virtual int realChildCount() const { return childCount(); }

@ -31,7 +31,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
NumberFieldWidget(Data::FieldPtr field, TQWidget* tqparent, const char* name=0); NumberFieldWidget(Data::FieldPtr field, TQWidget* parent, const char* name=0);
virtual ~NumberFieldWidget() {} virtual ~NumberFieldWidget() {}
virtual TQString text() const; virtual TQString text() const;

@ -17,7 +17,7 @@
using Tellico::GUI::OverlayWidget; using Tellico::GUI::OverlayWidget;
OverlayWidget::OverlayWidget(TQWidget* tqparent, TQWidget* anchor) : TQFrame(tqparent) OverlayWidget::OverlayWidget(TQWidget* parent, TQWidget* anchor) : TQFrame(parent)
, m_anchor(anchor) , m_anchor(anchor)
, m_corner(TopRight) { , m_corner(TopRight) {
m_anchor->installEventFilter(this); m_anchor->installEventFilter(this);

@ -30,7 +30,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
OverlayWidget(TQWidget* tqparent, TQWidget* anchor); OverlayWidget(TQWidget* parent, TQWidget* anchor);
void setCorner(Corner corner); void setCorner(Corner corner);
Corner corner() const { return m_corner; } Corner corner() const { return m_corner; }

@ -30,7 +30,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ParaFieldWidget(Data::FieldPtr field, TQWidget* tqparent, const char* name=0); ParaFieldWidget(Data::FieldPtr field, TQWidget* parent, const char* name=0);
virtual ~ParaFieldWidget() {} virtual ~ParaFieldWidget() {}
virtual TQString text() const; virtual TQString text() const;

@ -31,7 +31,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PreviewDialog(TQWidget* tqparent); PreviewDialog(TQWidget* parent);
~PreviewDialog(); ~PreviewDialog();
void setXSLTFile(const TQString& file); void setXSLTFile(const TQString& file);

@ -27,8 +27,8 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
Progress(TQWidget* tqparent); Progress(TQWidget* parent);
Progress(int totalSteps, TQWidget* tqparent); Progress(int totalSteps, TQWidget* parent);
bool isDone() const; bool isDone() const;
void setDone(); void setDone();

@ -29,7 +29,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
RatingFieldWidget(Data::FieldPtr field, TQWidget* tqparent, const char* name=0); RatingFieldWidget(Data::FieldPtr field, TQWidget* parent, const char* name=0);
virtual ~RatingFieldWidget() {} virtual ~RatingFieldWidget() {}
virtual TQString text() const; virtual TQString text() const;

@ -37,7 +37,7 @@ Q_OBJECT
typedef TQPtrList<TQLabel> LabelList; typedef TQPtrList<TQLabel> LabelList;
public: public:
RatingWidget(Data::FieldPtr field, TQWidget* tqparent, const char* name = 0); RatingWidget(Data::FieldPtr field, TQWidget* parent, const char* name = 0);
void clear(); void clear();
TQString text() const; TQString text() const;

@ -19,11 +19,11 @@
using Tellico::GUI::RichTextLabel; using Tellico::GUI::RichTextLabel;
RichTextLabel::RichTextLabel(TQWidget* tqparent) : TQTextEdit(tqparent) { RichTextLabel::RichTextLabel(TQWidget* parent) : TQTextEdit(parent) {
init(); init();
} }
RichTextLabel::RichTextLabel(const TQString& text, TQWidget* tqparent) : TQTextEdit(text, TQString(), tqparent) { RichTextLabel::RichTextLabel(const TQString& text, TQWidget* parent) : TQTextEdit(text, TQString(), parent) {
init(); init();
} }

@ -27,8 +27,8 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
RichTextLabel(TQWidget* tqparent); RichTextLabel(TQWidget* parent);
RichTextLabel(const TQString& text, TQWidget* tqparent); RichTextLabel(const TQString& text, TQWidget* parent);
virtual TQSize tqsizeHint() const; virtual TQSize tqsizeHint() const;

@ -41,7 +41,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
StringMapDialog(const TQMap<TQString, TQString>& stringMap, TQWidget* tqparent, const char* name=0, bool modal=false); StringMapDialog(const TQMap<TQString, TQString>& stringMap, TQWidget* parent, const char* name=0, bool modal=false);
/** /**
* Sets the titles for the key and value columns. * Sets the titles for the key and value columns.

@ -30,7 +30,7 @@ public:
/** /**
* Constructor * Constructor
*/ */
TabControl(TQWidget* tqparent, const char* name=0); TabControl(TQWidget* parent, const char* name=0);
TQTabBar* tabBar() const; TQTabBar* tabBar() const;
void setTabBarHidden(bool hide); void setTabBarHidden(bool hide);

@ -31,7 +31,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
TableFieldWidget(Data::FieldPtr field, TQWidget* tqparent, const char* name=0); TableFieldWidget(Data::FieldPtr field, TQWidget* parent, const char* name=0);
virtual ~TableFieldWidget() {} virtual ~TableFieldWidget() {}
virtual TQString text() const; virtual TQString text() const;

@ -34,7 +34,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
URLFieldWidget(Data::FieldPtr field, TQWidget* tqparent, const char* name=0); URLFieldWidget(Data::FieldPtr field, TQWidget* parent, const char* name=0);
virtual ~URLFieldWidget(); virtual ~URLFieldWidget();
virtual TQString text() const; virtual TQString text() const;

@ -38,7 +38,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ImportDialog(Import::Format format, const KURL::List& urls, TQWidget* tqparent, const char* name); ImportDialog(Import::Format format, const KURL::List& urls, TQWidget* parent, const char* name);
~ImportDialog(); ~ImportDialog();
Data::CollPtr collection(); Data::CollPtr collection();

@ -27,7 +27,7 @@ namespace Tellico {
*/ */
class ISBNValidator : public TQValidator { class ISBNValidator : public TQValidator {
public: public:
ISBNValidator(TQObject* tqparent, const char* name=0); ISBNValidator(TQObject* parent, const char* name=0);
/** /**
* Certain conditions are checked. Character, length and position * Certain conditions are checked. Character, length and position

@ -31,7 +31,7 @@ namespace Tellico {
class LCCNValidator : public TQRegExpValidator { class LCCNValidator : public TQRegExpValidator {
public: public:
LCCNValidator(TQObject* tqparent); LCCNValidator(TQObject* parent);
/** /**
* Returns the formalized version as dictated by LOC search * Returns the formalized version as dictated by LOC search

@ -40,11 +40,11 @@ public:
/** /**
* The constructor sets up the dialog. * The constructor sets up the dialog.
* *
* @param tqparent A pointer to the tqparent widget * @param parent A pointer to the parent widget
* @param name The widget name * @param name The widget name
*/ */
LoanDialog(const Data::EntryVec& entries, TQWidget* tqparent, const char* name=0); LoanDialog(const Data::EntryVec& entries, TQWidget* parent, const char* name=0);
LoanDialog(Data::LoanPtr loan, TQWidget* tqparent, const char* name=0); LoanDialog(Data::LoanPtr loan, TQWidget* parent, const char* name=0);
virtual ~LoanDialog(); virtual ~LoanDialog();
KCommand* createCommand(); KCommand* createCommand();

@ -24,7 +24,7 @@ namespace Tellico {
*/ */
class LoanItem : public Tellico::EntryItem { class LoanItem : public Tellico::EntryItem {
public: public:
LoanItem(GUI::CountedItem* tqparent, Data::LoanPtr loan); LoanItem(GUI::CountedItem* parent, Data::LoanPtr loan);
virtual bool isLoanItem() const { return true; } virtual bool isLoanItem() const { return true; }
Data::LoanPtr loan() { return m_loan; } Data::LoanPtr loan() { return m_loan; }

@ -33,7 +33,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
LoanView(TQWidget* tqparent, const char* name=0); LoanView(TQWidget* parent, const char* name=0);
virtual bool isSelectable(GUI::ListViewItem*) const; virtual bool isSelectable(GUI::ListViewItem*) const;

@ -81,7 +81,7 @@ public:
/** /**
* The main window constructor, calls all init functions to create the application. * The main window constructor, calls all init functions to create the application.
*/ */
MainWindow(TQWidget* tqparent=0, const char* name=0); MainWindow(TQWidget* parent=0, const char* name=0);
/** /**
* Opens the initial file. * Opens the initial file.

@ -60,7 +60,7 @@ using Tellico::NewStuff::Dialog;
class Dialog::Item : public GUI::ListViewItem { class Dialog::Item : public GUI::ListViewItem {
public: public:
Item(GUI::ListView* tqparent) : GUI::ListViewItem(tqparent) {} Item(GUI::ListView* parent) : GUI::ListViewItem(parent) {}
InstalltqStatus status() const { return m_status; } InstalltqStatus status() const { return m_status; }
void settqStatus(InstalltqStatus status) { void settqStatus(InstalltqStatus status) {

@ -46,7 +46,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
Dialog(DataType type, TQWidget* tqparent); Dialog(DataType type, TQWidget* parent);
virtual ~Dialog(); virtual ~Dialog();
TQPtrList<DataSourceInfo> dataSourceInfo() const { return m_manager->dataSourceInfo(); } TQPtrList<DataSourceInfo> dataSourceInfo() const { return m_manager->dataSourceInfo(); }

@ -59,7 +59,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
Manager(TQObject* tqparent); Manager(TQObject* parent);
~Manager(); ~Manager();
void install(DataType type, KNS::Entry* entry); void install(DataType type, KNS::Entry* entry);

@ -41,7 +41,7 @@ public:
/** /**
* Constructor. * Constructor.
* *
* @param parentWidget the tqparent widget * @param parentWidget the parent widget
*/ */
ProviderLoader( TQWidget *parentWidget ); ProviderLoader( TQWidget *parentWidget );

@ -37,10 +37,10 @@ public:
/** /**
* The constructor sets up the dialog. * The constructor sets up the dialog.
* *
* @param tqparent A pointer to the tqparent widget * @param parent A pointer to the parent widget
* @param name The widget name * @param name The widget name
*/ */
ReportDialog(TQWidget* tqparent, const char* name=0); ReportDialog(TQWidget* parent, const char* name=0);
virtual ~ReportDialog(); virtual ~ReportDialog();
public slots: public slots:

@ -51,7 +51,7 @@ private:
friend class MainWindow; friend class MainWindow;
StatusBar(TQWidget* tqparent); StatusBar(TQWidget* parent);
KStatusBarLabel* m_mainLabel; KStatusBarLabel* m_mainLabel;
KStatusBarLabel* m_countLabel; KStatusBarLabel* m_countLabel;

@ -46,8 +46,8 @@
using Tellico::Kernel; using Tellico::Kernel;
Kernel* Kernel::s_self = 0; Kernel* Kernel::s_self = 0;
Kernel::Kernel(MainWindow* tqparent) : m_widget(tqparent) Kernel::Kernel(MainWindow* parent) : m_widget(parent)
, m_commandHistory(tqparent->actionCollection()) , m_commandHistory(parent->actionCollection())
, m_commandGroup(0) { , m_commandGroup(0) {
} }

@ -45,10 +45,10 @@ public:
/** /**
* Initializes the singleton. Should just be called once, from Tellico::MainWindow * Initializes the singleton. Should just be called once, from Tellico::MainWindow
*/ */
static void init(MainWindow* tqparent) { if(!s_self) s_self = new Kernel(tqparent); } static void init(MainWindow* parent) { if(!s_self) s_self = new Kernel(parent); }
/** /**
* Returns a pointer to the tqparent widget. This is mainly used for error dialogs and the like. * Returns a pointer to the parent widget. This is mainly used for error dialogs and the like.
* *
* @return The widget pointer * @return The widget pointer
*/ */
@ -130,7 +130,7 @@ private:
static Kernel* s_self; static Kernel* s_self;
// all constructors are private // all constructors are private
Kernel(MainWindow* tqparent); Kernel(MainWindow* parent);
Kernel(const Kernel&); Kernel(const Kernel&);
Kernel& operator=(const Kernel&); Kernel& operator=(const Kernel&);

@ -50,7 +50,7 @@ public:
virtual Data::CollPtr collection(); virtual Data::CollPtr collection();
/** /**
*/ */
virtual TQWidget* widget(TQWidget* tqparent, const char* name=0); virtual TQWidget* widget(TQWidget* parent, const char* name=0);
virtual bool canImport(int type) const; virtual bool canImport(int type) const;
public slots: public slots:

@ -45,7 +45,7 @@ public:
virtual Data::CollPtr collection(); virtual Data::CollPtr collection();
/** /**
*/ */
virtual TQWidget* widget(TQWidget* tqparent, const char* name=0); virtual TQWidget* widget(TQWidget* parent, const char* name=0);
virtual bool canImport(int type) const; virtual bool canImport(int type) const;
public slots: public slots:

@ -191,7 +191,7 @@ bool BibtexExporter::exec() {
} }
TQWidget* BibtexExporter::widget(TQWidget* parent_, const char* name_/*=0*/) { TQWidget* BibtexExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
if(m_widget && TQT_BASE_OBJECT(m_widget->tqparent()) == TQT_BASE_OBJECT(parent_)) { if(m_widget && TQT_BASE_OBJECT(m_widget->parent()) == TQT_BASE_OBJECT(parent_)) {
return m_widget; return m_widget;
} }

@ -40,7 +40,7 @@ public:
virtual TQString formatString() const; virtual TQString formatString() const;
virtual TQString fileFilter() const; virtual TQString fileFilter() const;
virtual TQWidget* widget(TQWidget* tqparent, const char* name=0); virtual TQWidget* widget(TQWidget* parent, const char* name=0);
virtual void readOptions(KConfig*); virtual void readOptions(KConfig*);
virtual void saveOptions(KConfig*); virtual void saveOptions(KConfig*);

@ -64,7 +64,7 @@ public:
* @return A pointer to a @ref BibtexCollection, or 0 if none can be created. * @return A pointer to a @ref BibtexCollection, or 0 if none can be created.
*/ */
virtual Data::CollPtr collection(); virtual Data::CollPtr collection();
virtual TQWidget* widget(TQWidget* tqparent, const char* name=0); virtual TQWidget* widget(TQWidget* parent, const char* name=0);
virtual bool canImport(int type) const; virtual bool canImport(int type) const;
public slots: public slots:

@ -61,13 +61,13 @@
* hidden and does not need to be saved during a "save state" operation * hidden and does not need to be saved during a "save state" operation
*/ */
/* maximum of 32 bits/unsigned int and must be 8 bits/byte */ /* maximum of 32 bits/unsigned int and must be 8 bits/byte */
static SetWordType bittqmask[] = { static SetWordType bitmask[] = {
0x00000001, 0x00000002, 0x00000004, 0x00000008, 0x00000001, 0x00000002, 0x00000004, 0x00000008,
0x00000010, 0x00000020, 0x00000040, 0x00000080 0x00000010, 0x00000020, 0x00000040, 0x00000080
}; };
void void
zzresynch(SetWordType *wd,SetWordType tqmask) zzresynch(SetWordType *wd,SetWordType mask)
{ {
static int consumed = 1; static int consumed = 1;
@ -77,10 +77,10 @@ zzresynch(SetWordType *wd,SetWordType tqmask)
if ( !consumed ) {zzCONSUME; return;} if ( !consumed ) {zzCONSUME; return;}
/* if current token is in resynch set, we've got what we wanted */ /* if current token is in resynch set, we've got what we wanted */
if ( wd[LA(1)]&tqmask || LA(1) == zzEOF_TOKEN ) {consumed=0; return;} if ( wd[LA(1)]&mask || LA(1) == zzEOF_TOKEN ) {consumed=0; return;}
/* scan until we find something in the resynch set */ /* scan until we find something in the resynch set */
while ( !(wd[LA(1)]&tqmask) && LA(1) != zzEOF_TOKEN ) {zzCONSUME;} while ( !(wd[LA(1)]&mask) && LA(1) != zzEOF_TOKEN ) {zzCONSUME;}
consumed=1; consumed=1;
} }
@ -237,11 +237,11 @@ zzedecode(SetWordType *a)
if ( zzset_deg(a)>1 ) fprintf(stderr, " {"); if ( zzset_deg(a)>1 ) fprintf(stderr, " {");
do { do {
register SetWordType t = *p; register SetWordType t = *p;
register SetWordType *b = &(bittqmask[0]); register SetWordType *b = &(bitmask[0]);
do { do {
if ( t & *b ) fprintf(stderr, " %s", zztokens[e]); if ( t & *b ) fprintf(stderr, " %s", zztokens[e]);
e++; e++;
} while (++b < &(bittqmask[sizeof(SetWordType)*8])); } while (++b < &(bitmask[sizeof(SetWordType)*8]));
} while (++p < endp); } while (++p < endp);
if ( zzset_deg(a)>1 ) fprintf(stderr, " }"); if ( zzset_deg(a)>1 ) fprintf(stderr, " }");
} }
@ -271,7 +271,7 @@ zzsyn(char *text, int tok, char *egroup, SetWordType *eset, int etok, int k, cha
int int
zzset_el(unsigned b, SetWordType *p) zzset_el(unsigned b, SetWordType *p)
{ {
return( p[BSETDIVWORD(b)] & bittqmask[BSETMODWORD(b)] ); return( p[BSETDIVWORD(b)] & bitmask[BSETMODWORD(b)] );
} }
int int
@ -289,10 +289,10 @@ zzset_deg(SetWordType *a)
while ( p < endp ) while ( p < endp )
{ {
register SetWordType t = *p; register SetWordType t = *p;
register SetWordType *b = &(bittqmask[0]); register SetWordType *b = &(bitmask[0]);
do { do {
if (t & *b) ++degree; if (t & *b) ++degree;
} while (++b < &(bittqmask[sizeof(SetWordType)*8])); } while (++b < &(bitmask[sizeof(SetWordType)*8]));
p++; p++;
} }

@ -174,7 +174,7 @@ finish_parse (int **err_counts)
static boolean static boolean
parse_status (int *saved_counts) parse_status (int *saved_counts)
{ {
ushort ignore_etqmask; ushort ignore_emask;
/* /*
* This bit-twiddling fetches the error status (which has a bit * This bit-twiddling fetches the error status (which has a bit
@ -182,9 +182,9 @@ parse_status (int *saved_counts)
* to get "true" if there were any serious errors, and then * to get "true" if there were any serious errors, and then
* returns the opposite of that. * returns the opposite of that.
*/ */
ignore_etqmask = ignore_emask =
(1<<BTERR_NOTIFY) | (1<<BTERR_CONTENT) | (1<<BTERR_LEXWARN); (1<<BTERR_NOTIFY) | (1<<BTERR_CONTENT) | (1<<BTERR_LEXWARN);
return !(bt_error_status (saved_counts) & ~ignore_etqmask); return !(bt_error_status (saved_counts) & ~ignore_emask);
} }
@ -237,7 +237,7 @@ AST * bt_parse_entry_s (char * entry_text,
return NULL; return NULL;
} }
zzast_sp = ZZAST_STACKSIZE; /* workaround aptqparent pccts bug */ zzast_sp = ZZAST_STACKSIZE; /* workaround apparent pccts bug */
start_parse (NULL, entry_text, line); start_parse (NULL, entry_text, line);
entry (&entry_ast); /* enter the parser */ entry (&entry_ast); /* enter the parser */
@ -364,7 +364,7 @@ AST * bt_parse_entry (FILE * infile,
* functions? * functions?
*/ */
zzast_sp = ZZAST_STACKSIZE; /* workaround aptqparent pccts bug */ zzast_sp = ZZAST_STACKSIZE; /* workaround apparent pccts bug */
#if defined(LL_K) || defined(ZZINF_LOOK) || defined(DEMAND_LOOK) #if defined(LL_K) || defined(ZZINF_LOOK) || defined(DEMAND_LOOK)
# error One of LL_K, ZZINF_LOOK, or DEMAND_LOOK was defined # error One of LL_K, ZZINF_LOOK, or DEMAND_LOOK was defined

@ -115,7 +115,7 @@ static int JunkCount; /* non-whitespace chars at toplevel */
* mismatch -- this determines which character ('"' or '}') can * mismatch -- this determines which character ('"' or '}') can
* actually end the string * actually end the string
* StringStart: * StringStart:
* line on which current string started; if we detect an aptqparent * line on which current string started; if we detect an apparent
* runaway, this is used to report where the runaway started * runaway, this is used to report where the runaway started
* ApparentRunaway: * ApparentRunaway:
* flags if we have already detected (and warned) that the current * flags if we have already detected (and warned) that the current

@ -36,7 +36,7 @@ GEN_PRIVATE_ERRFUNC (syntax_error, (char * fmt, ...),
/* this is stolen from PCCTS' err.h */ /* this is stolen from PCCTS' err.h */
static SetWordType bittqmask[] = static SetWordType bitmask[] =
{ {
0x00000001, 0x00000002, 0x00000004, 0x00000008, 0x00000001, 0x00000002, 0x00000004, 0x00000008,
0x00000010, 0x00000020, 0x00000040, 0x00000080 0x00000010, 0x00000020, 0x00000040, 0x00000080
@ -115,7 +115,7 @@ append_token_set (char *msg, SetWordType *a)
do do
{ {
SetWordType t = *p; SetWordType t = *p;
SetWordType *b = &(bittqmask[0]); SetWordType *b = &(bitmask[0]);
do do
{ {
if (t & *b) if (t & *b)
@ -128,7 +128,7 @@ append_token_set (char *msg, SetWordType *a)
strcat (msg, " or "); strcat (msg, " or ");
} }
e++; e++;
} while (++b < &(bittqmask[sizeof(SetWordType)*8])); } while (++b < &(bitmask[sizeof(SetWordType)*8]));
} while (++p < endp); } while (++p < endp);
} }

@ -168,7 +168,7 @@ bt_postprocess_string (char * s, ushort options)
@CREATED : 1997/01/10, GPW @CREATED : 1997/01/10, GPW
@MODIFIED : 1997/08/25, GPW: renamed from bt_postprocess_field(), and changed @MODIFIED : 1997/08/25, GPW: renamed from bt_postprocess_field(), and changed
to take the head of a list of simple values, to take the head of a list of simple values,
rather than the tqparent of that list rather than the parent of that list
-------------------------------------------------------------------------- */ -------------------------------------------------------------------------- */
char * char *
bt_postprocess_value (AST * value, ushort options, boolean replace) bt_postprocess_value (AST * value, ushort options, boolean replace)
@ -418,7 +418,7 @@ bt_postprocess_value (AST * value, ushort options, boolean replace)
@RETURNS : @RETURNS :
@DESCRIPTION: Postprocesses all the strings in a single "field = value" @DESCRIPTION: Postprocesses all the strings in a single "field = value"
assignment subtree. Just checks that 'field' does indeed assignment subtree. Just checks that 'field' does indeed
point to an BTAST_FIELD node (presumably the tqparent of a list point to an BTAST_FIELD node (presumably the parent of a list
of simple values), downcases the field name, and calls of simple values), downcases the field name, and calls
bt_postprocess_value() on the value. bt_postprocess_value() on the value.
@GLOBALS : @GLOBALS :

@ -99,7 +99,7 @@ bool CSVExporter::exec() {
} }
TQWidget* CSVExporter::widget(TQWidget* parent_, const char* name_/*=0*/) { TQWidget* CSVExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
if(m_widget && TQT_BASE_OBJECT(m_widget->tqparent()) == TQT_BASE_OBJECT(parent_)) { if(m_widget && TQT_BASE_OBJECT(m_widget->parent()) == TQT_BASE_OBJECT(parent_)) {
return m_widget; return m_widget;
} }

@ -40,7 +40,7 @@ public:
virtual TQString formatString() const; virtual TQString formatString() const;
virtual TQString fileFilter() const; virtual TQString fileFilter() const;
virtual TQWidget* widget(TQWidget* tqparent, const char* name=0); virtual TQWidget* widget(TQWidget* parent, const char* name=0);
virtual void readOptions(KConfig* config); virtual void readOptions(KConfig* config);
virtual void saveOptions(KConfig* config); virtual void saveOptions(KConfig* config);

@ -211,7 +211,7 @@ Tellico::Data::CollPtr CSVImporter::collection() {
} }
TQWidget* CSVImporter::widget(TQWidget* parent_, const char* name_) { TQWidget* CSVImporter::widget(TQWidget* parent_, const char* name_) {
if(m_widget && TQT_BASE_OBJECT(m_widget->tqparent()) == TQT_BASE_OBJECT(parent_)) { if(m_widget && TQT_BASE_OBJECT(m_widget->parent()) == TQT_BASE_OBJECT(parent_)) {
return m_widget; return m_widget;
} }

@ -56,7 +56,7 @@ public:
virtual Data::CollPtr collection(); virtual Data::CollPtr collection();
/** /**
*/ */
virtual TQWidget* widget(TQWidget* tqparent, const char* name=0); virtual TQWidget* widget(TQWidget* parent, const char* name=0);
virtual bool validImport() const; virtual bool validImport() const;

@ -74,7 +74,7 @@ public:
*/ */
virtual void reset() {} virtual void reset() {}
virtual TQWidget* widget(TQWidget* tqparent, const char* name=0) = 0; virtual TQWidget* widget(TQWidget* parent, const char* name=0) = 0;
virtual void readOptions(KConfig*) {} virtual void readOptions(KConfig*) {}
virtual void saveOptions(KConfig*) {} virtual void saveOptions(KConfig*) {}

@ -505,7 +505,7 @@ TQWidget* FreeDBImporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
// cddb cache stuff // cddb cache stuff
m_buttonGroup = new TQButtonGroup(m_widget); m_buttonGroup = new TQButtonGroup(m_widget);
m_buttonGroup->hide(); // only use as button tqparent m_buttonGroup->hide(); // only use as button parent
m_buttonGroup->setExclusive(true); m_buttonGroup->setExclusive(true);
m_buttonGroup->insert(m_radioCDROM); m_buttonGroup->insert(m_radioCDROM);
m_buttonGroup->insert(m_radioCache); m_buttonGroup->insert(m_radioCache);

@ -45,7 +45,7 @@ public:
virtual Data::CollPtr collection(); virtual Data::CollPtr collection();
/** /**
*/ */
virtual TQWidget* widget(TQWidget* tqparent, const char* name=0); virtual TQWidget* widget(TQWidget* parent, const char* name=0);
virtual bool canImport(int type) const; virtual bool canImport(int type) const;
public slots: public slots:

@ -455,7 +455,7 @@ void HTMLExporter::writeImages(Data::CollPtr coll_) {
} }
TQWidget* HTMLExporter::widget(TQWidget* parent_, const char* name_/*=0*/) { TQWidget* HTMLExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
if(m_widget && TQT_BASE_OBJECT(m_widget->tqparent()) == TQT_BASE_OBJECT(parent_)) { if(m_widget && TQT_BASE_OBJECT(m_widget->parent()) == TQT_BASE_OBJECT(parent_)) {
return m_widget; return m_widget;
} }

@ -52,7 +52,7 @@ public:
virtual TQString formatString() const; virtual TQString formatString() const;
virtual TQString fileFilter() const; virtual TQString fileFilter() const;
virtual TQWidget* widget(TQWidget* tqparent, const char* name=0); virtual TQWidget* widget(TQWidget* parent, const char* name=0);
virtual void readOptions(KConfig*); virtual void readOptions(KConfig*);
virtual void saveOptions(KConfig*); virtual void saveOptions(KConfig*);

@ -166,7 +166,7 @@ TQString ONIXExporter::text() {
} }
TQWidget* ONIXExporter::widget(TQWidget* parent_, const char* name_/*=0*/) { TQWidget* ONIXExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
if(m_widget && TQT_BASE_OBJECT(m_widget->tqparent()) == TQT_BASE_OBJECT(parent_)) { if(m_widget && TQT_BASE_OBJECT(m_widget->parent()) == TQT_BASE_OBJECT(parent_)) {
return m_widget; return m_widget;
} }

@ -200,7 +200,7 @@ bool PilotDBExporter::exec() {
} }
TQWidget* PilotDBExporter::widget(TQWidget* parent_, const char* name_/*=0*/) { TQWidget* PilotDBExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
if(m_widget && TQT_BASE_OBJECT(m_widget->tqparent()) == TQT_BASE_OBJECT(parent_)) { if(m_widget && TQT_BASE_OBJECT(m_widget->parent()) == TQT_BASE_OBJECT(parent_)) {
return m_widget; return m_widget;
} }

@ -37,7 +37,7 @@ public:
virtual TQString formatString() const; virtual TQString formatString() const;
virtual TQString fileFilter() const; virtual TQString fileFilter() const;
virtual TQWidget* widget(TQWidget* tqparent, const char* name=0); virtual TQWidget* widget(TQWidget* parent, const char* name=0);
virtual void readOptions(KConfig* cfg); virtual void readOptions(KConfig* cfg);
virtual void saveOptions(KConfig* cfg); virtual void saveOptions(KConfig* cfg);

@ -262,7 +262,7 @@ void TellicoXMLExporter::exportEntryXML(TQDomDocument& dom_, TQDomElement& paren
// if multiple versions are allowed, split them into separate elements // if multiple versions are allowed, split them into separate elements
if(fIt->flags() & Data::Field::AllowMultiple) { if(fIt->flags() & Data::Field::AllowMultiple) {
// tqparent element if field contains multiple values, child of entryElem // parent element if field contains multiple values, child of entryElem
// who cares about grammar, just add an 's' to the name // who cares about grammar, just add an 's' to the name
TQDomElement parElem = dom_.createElement(fieldName + 's'); TQDomElement parElem = dom_.createElement(fieldName + 's');
entryElem.appendChild(parElem); entryElem.appendChild(parElem);
@ -472,7 +472,7 @@ void TellicoXMLExporter::exportBorrowerXML(TQDomDocument& dom_, TQDomElement& pa
} }
TQWidget* TellicoXMLExporter::widget(TQWidget* parent_, const char* name_/*=0*/) { TQWidget* TellicoXMLExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
if(m_widget && TQT_BASE_OBJECT(m_widget->tqparent()) == TQT_BASE_OBJECT(parent_)) { if(m_widget && TQT_BASE_OBJECT(m_widget->parent()) == TQT_BASE_OBJECT(parent_)) {
return m_widget; return m_widget;
} }

@ -59,13 +59,13 @@ public:
static const unsigned syntaxVersion; static const unsigned syntaxVersion;
private: private:
void exportCollectionXML(TQDomDocument& doc, TQDomElement& tqparent, bool format) const; void exportCollectionXML(TQDomDocument& doc, TQDomElement& parent, bool format) const;
void exportFieldXML(TQDomDocument& doc, TQDomElement& tqparent, Data::FieldPtr field) const; void exportFieldXML(TQDomDocument& doc, TQDomElement& parent, Data::FieldPtr field) const;
void exportEntryXML(TQDomDocument& doc, TQDomElement& tqparent, Data::EntryPtr entry, bool format) const; void exportEntryXML(TQDomDocument& doc, TQDomElement& parent, Data::EntryPtr entry, bool format) const;
void exportImageXML(TQDomDocument& doc, TQDomElement& tqparent, const TQString& imageID) const; void exportImageXML(TQDomDocument& doc, TQDomElement& parent, const TQString& imageID) const;
void exportGroupXML(TQDomDocument& doc, TQDomElement& tqparent) const; void exportGroupXML(TQDomDocument& doc, TQDomElement& parent) const;
void exportFilterXML(TQDomDocument& doc, TQDomElement& tqparent, FilterPtr filter) const; void exportFilterXML(TQDomDocument& doc, TQDomElement& parent, FilterPtr filter) const;
void exportBorrowerXML(TQDomDocument& doc, TQDomElement& tqparent, Data::BorrowerPtr borrower) const; void exportBorrowerXML(TQDomDocument& doc, TQDomElement& parent, Data::BorrowerPtr borrower) const;
// keep track of which images were written, since some entries could have same image // keep track of which images were written, since some entries could have same image
mutable StringSet m_images; mutable StringSet m_images;

@ -59,7 +59,7 @@ bool XSLTExporter::exec() {
} }
TQWidget* XSLTExporter::widget(TQWidget* parent_, const char* name_/*=0*/) { TQWidget* XSLTExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
if(m_widget && TQT_BASE_OBJECT(m_widget->tqparent()) == TQT_BASE_OBJECT(parent_)) { if(m_widget && TQT_BASE_OBJECT(m_widget->parent()) == TQT_BASE_OBJECT(parent_)) {
return m_widget; return m_widget;
} }

@ -32,7 +32,7 @@ public:
virtual TQString formatString() const; virtual TQString formatString() const;
virtual TQString fileFilter() const; virtual TQString fileFilter() const;
virtual TQWidget* widget(TQWidget* tqparent, const char* name=0); virtual TQWidget* widget(TQWidget* parent, const char* name=0);
private: private:
TQWidget* m_widget; TQWidget* m_widget;

@ -41,7 +41,7 @@ public:
virtual Data::CollPtr collection(); virtual Data::CollPtr collection();
/** /**
*/ */
virtual TQWidget* widget(TQWidget* tqparent, const char* name=0); virtual TQWidget* widget(TQWidget* parent, const char* name=0);
void setXSLTURL(const KURL& url) { m_xsltURL = url; } void setXSLTURL(const KURL& url) { m_xsltURL = url; }
private: private:

@ -26,7 +26,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
UPCValidator(TQObject* tqparent, const char* name=0); UPCValidator(TQObject* parent, const char* name=0);
virtual TQValidator::State validate(TQString& input, int& pos) const; virtual TQValidator::State validate(TQString& input, int& pos) const;
virtual void fixup(TQString& input) const; virtual void fixup(TQString& input) const;

@ -30,7 +30,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ViewStack(TQWidget* tqparent, const char* name = 0); ViewStack(TQWidget* parent, const char* name = 0);
EntryView* entryView() const { return m_entryView; } EntryView* entryView() const { return m_entryView; }
EntryIconView* iconView() const { return m_iconView; } EntryIconView* iconView() const { return m_iconView; }

Loading…
Cancel
Save