diff options
Diffstat (limited to 'kmymoney2/kmymoney2.h')
-rw-r--r-- | kmymoney2/kmymoney2.h | 157 |
1 files changed, 79 insertions, 78 deletions
diff --git a/kmymoney2/kmymoney2.h b/kmymoney2/kmymoney2.h index 77d5c86..e63d861 100644 --- a/kmymoney2/kmymoney2.h +++ b/kmymoney2/kmymoney2.h @@ -23,9 +23,9 @@ // ---------------------------------------------------------------------------- // QT Includes -#include <qapplication.h> -class QTimer; -class QLabel; +#include <tqapplication.h> +class TQTimer; +class TQLabel; // ---------------------------------------------------------------------------- // KDE Includes @@ -53,7 +53,7 @@ class KPushButton; #include <kmymoney/register.h> #include <kmymoney/kmymoneyutils.h> -class QSignalMapper; +class TQSignalMapper; class KProgress; class KMyMoneyView; class MyMoneyQifReader; @@ -96,14 +96,15 @@ namespace KMyMoneyPlugin { class ImporterPlugin; } class KMyMoney2App : public KMainWindow, public DCOPObject { Q_OBJECT +// TQ_OBJECT K_DCOP protected slots: - void slotFileSaveAsFilterChanged(const QString& filter); + void slotFileSaveAsFilterChanged(const TQString& filter); /** * This slot is intended to be used as part of auto saving. This is used when the - * QTimer emits the timeout signal and simply checks that the file is dirty (has + * TQTimer emits the timeout signal and simply checks that the file is dirty (has * received modifications to it's contents), and call the apropriate method to * save the file. Furthermore, re-starts the timer (possibly not needed). * @author mvillarino 2005 @@ -149,7 +150,7 @@ protected slots: void slotQifImport(void); /** - * Called when a QIF import is finished. + * Called when a TQIF import is finished. */ void slotQifImportFinished(void); @@ -179,7 +180,7 @@ protected slots: /** * Called when the user wishes to export some transaction to a - * QIF formatted file. An account must be open for this to work. + * TQIF formatted file. An account must be open for this to work. * Uses MyMoneyQifWriter() for the actual output. */ void slotQifExport(void); @@ -229,17 +230,17 @@ protected slots: /** * Brings up the new category editor and saves the information. - * The dialog will be preset with the name. The parent defaults to + * The dialog will be preset with the name. The tqparent defaults to * MyMoneyFile::expense() * * @param name Name of the account to be created. Could include a full hierarchy * @param id reference to storage which will receive the id after successful creation * * @note Typically, this slot can be connected to the - * StdTransactionEditor::createCategory(const QString&, QString&) or - * KMyMoneyCombo::createItem(const QString&, QString&) signal. + * StdTransactionEditor::createCategory(const TQString&, TQString&) or + * KMyMoneyCombo::createItem(const TQString&, TQString&) signal. */ - void slotCategoryNew(const QString& name, QString& id); + void slotCategoryNew(const TQString& name, TQString& id); /** * Calls the print logic for the current view @@ -252,9 +253,9 @@ protected slots: void slotInvestmentNew(void); /** - * Create a new investment in a given @p parent investment account + * Create a new investment in a given @p tqparent investment account */ - void slotInvestmentNew(MyMoneyAccount& account, const MyMoneyAccount& parent); + void slotInvestmentNew(MyMoneyAccount& account, const MyMoneyAccount& tqparent); /** * This slot opens the investment editor to edit the currently @@ -284,7 +285,7 @@ protected slots: /** */ - void slotPayeeNew(const QString& newnameBase, QString& id); + void slotPayeeNew(const TQString& newnameBase, TQString& id); void slotPayeeNew(void); /** @@ -317,7 +318,7 @@ protected slots: /** */ - void slotCurrencyRename(QListViewItem* item, int, const QString& txt); + void slotCurrencyRename(TQListViewItem* item, int, const TQString& txt); /** */ @@ -418,7 +419,7 @@ protected slots: */ void slotDataChanged(void); - void slotMoveToAccount(const QString& id); + void slotMoveToAccount(const TQString& id); void slotUpdateMoveToAccountMenu(void); @@ -463,7 +464,7 @@ public: /** * construtor of KMyMoney2App, calls all init functions to create the application. */ - KMyMoney2App(QWidget* parent=0, const char* name=0); + KMyMoney2App(TQWidget* tqparent=0, const char* name=0); /** * Destructor @@ -473,12 +474,12 @@ public: /** Init wizard dialog */ bool initWizard(void); - static void progressCallback(int current, int total, const QString&); + static void progressCallback(int current, int total, const TQString&); - void writeLastUsedDir(const QString& directory); - QString readLastUsedDir(void) const; - void writeLastUsedFile(const QString& fileName); - QString readLastUsedFile(void) const; + void writeLastUsedDir(const TQString& directory); + TQString readLastUsedDir(void) const; + void writeLastUsedFile(const TQString& fileName); + TQString readLastUsedFile(void) const; /** * Returns whether there is an importer available that can handle this file @@ -499,9 +500,9 @@ public: * This method returns a list of all 'other' dcop registered kmymoney processes. * It's a subset of the return of DCOPclient()->registeredApplications(). * - * @retval QStringList of process ids + * @retval TQStringList of process ids */ - const QValueList<QCString> instanceList(void) const; + const TQValueList<TQCString> instanceList(void) const; /** * Dump a list of the names of all defined KActions to stdout. @@ -512,21 +513,21 @@ public: * Popup the context menu with the respective @p containerName. * Valid container names are defined in kmymoney2ui.rc */ - void showContextMenu(const QString& containerName); + void showContextMenu(const TQString& containerName); /** * This method opens the category editor with the data found in @a account. The - * parent account is preset to @a parent but can be modified. If the user + * tqparent account is preset to @a tqparent but can be modified. If the user * acknowledges, the category is created. */ - void createCategory(MyMoneyAccount& account, const MyMoneyAccount& parent); + void createCategory(MyMoneyAccount& account, const MyMoneyAccount& tqparent); /** * This method returns the account for a given @a key - @a value pair. * If the account is not found in the list of accounts, MyMoneyAccount() * is returned. */ - const MyMoneyAccount& account(const QString& key, const QString& value) const; + const MyMoneyAccount& account(const TQString& key, const TQString& value) const; /** * This method set the online parameters stored in @a kvps with the @@ -534,18 +535,18 @@ public: */ void setAccountOnlineParameters(const MyMoneyAccount& acc, const MyMoneyKeyValueContainer& kvps); - KURL selectFile(const QString& title, const QString& path, const QString& mask, KFile::Mode mode); + KURL selectFile(const TQString& title, const TQString& path, const TQString& tqmask, KFile::Mode mode); - const MyMoneyAccount& findAccount(const MyMoneyAccount& acc, const MyMoneyAccount& parent) const; + const MyMoneyAccount& findAccount(const MyMoneyAccount& acc, const MyMoneyAccount& tqparent) const; - void createAccount(MyMoneyAccount& newAccount, MyMoneyAccount& parentAccount, MyMoneyAccount& brokerageAccount, MyMoneyMoney openingBal); + void createAccount(MyMoneyAccount& newAccount, MyMoneyAccount& tqparentAccount, MyMoneyAccount& brokerageAccount, MyMoneyMoney openingBal); k_dcop: // Note: Don't use e.g. filename(void) but use filename() because // otherwise the kidl compiler produces uncompilable results. - const QString filename() const; + const TQString filename() const; - void webConnect(const QString&, const QCString& asn_id); + void webConnect(const TQString&, const TQCString& asn_id); /** * Checks if the file with the @a url already exists. If so, @@ -555,10 +556,10 @@ k_dcop: */ bool okToWriteFile(const KURL& url); - // QValueList<MyMoneyAccount> accountList() const; + // TQValueList<MyMoneyAccount> accountList() const; protected: - /** save general Options like all bar positions and status as well as the geometry and the recent file list to the configuration + /** save general Options like all bar positions and status as well as the tqgeometry and the recent file list to the configuration * file */ void saveOptions(void); @@ -607,7 +608,7 @@ protected: void slotCheckSchedules(void); - virtual void resizeEvent(QResizeEvent*); + virtual void resizeEvent(TQResizeEvent*); void createSchedule(MyMoneySchedule newSchedule, MyMoneyAccount& newAccount); @@ -616,7 +617,7 @@ protected: * can be closed if: * * - the balance is zero and - * - all children are already closed and + * - all tqchildren are already closed and * - there is no unfinished schedule referencing the account * * @param acc reference to MyMoneyAccount object in question @@ -634,7 +635,7 @@ protected: * @retval true object has been found * @retval false object is not in list */ - bool payeeInList(const QValueList<MyMoneyPayee>& list, const QString& id) const; + bool payeeInList(const TQValueList<MyMoneyPayee>& list, const TQString& id) const; /** * Mark the selected transactions as provided by @a flag. If @@ -774,7 +775,7 @@ public slots: * * @param text the text that is displayed in the statusbar */ - const QString slotStatusMsg(const QString &text); + const TQString slotStatusMsg(const TQString &text); /** * This method changes the progress bar in the status line according @@ -810,7 +811,7 @@ public slots: * Essentially similiar to the above slot, except this will load the file * from disk first, given the URL. */ - bool slotStatementImport(const QString& url); + bool slotStatementImport(const TQString& url); /** * This slot starts the reconciliation of the currently selected account @@ -857,17 +858,17 @@ public slots: * This slot reparents account @p src to be a child of account @p dest * * @param src account to be reparented - * @param dest new parent + * @param dest new tqparent */ - void slotReparentAccount(const MyMoneyAccount& src, const MyMoneyAccount& dest); + void slotRetqparentAccount(const MyMoneyAccount& src, const MyMoneyAccount& dest); /** * This slot reparents account @p src to be a held at institution @p dest * * @param src account to be reparented - * @param dest new parent institution + * @param dest new tqparent institution */ - void slotReparentAccount(const MyMoneyAccount& src, const MyMoneyInstitution& dest); + void slotRetqparentAccount(const MyMoneyAccount& src, const MyMoneyInstitution& dest); /** * This slot creates a transaction report for the selected account @@ -966,9 +967,9 @@ public slots: void slotSelectSchedule(const MyMoneySchedule& schedule = MyMoneySchedule()); - void slotSelectPayees(const QValueList<MyMoneyPayee>& list); + void slotSelectPayees(const TQValueList<MyMoneyPayee>& list); - void slotSelectBudget(const QValueList<MyMoneyBudget>& list); + void slotSelectBudget(const TQValueList<MyMoneyBudget>& list); void slotSelectTransactions(const KMyMoneyRegister::SelectedTransactions& list); @@ -989,15 +990,15 @@ public slots: /** * Brings up the new category editor and saves the information. - * The dialog will be preset with the name and parent account. + * The dialog will be preset with the name and tqparent account. * * @param account reference of category to be created. The @p name member * should be filled by the caller. The object will be filled * with additional information during the creation process * esp. the @p id member. - * @param parent reference to parent account (defaults to none) + * @param tqparent reference to tqparent account (defaults to none) */ - void slotCategoryNew(MyMoneyAccount& account, const MyMoneyAccount& parent = MyMoneyAccount()); + void slotCategoryNew(MyMoneyAccount& account, const MyMoneyAccount& tqparent = MyMoneyAccount()); /** * This method updates all KAction items to the current state. @@ -1063,7 +1064,7 @@ private: * into references to account @a toId. Returns @a true if at least * one split has been changed, @a false otherwise. */ - bool exchangeAccountInTransaction(MyMoneyTransaction& _t, const QString& fromId, const QString& toId); + bool exchangeAccountInTransaction(MyMoneyTransaction& _t, const TQString& fromId, const TQString& toId); signals: /** @@ -1075,15 +1076,15 @@ signals: /** * This signal is emitted when a payee/list of payees has been selected by * the GUI. If no payee is selected or the selection is removed, - * @p payees is identical to an empty QValueList. This signal is used + * @p payees is identical to an empty TQValueList. This signal is used * by plugins to get information about changes. */ - void payeesSelected(const QValueList<MyMoneyPayee>& payees); + void payeesSelected(const TQValueList<MyMoneyPayee>& payees); /** * This signal is emitted when a transaction/list of transactions has been selected by * the GUI. If no transaction is selected or the selection is removed, - * @p transactions is identical to an empty QValueList. This signal is used + * @p transactions is identical to an empty TQValueList. This signal is used * by plugins to get information about changes. */ void transactionsSelected(const KMyMoneyRegister::SelectedTransactions& transactions); @@ -1097,10 +1098,10 @@ signals: /** * This signal is emitted when a list of budgets has been selected by * the GUI. If no budget is selected or the selection is removed, - * @a budget is identical to an empty QValueList. This signal is used + * @a budget is identical to an empty TQValueList. This signal is used * by plugins to get information about changes. */ - void budgetSelected(const QValueList<MyMoneyBudget>& budget); + void budgetSelected(const TQValueList<MyMoneyBudget>& budget); void budgetRename(void); /** @@ -1137,10 +1138,10 @@ signals: void currencySelected(const MyMoneySecurity& currency); void payeeRename(void); - void payeeCreated(const QString& id); + void payeeCreated(const TQString& id); void currencyRename(void); - void currencyCreated(const QString& id); + void currencyCreated(const TQString& id); void startMatchTransaction(const MyMoneyTransaction& t); void cancelMatchTransaction(void); @@ -1154,10 +1155,10 @@ signals: * @param date the reconciliation date as provided through the dialog * @param startingBalance the starting balance as provided through the dialog * @param endingBalance the ending balance as provided through the dialog - * @param transactionList reference to QValueList of QPair containing all + * @param transactionList reference to TQValueList of TQPair containing all * transaction/split pairs processed by the reconciliation. */ - void accountReconciled(const MyMoneyAccount& account, const QDate& date, const MyMoneyMoney& startingBalance, const MyMoneyMoney& endingBalance, const QValueList<QPair<MyMoneyTransaction, MyMoneySplit> >& transactionList); + void accountReconciled(const MyMoneyAccount& account, const TQDate& date, const MyMoneyMoney& startingBalance, const MyMoneyMoney& endingBalance, const TQValueList<TQPair<MyMoneyTransaction, MyMoneySplit> >& transactionList); public: /** @@ -1169,7 +1170,7 @@ public: * @param actionName name of the action to be retrieved * @return pointer to KAction object (or derivative) */ - KAction* action(const QString& actionName) const; + KAction* action(const TQString& actionName) const; /** * This method is implemented for convenience. It returns a dynamic_cast-ed @@ -1178,7 +1179,7 @@ public: * is not of type KToggleAction, a pointer to a static non-configured * KToggleAction object is returned and a warning is printed to stderr. */ - KToggleAction* toggleAction(const QString& actionName) const; + KToggleAction* toggleAction(const TQString& actionName) const; private: @@ -1195,9 +1196,9 @@ private: /** the configuration object of the application */ KConfig *config; - QMap<QString,KMyMoneyPlugin::ImporterPlugin*> m_importerPlugins; + TQMap<TQString,KMyMoneyPlugin::ImporterPlugin*> m_importerPlugins; - QMap<QString, KMyMoneyPlugin::OnlinePlugin*> m_onlinePlugins; + TQMap<TQString, KMyMoneyPlugin::OnlinePlugin*> m_onlinePlugins; enum backupStateE { BACKUP_IDLE = 0, @@ -1236,11 +1237,11 @@ private: KURL m_fileName; bool m_startDialog; - QString m_mountpoint; + TQString m_mountpoint; KProgress* progressBar; - QString m_statusMsg; + TQString m_statusMsg; int m_progressUpdate; int m_nextUpdate; @@ -1254,7 +1255,7 @@ private: KToolBarPopupAction* m_previousViewButton; KToolBarPopupAction* m_nextViewButton; - QObject* m_pluginInterface; + TQObject* m_pluginInterface; MyMoneyAccount m_selectedAccount; MyMoneyAccount m_reconciliationAccount; @@ -1262,13 +1263,13 @@ private: MyMoneyInstitution m_selectedInstitution; MyMoneySchedule m_selectedSchedule; MyMoneySecurity m_selectedCurrency; - QValueList<MyMoneyPayee> m_selectedPayees; - QValueList<MyMoneyBudget> m_selectedBudgets; + TQValueList<MyMoneyPayee> m_selectedPayees; + TQValueList<MyMoneyBudget> m_selectedBudgets; KMyMoneyRegister::SelectedTransactions m_selectedTransactions; // This is Auto Saving related bool m_autoSaveEnabled; - QTimer* m_autoSaveTimer; + TQTimer* m_autoSaveTimer; int m_autoSavePeriod; bool m_inAutoSaving; @@ -1283,24 +1284,24 @@ private: KEndingBalanceDlg* m_endingBalanceDlg; // id's that need to be remembered - QString m_accountGoto, m_payeeGoto; + TQString m_accountGoto, m_payeeGoto; - QStringList m_additionalGpgKeys; - QLabel* m_additionalKeyLabel; + TQStringList m_additionalGpgKeys; + TQLabel* m_additionalKeyLabel; KPushButton* m_additionalKeyButton; }; extern KMyMoney2App *kmymoney2; -class KMStatus +class KMtqStatus { public: - KMStatus (const QString &text); - ~KMStatus(); + KMtqStatus (const TQString &text); + ~KMtqStatus(); private: - QString m_prevText; + TQString m_prevText; }; -#define KMSTATUS(msg) KMStatus _thisStatus(msg) +#define KMSTATUS(msg) KMtqStatus _thistqStatus(msg) #endif // KMYMONEY2_H |