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
public:
static Data::BorrowerPtr getBorrower(TQWidget* tqparent);
static Data::BorrowerPtr getBorrower(TQWidget* parent);
private slots:
void selectItem(const TQString& name);
@ -48,10 +48,10 @@ private:
/**
* 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
*/
BorrowerDialog(TQWidget* tqparent, const char* name=0);
BorrowerDialog(TQWidget* parent, const char* name=0);
Data::BorrowerPtr borrower();
TQString m_uid;
@ -61,8 +61,8 @@ private:
class Item : public KListViewItem {
public:
Item(KListView* tqparent, const KABC::Addressee& addressee);
Item(KListView* tqparent, const Data::Borrower& borrower);
Item(KListView* parent, const KABC::Addressee& addressee);
Item(KListView* parent, const Data::Borrower& borrower);
const TQString& uid() const { return m_uid; }
private:

@ -24,7 +24,7 @@ namespace Tellico {
*/
class BorrowerItem : public GUI::CountedItem {
public:
BorrowerItem(GUI::ListView* tqparent, Data::BorrowerPtr filter);
BorrowerItem(GUI::ListView* parent, Data::BorrowerPtr filter);
virtual bool isBorrowerItem() const { return true; }
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);
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());
int row = -1;

@ -57,11 +57,11 @@ public:
/**
* The constructor sets up the dialog.
*
* @param coll A pointer to the collection tqparent of all the attributes
* @param tqparent A pointer to the tqparent widget
* @param coll A pointer to the collection parent of all the attributes
* @param parent A pointer to the parent widget
* @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();
signals:

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

@ -53,10 +53,10 @@ public:
/**
* 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
*/
ConfigDialog(TQWidget* tqparent, const char* name=0);
ConfigDialog(TQWidget* parent, const char* name=0);
virtual ~ConfigDialog();
/**
@ -200,10 +200,10 @@ public:
class SourceListViewItem : public KListViewItem {
public:
SourceListViewItem(KListView* tqparent, const GeneralFetcherInfo& info,
SourceListViewItem(KListView* parent, const GeneralFetcherInfo& info,
const TQString& groupName = TQString());
SourceListViewItem(KListView* tqparent, TQListViewItem* after,
SourceListViewItem(KListView* parent, TQListViewItem* after,
const GeneralFetcherInfo& info, const TQString& groupName = TQString());
void setConfigGroup(const TQString& s) { m_configGroup = s; }

@ -44,8 +44,8 @@ public:
/**
* Initializes the singleton. Should just be called once, from Tellico::MainWindow
*/
static void init(MainWindow* tqparent, const char* name=0) {
if(!s_self) s_self = new Controller(tqparent, name);
static void init(MainWindow* parent, const char* name=0) {
if(!s_self) s_self = new Controller(parent, name);
}
const Data::EntryVec& selectedEntries() const { return m_selectedEntries; }
@ -108,7 +108,7 @@ public:
public slots:
/**
* 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.
*
* @param coll A pointer to the collection being added
@ -149,7 +149,7 @@ signals:
private:
static Controller* s_self;
Controller(MainWindow* tqparent, const char* name);
Controller(MainWindow* parent, const char* name);
void blockAllSignals(bool block) const;
bool canCheckIn() const;

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

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

@ -41,10 +41,10 @@ public:
/**
* 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
*/
DetailedListView(TQWidget* tqparent, const char* name=0);
DetailedListView(TQWidget* parent, const char* name=0);
~DetailedListView();
/**

@ -72,7 +72,7 @@ public:
* The constructor, which automatically sets the id to the current number
* 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, int id);
@ -140,7 +140,7 @@ public:
bool setField(const TQString& fieldName, 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
*/
@ -201,8 +201,8 @@ public:
*/
TQStringList formattedFieldValues() const { return m_formattedFields.values(); }
/**
* Returns a boolean indicating if the entry's tqparent collection recognizes
* it existence, that is, the tqparent collection has this entry in its list.
* Returns a boolean indicating if the entry's parent collection recognizes
* it existence, that is, the parent collection has this entry in its list.
*
* @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()
TQWidget* page = new TQWidget(m_tabs);
// (tqparent, margin, spacing)
// (parent, margin, spacing)
TQVBoxLayout* boxLayout = new TQVBoxLayout(page, 0, 0);
TQWidget* grid = new TQWidget(page);
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,
// then spacing should be 5, which is set later
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
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()->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
if(m_currColl->fieldCategories().findIndex(field_->category()) == -1) {
// 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();
m_tabs->removePage(w);
delete w; // automatically deletes child widget
@ -716,7 +716,7 @@ void EntryEditDialog::modifyField(Data::CollPtr coll_, Data::FieldPtr oldField_,
delete childList;
}
// 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
if(newField_->category() != oldField_->category()) {
m_tabs->setTabLabel(widget->parentWidget()->parentWidget(), newField_->category());

@ -39,7 +39,7 @@ Q_OBJECT
friend class GUI::FieldWidget;
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
@ -75,7 +75,7 @@ public:
* 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.
*
* @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 newField A pointer to the new field
*/

@ -29,7 +29,7 @@ namespace Tellico {
*/
class EntryGroupItem : public GUI::CountedItem {
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; }
Data::EntryGroup* group() const { return m_group; }

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

@ -21,8 +21,8 @@
using Tellico::EntryItem;
EntryItem::EntryItem(GUI::ListView* tqparent, Data::EntryPtr entry)
: GUI::ListViewItem(tqparent), m_entry(entry), m_isDetailedList(true) {
EntryItem::EntryItem(GUI::ListView* parent, Data::EntryPtr entry)
: GUI::ListViewItem(parent), m_entry(entry), m_isDetailedList(true) {
}
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,
* 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
*/
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
* 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 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; }
@ -73,7 +73,7 @@ public:
private:
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
// when I want to do funky comparisons
bool m_isDetailedList : 1;

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

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

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

@ -36,7 +36,7 @@ Q_OBJECT
TQ_OBJECT
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();
TQString fileFilter();

@ -68,7 +68,7 @@ public:
NoImage=3
};
AmazonFetcher(Site site, TQObject* tqparent, const char* name = 0);
AmazonFetcher(Site site, TQObject* parent, const char* name = 0);
virtual ~AmazonFetcher();
virtual TQString source() const;
@ -94,7 +94,7 @@ public:
/**
* 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();

@ -37,7 +37,7 @@ Q_OBJECT
TQ_OBJECT
public:
AnimeNfoFetcher(TQObject* tqparent, const char* name = 0);
AnimeNfoFetcher(TQObject* parent, const char* name = 0);
virtual ~AnimeNfoFetcher() {}
virtual TQString source() const;
@ -53,7 +53,7 @@ public:
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 {
public:

@ -37,7 +37,7 @@ Q_OBJECT
TQ_OBJECT
public:
ArxivFetcher(TQObject* tqparent);
ArxivFetcher(TQObject* parent);
~ArxivFetcher();
virtual TQString source() const;
@ -55,7 +55,7 @@ public:
virtual void updateEntry(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 {
public:

@ -34,7 +34,7 @@ Q_OBJECT
TQ_OBJECT
public:
BibsonomyFetcher(TQObject* tqparent);
BibsonomyFetcher(TQObject* parent);
~BibsonomyFetcher();
virtual TQString source() const;
@ -50,7 +50,7 @@ public:
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 {
public:

@ -34,7 +34,7 @@ Q_OBJECT
TQ_OBJECT
public:
CitebaseFetcher(TQObject* tqparent);
CitebaseFetcher(TQObject* parent);
~CitebaseFetcher();
virtual TQString source() const;
@ -51,7 +51,7 @@ public:
virtual void updateEntry(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 {
public:

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

@ -39,7 +39,7 @@ Q_OBJECT
TQ_OBJECT
public:
CrossRefFetcher(TQObject* tqparent);
CrossRefFetcher(TQObject* parent);
~CrossRefFetcher();
virtual TQString source() const;
@ -56,7 +56,7 @@ public:
virtual void updateEntry(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 {
public:

@ -46,7 +46,7 @@ Q_OBJECT
public:
/**
*/
DiscogsFetcher(TQObject* tqparent, const char* name = 0);
DiscogsFetcher(TQObject* parent, const char* name = 0);
/**
*/
virtual ~DiscogsFetcher();
@ -70,7 +70,7 @@ public:
/**
* 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();

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

@ -43,7 +43,7 @@ Q_OBJECT
TQ_OBJECT
public:
ExecExternalFetcher(TQObject* tqparent, const char* name=0);
ExecExternalFetcher(TQObject* parent, const char* name=0);
/**
*/
virtual ~ExecExternalFetcher();
@ -59,13 +59,13 @@ public:
virtual Type type() const { return ExecExternal; }
virtual bool canFetch(int type) const;
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; }
class ConfigWidget : public Fetch::ConfigWidget {
public:
ConfigWidget(TQWidget* tqparent = 0, const ExecExternalFetcher* fetcher = 0);
ConfigWidget(TQWidget* parent = 0, const ExecExternalFetcher* fetcher = 0);
~ConfigWidget();
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_messager(0) {}
/**
@ -114,7 +114,7 @@ public:
/**
* Returns a widget for modifying the fetcher's config.
*/
virtual ConfigWidget* configWidget(TQWidget* tqparent) const = 0;
virtual ConfigWidget* configWidget(TQWidget* parent) const = 0;
signals:
// void signaltqStatus(const TQString& status);

@ -62,7 +62,7 @@ public:
const FetcherVec& fetchers() const { return m_fetchers; }
FetcherVec fetchers(int type);
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
FetcherVec createUpdateFetchers(int collType);

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

@ -40,7 +40,7 @@ Q_OBJECT
public:
/**
*/
GoogleScholarFetcher(TQObject* tqparent, const char* name = 0);
GoogleScholarFetcher(TQObject* parent, const char* name = 0);
/**
*/
virtual ~GoogleScholarFetcher();
@ -64,7 +64,7 @@ public:
/**
* 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 {
public:

@ -37,7 +37,7 @@ Q_OBJECT
TQ_OBJECT
public:
IBSFetcher(TQObject* tqparent, const char* name = 0);
IBSFetcher(TQObject* parent, const char* name = 0);
virtual ~IBSFetcher() {}
virtual TQString source() const;
@ -53,7 +53,7 @@ public:
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 {
public:

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

@ -38,7 +38,7 @@ Q_OBJECT
TQ_OBJECT
public:
ISBNdbFetcher(TQObject* tqparent = 0, const char* name = 0);
ISBNdbFetcher(TQObject* parent = 0, const char* name = 0);
~ISBNdbFetcher();
virtual TQString source() const;
@ -54,7 +54,7 @@ public:
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 {
public:

@ -55,9 +55,9 @@ friend class SRUConfigWidget;
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,
TQObject* tqparent);
TQObject* parent);
/**
*/
virtual ~SRUFetcher();
@ -79,11 +79,11 @@ public:
static StringMap customFields();
virtual ConfigWidget* configWidget(TQWidget* tqparent) const;
virtual ConfigWidget* configWidget(TQWidget* parent) const;
static TQString defaultName();
static Fetcher::Ptr libraryOfCongress(TQObject* tqparent);
static Fetcher::Ptr libraryOfCongress(TQObject* parent);
private slots:
void slotData(KIO::Job* job, const TQByteArray& data);

@ -42,7 +42,7 @@ Q_OBJECT
public:
/**
*/
YahooFetcher(TQObject* tqparent, const char* name = 0);
YahooFetcher(TQObject* parent, const char* name = 0);
/**
*/
virtual ~YahooFetcher();
@ -65,7 +65,7 @@ public:
/**
* 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 {
public:

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

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

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

@ -54,7 +54,7 @@ public:
* Constructor. You give a @ref FilterRule as parameter, which will
* 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
@ -102,7 +102,7 @@ Q_OBJECT
TQ_OBJECT
public:
FilterRuleWidgetLister(TQWidget* tqparent, const char* name=0);
FilterRuleWidgetLister(TQWidget* parent, const char* name=0);
const TQPtrList<TQWidget>& widgetList() const;
void setFilter(Filter::Ptr filter);
@ -116,7 +116,7 @@ signals:
protected:
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.
*
* @param tqparent A pointer to the tqparent widget
* @param parent A pointer to the parent widget
* @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();
void setFilter(FilterPtr filter);

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

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

@ -47,10 +47,10 @@ public:
/**
* 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
*/
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

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

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

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

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

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

@ -32,7 +32,7 @@
using Tellico::GUI::SpinBox;
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);
// I want to be able to omit the day

@ -32,7 +32,7 @@ Q_OBJECT
TQ_OBJECT
public:
SpinBox(int min, int max, TQWidget *tqparent);
SpinBox(int min, int max, TQWidget *parent);
};
/**
@ -43,7 +43,7 @@ Q_OBJECT
TQ_OBJECT
public:
DateWidget(TQWidget* tqparent, const char* name = 0);
DateWidget(TQWidget* parent, const char* name = 0);
~DateWidget() {}
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*/)
: 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
if(TQCString(tqstyle().name()).lower().find("keramik", 0, false) > -1) {
l->setMargin(1);

@ -40,7 +40,7 @@ Q_OBJECT
TQ_OBJECT
public:
FieldWidget(Data::FieldPtr field, TQWidget* tqparent, const char* name=0);
FieldWidget(Data::FieldPtr field, TQWidget* parent, const char* name=0);
virtual ~FieldWidget() {}
Data::FieldPtr field() const { return m_field; }
@ -59,7 +59,7 @@ public:
virtual void addCompletionObjectItem(const TQString&) {}
// 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:
virtual void insertDefault();

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

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

@ -41,8 +41,8 @@
#include <assert.h>
KWidgetLister::KWidgetLister( int minWidgets, int maxWidgets, TQWidget *tqparent, const char* name )
: TQWidget( tqparent, name )
KWidgetLister::KWidgetLister( int minWidgets, int maxWidgets, TQWidget *parent, const char* name )
: TQWidget( parent, name )
{
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 )

@ -64,7 +64,7 @@ class KWidgetLister : public TQWidget
Q_OBJECT
TQ_OBJECT
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();
protected slots:
@ -97,7 +97,7 @@ protected:
when showing it on screen. Make sure you call this
implementaion, though, since you cannot put the widget on screen
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);
/** Removes a single (always the last) widget. Doesn't care if there
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
implementers of subclasses of KWidgetLister to reimplement this
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
check if @p aNum is inside the range @p
[mMinWidgets,mMaxWidgets]. */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -41,7 +41,7 @@ Q_OBJECT
TQ_OBJECT
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.

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

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

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

