summaryrefslogtreecommitdiffstats
path: root/src/notefactory.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit631d7b9b0878ca3842496b5719f9c5803335e150 (patch)
treed09fe0c8cd6edfd28c9c7947b0af60ccc75fbb8d /src/notefactory.h
parent33f08e93132a53bf14f41f5f1e567eeea832b336 (diff)
downloadbasket-631d7b9b0878ca3842496b5719f9c5803335e150.tar.gz
basket-631d7b9b0878ca3842496b5719f9c5803335e150.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/basket@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/notefactory.h')
-rw-r--r--src/notefactory.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/notefactory.h b/src/notefactory.h
index de48562..50caa60 100644
--- a/src/notefactory.h
+++ b/src/notefactory.h
@@ -45,41 +45,41 @@ namespace NoteFactory
* In some cases, the returned note can be a group containing several notes or the first note of a chained list.
* The method Basket::TODO() can insert several grouped or chained notes without problem.
*/
- Note* createNoteText( const TQString &text, Basket *tqparent, bool reallyPlainText = false);
- Note* createNoteHtml( const TQString &html, Basket *tqparent);
- Note* createNoteLink( const KURL &url, Basket *tqparent);
- Note* createNoteLink( const KURL &url, const TQString &title, Basket *tqparent);
- Note* createNoteImage( const TQPixmap &image, Basket *tqparent);
- Note* createNoteColor( const TQColor &color, Basket *tqparent);
- Note* createNoteFromText( const TQString &content, Basket *tqparent); // Find automatically the type from the text meaning // TODO: Return Note::List?
- Note* createNoteLauncher( const KURL &url, Basket *tqparent);
- Note* createNoteLauncher( const TQString &command, const TQString &name, const TQString &icon, Basket *tqparent);
- Note* createNoteUnknown( TQMimeSource *source, Basket *tqparent);
+ Note* createNoteText( const TQString &text, Basket *parent, bool reallyPlainText = false);
+ Note* createNoteHtml( const TQString &html, Basket *parent);
+ Note* createNoteLink( const KURL &url, Basket *parent);
+ Note* createNoteLink( const KURL &url, const TQString &title, Basket *parent);
+ Note* createNoteImage( const TQPixmap &image, Basket *parent);
+ Note* createNoteColor( const TQColor &color, Basket *parent);
+ Note* createNoteFromText( const TQString &content, Basket *parent); // Find automatically the type from the text meaning // TODO: Return Note::List?
+ Note* createNoteLauncher( const KURL &url, Basket *parent);
+ Note* createNoteLauncher( const TQString &command, const TQString &name, const TQString &icon, Basket *parent);
+ Note* createNoteUnknown( TQMimeSource *source, Basket *parent);
/** Functions to create derived notes from a content */
- Note* createNoteLinkOrLauncher( const KURL &url, Basket *tqparent);
- Note* copyFileAndLoad( const KURL &url, Basket *tqparent);
- Note* moveFileAndLoad( const KURL &url, Basket *tqparent);
- Note* loadFile( const TQString &fileName, Basket *tqparent); /// << Determine the content of the file (the file SHOULD exists) and return a note of the good type.
- Note* loadFile( const TQString &fileName, NoteType::Id type, Basket *tqparent ); /// << Create a note of type @p type. The file is not obliged to exist.
+ Note* createNoteLinkOrLauncher( const KURL &url, Basket *parent);
+ Note* copyFileAndLoad( const KURL &url, Basket *parent);
+ Note* moveFileAndLoad( const KURL &url, Basket *parent);
+ Note* loadFile( const TQString &fileName, Basket *parent); /// << Determine the content of the file (the file SHOULD exists) and return a note of the good type.
+ Note* loadFile( const TQString &fileName, NoteType::Id type, Basket *parent ); /// << Create a note of type @p type. The file is not obliged to exist.
/** Functions to create a new note from a drop or past event */
- Note* dropNote(TQMimeSource *source, Basket *tqparent,
+ Note* dropNote(TQMimeSource *source, Basket *parent,
bool fromDrop = false, TQDropEvent::Action action = TQDropEvent::Copy, Note *noteSource = 0);
- bool movingNotesInTheSameBasket(TQMimeSource *source, Basket *tqparent, TQDropEvent::Action action);
- Note* dropURLs(KURL::List urls, Basket *tqparent, TQDropEvent::Action action, bool fromDrop);
- Note* decodeContent(TQDataStream &stream, NoteType::Id type, Basket *tqparent); /// << Decode the @p stream to a note or return 0 if a general loadFile() is sufficient.
+ bool movingNotesInTheSameBasket(TQMimeSource *source, Basket *parent, TQDropEvent::Action action);
+ Note* dropURLs(KURL::List urls, Basket *parent, TQDropEvent::Action action, bool fromDrop);
+ Note* decodeContent(TQDataStream &stream, NoteType::Id type, Basket *parent); /// << Decode the @p stream to a note or return 0 if a general loadFile() is sufficient.
void consumeContent(TQDataStream &stream, NoteType::Id type); /// << Decode the @p stream to a note or return 0 if a general loadFile() is sufficient.
/** Functions to create a note file but not load it in a note object */
- TQString createNoteLauncherFile(const TQString &command, const TQString &name, const TQString &icon, Basket *tqparent);
+ TQString createNoteLauncherFile(const TQString &command, const TQString &name, const TQString &icon, Basket *parent);
/** Other useful functions */
- NoteType::Id typeForURL(const KURL &url, Basket *tqparent);
+ NoteType::Id typeForURL(const KURL &url, Basket *parent);
bool maybeText(const KURL &url);
bool maybeHtml(const KURL &url);
bool maybeImageOrAnimation(const KURL &url);
bool maybeAnimation(const KURL &url);
bool maybeSound(const KURL &url);
bool maybeLauncher(const KURL &url);
- TQString fileNameForNewNote(Basket *tqparent, const TQString &wantedName);
- TQString createFileForNewNote(Basket *tqparent, const TQString &extension, const TQString &wantedName = "");
+ TQString fileNameForNewNote(Basket *parent, const TQString &wantedName);
+ TQString createFileForNewNote(Basket *parent, const TQString &extension, const TQString &wantedName = "");
KURL filteredURL(const KURL &url);
TQString titleForURL(const KURL &url);
TQString iconForURL(const KURL &url);
@@ -87,10 +87,10 @@ namespace NoteFactory
bool isIconExist(const TQString &icon);
TQStringList textToURLList(const TQString &text); // @Return { url1, title1, url2, title2, url3, title3... }
/** Insert GUI menu */
- Note* createEmptyNote( NoteType::Id type, Basket *tqparent ); // Insert empty if of type Note::Type
- Note* importKMenuLauncher(Basket *tqparent);
- Note* importIcon(Basket *tqparent);
- Note* importFileContent(Basket *tqparent);
+ Note* createEmptyNote( NoteType::Id type, Basket *parent ); // Insert empty if of type Note::Type
+ Note* importKMenuLauncher(Basket *parent);
+ Note* importIcon(Basket *parent);
+ Note* importFileContent(Basket *parent);
}
#endif // NOTEFACTORY_H