@ -38,7 +38,7 @@ Q_OBJECT
TQ_OBJECT
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();
Data::CollPtr collection();

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

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

@ -40,11 +40,11 @@ public:
/**
* 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
*/
LoanDialog(const Data::EntryVec& entries, TQWidget* tqparent, const char* name=0);
LoanDialog(Data::LoanPtr loan, TQWidget* tqparent, const char* name=0);
LoanDialog(const Data::EntryVec& entries, TQWidget* parent, const char* name=0);
LoanDialog(Data::LoanPtr loan, TQWidget* parent, const char* name=0);
virtual ~LoanDialog();
KCommand* createCommand();

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

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

@ -81,7 +81,7 @@ public:
/**
* 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.

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

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

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

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

@ -37,10 +37,10 @@ public:
/**
* 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
*/
ReportDialog(TQWidget* tqparent, const char* name=0);
ReportDialog(TQWidget* parent, const char* name=0);
virtual ~ReportDialog();
public slots:

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

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

@ -45,10 +45,10 @@ public:
/**
* 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
*/
@ -130,7 +130,7 @@ private:
static Kernel* s_self;
// all constructors are private
Kernel(MainWindow* tqparent);
Kernel(MainWindow* parent);
Kernel(const Kernel&);
Kernel& operator=(const Kernel&);

@ -50,7 +50,7 @@ public:
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;
public slots:

@ -45,7 +45,7 @@ public:
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;
public slots:

@ -191,7 +191,7 @@ bool BibtexExporter::exec() {
}
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;
}

@ -40,7 +40,7 @@ public:
virtual TQString formatString() 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 saveOptions(KConfig*);

@ -64,7 +64,7 @@ public:
* @return A pointer to a @ref BibtexCollection, or 0 if none can be created.
*/
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;
public slots:

@ -61,13 +61,13 @@
* 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 */
static SetWordType bittqmask[] = {
static SetWordType bitmask[] = {
0x00000001, 0x00000002, 0x00000004, 0x00000008,
0x00000010, 0x00000020, 0x00000040, 0x00000080
};
void
zzresynch(SetWordType *wd,SetWordType tqmask)
zzresynch(SetWordType *wd,SetWordType mask)
{
static int consumed = 1;
@ -77,10 +77,10 @@ zzresynch(SetWordType *wd,SetWordType tqmask)
if ( !consumed ) {zzCONSUME; return;}
/* 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 */
while ( !(wd[LA(1)]&tqmask) && LA(1) != zzEOF_TOKEN ) {zzCONSUME;}
while ( !(wd[LA(1)]&mask) && LA(1) != zzEOF_TOKEN ) {zzCONSUME;}
consumed=1;
}
@ -237,11 +237,11 @@ zzedecode(SetWordType *a)
if ( zzset_deg(a)>1 ) fprintf(stderr, " {");
do {
register SetWordType t = *p;
register SetWordType *b = &(bittqmask[0]);
register SetWordType *b = &(bitmask[0]);
do {
if ( t & *b ) fprintf(stderr, " %s", zztokens[e]);
e++;
} while (++b < &(bittqmask[sizeof(SetWordType)*8]));
} while (++b < &(bitmask[sizeof(SetWordType)*8]));
} while (++p < endp);
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
zzset_el(unsigned b, SetWordType *p)
{
return( p[BSETDIVWORD(b)] & bittqmask[BSETMODWORD(b)] );
return( p[BSETDIVWORD(b)] & bitmask[BSETMODWORD(b)] );
}
int
@ -289,10 +289,10 @@ zzset_deg(SetWordType *a)
while ( p < endp )
{
register SetWordType t = *p;
register SetWordType *b = &(bittqmask[0]);
register SetWordType *b = &(bitmask[0]);
do {
if (t & *b) ++degree;
} while (++b < &(bittqmask[sizeof(SetWordType)*8]));
} while (++b < &(bitmask[sizeof(SetWordType)*8]));
p++;
}

@ -174,7 +174,7 @@ finish_parse (int **err_counts)
static boolean
parse_status (int *saved_counts)
{
ushort ignore_etqmask;
ushort ignore_emask;
/*
* 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
* returns the opposite of that.
*/
ignore_etqmask =
ignore_emask =
(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;
}
zzast_sp = ZZAST_STACKSIZE; /* workaround aptqparent pccts bug */
zzast_sp = ZZAST_STACKSIZE; /* workaround apparent pccts bug */
start_parse (NULL, entry_text, line);
entry (&entry_ast); /* enter the parser */
@ -364,7 +364,7 @@ AST * bt_parse_entry (FILE * infile,
* 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)
# 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
* actually end the string
* 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
* ApparentRunaway:
* 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 */
static SetWordType bittqmask[] =
static SetWordType bitmask[] =
{
0x00000001, 0x00000002, 0x00000004, 0x00000008,
0x00000010, 0x00000020, 0x00000040, 0x00000080
@ -115,7 +115,7 @@ append_token_set (char *msg, SetWordType *a)
do
{
SetWordType t = *p;
SetWordType *b = &(bittqmask[0]);
SetWordType *b = &(bitmask[0]);
do
{
if (t & *b)
@ -128,7 +128,7 @@ append_token_set (char *msg, SetWordType *a)
strcat (msg, " or ");
}
e++;
} while (++b < &(bittqmask[sizeof(SetWordType)*8]));
} while (++b < &(bitmask[sizeof(SetWordType)*8]));
} while (++p < endp);
}

@ -168,7 +168,7 @@ bt_postprocess_string (char * s, ushort options)
@CREATED : 1997/01/10, GPW
@MODIFIED : 1997/08/25, GPW: renamed from bt_postprocess_field(), and changed
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 *
bt_postprocess_value (AST * value, ushort options, boolean replace)
@ -418,7 +418,7 @@ bt_postprocess_value (AST * value, ushort options, boolean replace)
@RETURNS :
@DESCRIPTION: Postprocesses all the strings in a single "field = value"
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
bt_postprocess_value() on the value.
@GLOBALS :

@ -99,7 +99,7 @@ bool CSVExporter::exec() {
}
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;
}

@ -40,7 +40,7 @@ public:
virtual TQString formatString() 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 saveOptions(KConfig* config);

@ -211,7 +211,7 @@ Tellico::Data::CollPtr CSVImporter::collection() {
}
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;
}

@ -56,7 +56,7 @@ public:
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;

@ -74,7 +74,7 @@ public:
*/
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 saveOptions(KConfig*) {}

@ -505,7 +505,7 @@ TQWidget* FreeDBImporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
// cddb cache stuff
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->insert(m_radioCDROM);
m_buttonGroup->insert(m_radioCache);

@ -45,7 +45,7 @@ public:
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;
public slots:

@ -455,7 +455,7 @@ void HTMLExporter::writeImages(Data::CollPtr coll_) {
}
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;
}

@ -52,7 +52,7 @@ public:
virtual TQString formatString() 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 saveOptions(KConfig*);

@ -166,7 +166,7 @@ TQString ONIXExporter::text() {
}
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;
}

@ -200,7 +200,7 @@ bool PilotDBExporter::exec() {
}
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;
}

@ -37,7 +37,7 @@ public:
virtual TQString formatString() 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 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(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
TQDomElement parElem = dom_.createElement(fieldName + 's');
entryElem.appendChild(parElem);
@ -472,7 +472,7 @@ void TellicoXMLExporter::exportBorrowerXML(TQDomDocument& dom_, TQDomElement& pa
}
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;
}

@ -59,13 +59,13 @@ public:
static const unsigned syntaxVersion;
private:
void exportCollectionXML(TQDomDocument& doc, TQDomElement& tqparent, bool format) const;
void exportFieldXML(TQDomDocument& doc, TQDomElement& tqparent, Data::FieldPtr field) const;
void exportEntryXML(TQDomDocument& doc, TQDomElement& tqparent, Data::EntryPtr entry, bool format) const;
void exportImageXML(TQDomDocument& doc, TQDomElement& tqparent, const TQString& imageID) const;
void exportGroupXML(TQDomDocument& doc, TQDomElement& tqparent) const;
void exportFilterXML(TQDomDocument& doc, TQDomElement& tqparent, FilterPtr filter) const;
void exportBorrowerXML(TQDomDocument& doc, TQDomElement& tqparent, Data::BorrowerPtr borrower) const;
void exportCollectionXML(TQDomDocument& doc, TQDomElement& parent, bool format) const;
void exportFieldXML(TQDomDocument& doc, TQDomElement& parent, Data::FieldPtr field) const;
void exportEntryXML(TQDomDocument& doc, TQDomElement& parent, Data::EntryPtr entry, bool format) const;
void exportImageXML(TQDomDocument& doc, TQDomElement& parent, const TQString& imageID) const;
void exportGroupXML(TQDomDocument& doc, TQDomElement& parent) const;
void exportFilterXML(TQDomDocument& doc, TQDomElement& parent, FilterPtr filter) 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
mutable StringSet m_images;

@ -59,7 +59,7 @@ bool XSLTExporter::exec() {
}
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;
}

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

@ -41,7 +41,7 @@ public:
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; }
private:

@ -26,7 +26,7 @@ Q_OBJECT
TQ_OBJECT
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 void fixup(TQString& input) const;

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

Loading…
Cancel
Save