diff options
Diffstat (limited to 'kviewshell/plugins')
38 files changed, 112 insertions, 133 deletions
diff --git a/kviewshell/plugins/djvu/djvumultipage.cpp b/kviewshell/plugins/djvu/djvumultipage.cpp index ae1ab9f6..8cfde527 100644 --- a/kviewshell/plugins/djvu/djvumultipage.cpp +++ b/kviewshell/plugins/djvu/djvumultipage.cpp @@ -67,10 +67,10 @@ DjVuMultiPage::DjVuMultiPage(TQWidget *parentWidget, const char *widgetName, TQO renderModeAction->setCurrentItem(Prefs::renderMode()); - deletePagesAction = new TDEAction(i18n("Delete Pages..."), 0, this, TQT_SLOT(slotDeletePages()), actionCollection(), "delete_pages"); + deletePagesAction = new TDEAction(i18n("Delete Pages..."), 0, this, TQ_SLOT(slotDeletePages()), actionCollection(), "delete_pages"); // change the rendermode - connect(renderModeAction, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setRenderMode(int))); + connect(renderModeAction, TQ_SIGNAL(activated(int)), this, TQ_SLOT(setRenderMode(int))); /* It is very important that this method is called in the constructor. Otherwise tdemultipage does not know how to render diff --git a/kviewshell/plugins/djvu/djvumultipage.h b/kviewshell/plugins/djvu/djvumultipage.h index 2bbc6f4a..83cf8ff1 100644 --- a/kviewshell/plugins/djvu/djvumultipage.h +++ b/kviewshell/plugins/djvu/djvumultipage.h @@ -86,7 +86,7 @@ required. class DjVuMultiPage : public KMultiPage { - Q_OBJECT + TQ_OBJECT public: diff --git a/kviewshell/plugins/djvu/djvurenderer.cpp b/kviewshell/plugins/djvu/djvurenderer.cpp index c9e52c1e..2fac80bb 100644 --- a/kviewshell/plugins/djvu/djvurenderer.cpp +++ b/kviewshell/plugins/djvu/djvurenderer.cpp @@ -27,7 +27,7 @@ #include <tqfileinfo.h> #include <tqimage.h> #include <tqpainter.h> -#include <kapp.h> +#include <tdeapplication.h> #include "GBitmap.h" #include "BSByteStream.h" @@ -403,7 +403,7 @@ bool DjVuRenderer::initializeDocument() for(TQ_UINT16 i=0; i<numPages; i++) { // Keep the GUI updated if (i%100 == 0) - kapp->processEvents(); + tdeApp->processEvents(); GP<DjVuFile> djvuFile = document->get_djvu_file(i); int resolution; @@ -611,7 +611,7 @@ bool DjVuRenderer::convertToPSFile( DjVuToPS &converter, TQString filename, TQVa delete pdialog; // This is to keep the GUI updated. - kapp->processEvents(); + tdeApp->processEvents(); obs->flush(); return !iscancelled; @@ -639,7 +639,7 @@ void DjVuRenderer::deletePages(TQ_UINT16 from, TQ_UINT16 to) pdialog->progressBar()->setTotalSteps(to-from+1); pdialog->progressBar()->setFormat(TQString()); pdialog->show(); - kapp->processEvents(); + tdeApp->processEvents(); } // set the document pointer temporarily to 0, so that no-one tries @@ -658,7 +658,7 @@ void DjVuRenderer::deletePages(TQ_UINT16 from, TQ_UINT16 to) document_new->remove_page(from-1); pdialog->progressBar()->setProgress(i-from); pdialog->progressBar()->setFormat(i18n("deleting page %1").arg(i)); - kapp->processEvents(); + tdeApp->processEvents(); } delete pdialog; } @@ -712,7 +712,7 @@ void DjVuRenderer::printerInfoCallBack(int page_num, int page_count, int, DjVuTo G_THROW("STOP"); // This is to keep the GUI updated. - kapp->processEvents(); + tdeApp->processEvents(); } diff --git a/kviewshell/plugins/djvu/djvurenderer.h b/kviewshell/plugins/djvu/djvurenderer.h index ff615033..8dd61e68 100644 --- a/kviewshell/plugins/djvu/djvurenderer.h +++ b/kviewshell/plugins/djvu/djvurenderer.h @@ -50,7 +50,7 @@ with 10 empty pages of A4 size and a few anchors and bookmarks. class DjVuRenderer : public DocumentRenderer { - Q_OBJECT + TQ_OBJECT public: diff --git a/kviewshell/plugins/djvu/libdjvu/Arrays.h b/kviewshell/plugins/djvu/libdjvu/Arrays.h index 2e16520c..ca0b1771 100644 --- a/kviewshell/plugins/djvu/libdjvu/Arrays.h +++ b/kviewshell/plugins/djvu/libdjvu/Arrays.h @@ -478,10 +478,8 @@ public: subscript range, you must stop using the pointers returned by prior invocation of this conversion operator. */ operator const TYPE* () const; - -#ifndef __MWERKS__ //MCW can't compile operator const TYPE* (); -#endif + /** Insert new elements into an array. This function inserts #howmany# elements at position #n# into the array. The initial value #val# is copied into the new elements. All array elements previously located at subscripts @@ -528,14 +526,12 @@ ArrayBaseT<TYPE>::operator TYPE* () return &((TYPE *) rep->data)[-rep->minlo]; } -#ifndef __MWERKS__ //MCW can't compile template <class TYPE> inline ArrayBaseT<TYPE>::operator const TYPE* () { const ArrayRep * rep=(const ArrayRep *) get(); return &((const TYPE *) rep->data)[-rep->minlo]; } -#endif template <class TYPE> inline ArrayBaseT<TYPE>::operator const TYPE* () const @@ -903,11 +899,7 @@ public: const GP<TYPE>& operator[](int n) const; // -- CONVERSION operator GP<TYPE>* (); - -#ifndef __MWERKS__ //MCW can't compile operator const GP<TYPE>* (); -#endif - operator const GP<TYPE>* () const; // -- ALTERATION void ins(int n, const GP<TYPE> &val, unsigned int howmany=1); @@ -952,13 +944,11 @@ inline DPArray<TYPE>::operator GP<TYPE>* () return (GP<TYPE> *) DArray<GPBase>::operator GPBase*(); } -#ifndef __MWERKS__ //MCW can't compile template<class TYPE> inline DPArray<TYPE>::operator const GP<TYPE>* () { return (const GP<TYPE> *) DArray<GPBase>::operator const GPBase*(); } -#endif template<class TYPE> inline DPArray<TYPE>::operator const GP<TYPE>* () const diff --git a/kviewshell/plugins/djvu/libdjvu/ByteStream.h b/kviewshell/plugins/djvu/libdjvu/ByteStream.h index a92e8aa4..29874faf 100644 --- a/kviewshell/plugins/djvu/libdjvu/ByteStream.h +++ b/kviewshell/plugins/djvu/libdjvu/ByteStream.h @@ -186,7 +186,7 @@ public: {\bf Error reporting}: If #seek()# succeeds, #0# is returned. Otherwise it either returns - #-1# (if #nothrow# is set to #FALSE#) or throws the \Ref{GException} + #-1# (if #nothrow# is set to #false#) or throws the \Ref{GException} exception. */ virtual int seek(long offset, int whence = SEEK_SET, bool nothrow=false); /** Flushes all buffers in the ByteStream. Calling this function diff --git a/kviewshell/plugins/djvu/libdjvu/DataPool.cpp b/kviewshell/plugins/djvu/libdjvu/DataPool.cpp index ab738a56..5766e67e 100644 --- a/kviewshell/plugins/djvu/libdjvu/DataPool.cpp +++ b/kviewshell/plugins/djvu/libdjvu/DataPool.cpp @@ -1268,7 +1268,7 @@ DataPool::get_data(void * buffer, int offset, int sz, int level) // This call to get_data() should return immediately as there MUST // be data in the buffer after wait_for_data(reader) returns - // or eof_flag should be TRUE + // or eof_flag should be true return get_data(buffer, reader->offset, reader->size, level); } return 0; diff --git a/kviewshell/plugins/djvu/libdjvu/DataPool.h b/kviewshell/plugins/djvu/libdjvu/DataPool.h index ffd99ec5..c6a4e672 100644 --- a/kviewshell/plugins/djvu/libdjvu/DataPool.h +++ b/kviewshell/plugins/djvu/libdjvu/DataPool.h @@ -139,10 +139,10 @@ class ByteStream; Functions like \Ref{get_data}() or \Ref{get_stream}() can be used to obtain direct or sequential access to the data. As - long as \Ref{is_eof}() is #FALSE#, #DataPool# will block every + long as \Ref{is_eof}() is #false#, #DataPool# will block every reader, which is trying to read unavailable data until it really becomes available. But as soon as \Ref{is_eof}() is - #TRUE#, any attempt to read non-existing data will read #0# bytes. + #true#, any attempt to read non-existing data will read #0# bytes. Taking into account the fact, that #DataPool# was designed to store DjVu files, which are in IFF formats, it becomes possible @@ -205,7 +205,7 @@ class ByteStream; The usage of \Ref{add_data}() functions is meaningless and is prohibited. - \Ref{is_eof}() function always returns #TRUE#. Thus \Ref{set_eof}() + \Ref{is_eof}() function always returns #true#. Thus \Ref{set_eof}() us meaningless and does nothing. \Ref{get_length}() function always returns the file size. @@ -300,12 +300,12 @@ public: /** Tells the #DataPool# to stop serving readers. - If #only_blocked# flag is #TRUE# then only those requests will + If #only_blocked# flag is #true# then only those requests will be processed, which would not block. Any attempt to get non-existing data would result in a #STOP# exception (instead of blocking until data is available). - If #only_blocked# flag is #FALSE# then any further attempt to read + If #only_blocked# flag is #false# then any further attempt to read from this #DataPool# (as well as from any #DataPool# connected to this one) will result in a #STOP# exception. */ void stop(bool only_blocked=false); @@ -388,11 +388,11 @@ public: immediately. If there is no data available, and \Ref{is_eof}() returns - #FALSE#, the reader (and the thread) will be {\bf blocked} + #false#, the reader (and the thread) will be {\bf blocked} until the data actually arrives. Please note, that since the reader is blocked, it should run in a separate thread so that other threads have a chance to call \Ref{add_data}(). - If there is no data available, but \Ref{is_eof}() is #TRUE# + If there is no data available, but \Ref{is_eof}() is #true# the behavior is different and depends on the #DataPool#'s estimate of the file size: \begin{itemize} @@ -430,22 +430,22 @@ public: /** @name State querying functions. */ //@{ - /** Returns #TRUE# if this #DataPool# is connected to another #DataPool# + /** Returns #true# if this #DataPool# is connected to another #DataPool# or to a file. */ bool is_connected(void) const; - /** Returns #TRUE# if all data available for offsets from + /** Returns #true# if all data available for offsets from #start# till #start+length-1#. If #length# is negative, the range is assumed to extend up to the end of the #DataPool#. This function works both for connected and not connected #DataPool#s. - Once it returned #TRUE# for some offsets range, you can be + Once it returned #true# for some offsets range, you can be sure that the subsequent \Ref{get_data}() request will not block. */ bool has_data(int start, int length); - /* Returns #TRUE# if no more data is planned to be added. + /* Returns #true# if no more data is planned to be added. - {\bf Note:} This function always returns #TRUE# when the #DataPool# + {\bf Note:} This function always returns #true# when the #DataPool# has been initialized with a file name. */ bool is_eof(void) const {return eof_flag;} @@ -495,7 +495,7 @@ public: given data range. {\bf Note:} The callback may be called immediately if all - data for the given range is already available or #EOF# is #TRUE#. + data for the given range is already available or #EOF# is #true#. @param start The beginning of the range for which all data should be available diff --git a/kviewshell/plugins/djvu/libdjvu/DjVmDir.h b/kviewshell/plugins/djvu/libdjvu/DjVmDir.h index 80a93b40..216ded79 100644 --- a/kviewshell/plugins/djvu/libdjvu/DjVmDir.h +++ b/kviewshell/plugins/djvu/libdjvu/DjVmDir.h @@ -300,14 +300,14 @@ public: return (flags & TYPE_MASK)==PAGE; } - /** Returns #TRUE# if this file is included into some other files of + /** Returns #true# if this file is included into some other files of this document. */ bool is_include(void) const { return (flags & TYPE_MASK)==INCLUDE; } - /** Returns #TRUE# if this file contains thumbnails for the document pages. */ + /** Returns #true# if this file contains thumbnails for the document pages. */ bool is_thumbnails(void) const { return (flags & TYPE_MASK)==THUMBNAILS; diff --git a/kviewshell/plugins/djvu/libdjvu/DjVmDir0.h b/kviewshell/plugins/djvu/libdjvu/DjVmDir0.h index 289a63c6..16b25864 100644 --- a/kviewshell/plugins/djvu/libdjvu/DjVmDir0.h +++ b/kviewshell/plugins/djvu/libdjvu/DjVmDir0.h @@ -135,7 +135,7 @@ public: /** Creates a new file record with name #name# at offset #offset# and size #size#, which is in IFF format if - #iff_file# is #TRUE#. */ + #iff_file# is #true#. */ void add_file(const GUTF8String &name, bool iff_file, int offset=-1, int size=-1); diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuAnno.h b/kviewshell/plugins/djvu/libdjvu/DjVuAnno.h index 54c91e83..dde4b63a 100644 --- a/kviewshell/plugins/djvu/libdjvu/DjVuAnno.h +++ b/kviewshell/plugins/djvu/libdjvu/DjVuAnno.h @@ -151,10 +151,10 @@ public: special cases. \end{description} */ int mode; - /**Qt::Horizontal page alignment. Possible values are #ALIGN_LEFT#, + /** Horizontal page alignment. Possible values are #ALIGN_LEFT#, #ALIGN_CENTER#, #ALIGN_RIGHT# and #ALIGN_UNSPEC#. */ alignment hor_align; - /**Qt::Vertical page alignment. Possible values are #ALIGN_TOP#, + /** Vertical page alignment. Possible values are #ALIGN_TOP#, #ALIGN_CENTER#, #ALIGN_BOTTOM# and #ALIGN_UNSPEC#. */ alignment ver_align; /** List of defined map areas. They may be just areas of highlighting @@ -165,7 +165,7 @@ public: /** Metainformations like title, author ... */ GMap<GUTF8String,GUTF8String> metadata; #endif - /** Returns TRUE if no features are specified or specified features + /** Returns true if no features are specified or specified features are not different from default ones */ bool is_empty(void) const; diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuDocEditor.cpp b/kviewshell/plugins/djvu/libdjvu/DjVuDocEditor.cpp index 1c6a3445..25eac90c 100644 --- a/kviewshell/plugins/djvu/libdjvu/DjVuDocEditor.cpp +++ b/kviewshell/plugins/djvu/libdjvu/DjVuDocEditor.cpp @@ -519,8 +519,8 @@ DjVuDocEditor::insert_file(const GURL &file_url, const GUTF8String &parent_id, // // Also, if a name is in name2id, we will not insert that file again. // - // Will return TRUE if the file has been successfully inserted. - // FALSE, if the file contains NDIR chunk and has been skipped. + // Will return true if the file has been successfully inserted. + // false, if the file contains NDIR chunk and has been skipped. bool DjVuDocEditor::insert_file(const GURL &file_url, bool is_page, int & file_pos, GMap<GUTF8String, GUTF8String> & name2id, @@ -968,7 +968,7 @@ DjVuDocEditor::remove_file(const GUTF8String &id, bool remove_unref, // If will also remove all INCL chunks in parent files pointing // to this one // - // Finally, if remove_unref is TRUE, we will go down the files + // Finally, if remove_unref is true, we will go down the files // hierarchy removing every file, which becomes unreferenced. // // ref_map will be used to find out list of parents referencing diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuDocEditor.h b/kviewshell/plugins/djvu/libdjvu/DjVuDocEditor.h index c7474cb3..0d5cd14c 100644 --- a/kviewshell/plugins/djvu/libdjvu/DjVuDocEditor.h +++ b/kviewshell/plugins/djvu/libdjvu/DjVuDocEditor.h @@ -141,7 +141,7 @@ public: learn the original format of the document being edited. */ int get_orig_doc_type(void) const; - /** Returns #TRUE# if the document can be "saved" (sometimes + /** Returns #true# if the document can be "saved" (sometimes the only possibility is to do a "save as"). The reason why we have this function is that #DjVuDocEditor# can save documents in new formats only (#BUNDLED# and #INDIRECT#). @@ -178,7 +178,7 @@ public: is "bundled" into one file and this file is written into the passed stream. - If #force_djvm# is #TRUE# then even one page documents will be + If #force_djvm# is #true# then even one page documents will be saved in the #DJVM BUNDLED# format (inside a #FORM:DJVM#); {\bf Plugin Warning}. This function will read contents of the whole @@ -257,11 +257,11 @@ public: void insert_group(const GList<GURL> & furl_list, int page_num=-1, void (* refresh_cb)(void *)=0, void * cl_data=0); /** Removes the specified page from the document. If #remove_unref# - is #TRUE#, the function will also remove from the document any file, + is #true#, the function will also remove from the document any file, which became unreferenced due to the page's removal */ void remove_page(int page_num, bool remove_unref=true); /** Removes the specified pages from the document. If #remove_unref# - is #TRUE#, the function will also remove from the document any file, + is #true#, the function will also remove from the document any file, which became unreferenced due to the pages' removal */ void remove_pages(const GList<int> & page_list, bool remove_unref=true); /** Removes a DjVu file with the specified #id#. @@ -269,7 +269,7 @@ public: If some other files include this file, the corresponding #INCL# chunks will be removed to avoid dead links. - If #remove_unref# is #TRUE#, the function will also remove every + If #remove_unref# is #true#, the function will also remove every file, which will become unreferenced after the removal of this file. */ void remove_file(const GUTF8String &id, bool remove_unref=true); /** Makes page number #page_num# to be #new_page_num#. If #new_page_num# @@ -351,8 +351,8 @@ public: the document already has thumbnail images for some of its pages, the callback will be called #pages_num# times, where #pages_num# is the total number of pages in the document. - The callback should return #FALSE# if thumbnails generating - should proceed. #TRUE# will stop it. */ + The callback should return #false# if thumbnails generating + should proceed. #true# will stop it. */ void generate_thumbnails(int thumb_size, bool (* cb)(int page_num, void *)=0, void * cl_data=0); @@ -386,7 +386,7 @@ public: GURL get_doc_url(void) const; - /** Returns TRUE if #class_name# is #"DjVuDocEditor"#, + /** Returns true if #class_name# is #"DjVuDocEditor"#, #"DjVuDocument"# or #"DjVuPort"# */ virtual bool inherits(const GUTF8String &class_name) const; virtual GP<DataPool> request_data(const DjVuPort * source, const GURL & url); diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuDocument.h b/kviewshell/plugins/djvu/libdjvu/DjVuDocument.h index 68376e39..9730d5b8 100644 --- a/kviewshell/plugins/djvu/libdjvu/DjVuDocument.h +++ b/kviewshell/plugins/djvu/libdjvu/DjVuDocument.h @@ -376,7 +376,7 @@ public: void init(const GURL & url, GP<DjVuPort> port=0, DjVuFileCache * cache=0); - /** Returns #TRUE# if the initialization thread finished (does not + /** Returns #true# if the initialization thread finished (does not matter successfully or not). As soon as it happens, the document becomes completely initialized and its every function should work properly. Please refer to the description of \Ref{init}() function @@ -395,21 +395,21 @@ public: completes before the \Ref{init}() function returns. */ bool is_init_complete(void) const; - /** Returns #TRUE# is the initialization thread finished successfully. + /** Returns #true# is the initialization thread finished successfully. See \Ref{is_init_complete}() and \Ref{wait_for_complete_init}() for more details. */ bool is_init_ok(void) const; /** Forces compression with the next save_as function. */ void set_needs_compression(void); - /** Returns #TRUE# if there are uncompressed pages in this document. */ + /** Returns #true# if there are uncompressed pages in this document. */ bool needs_compression(void) const; - /** Returns #TRUE# if this file must be renamed before saving. */ + /** Returns #true# if this file must be renamed before saving. */ bool needs_rename(void) const; - /** Returns #TRUE# if this file must be renamed before saving. */ + /** Returns #true# if this file must be renamed before saving. */ bool can_compress(void) const; - /** Returns #TRUE# is the initialization thread failed. + /** Returns #true# is the initialization thread failed. See \Ref{is_init_complete}() and \Ref{wait_for_complete_init}() for more details. */ @@ -441,7 +441,7 @@ public: returns. */ long get_doc_flags(void) const; - /** Returns #TRUE# if the document is in bundled format (either in + /** Returns #true# if the document is in bundled format (either in #DjVuDocument::OLD_BUNDLED# or #DjVuDocument::BUNDLED# formats). */ bool is_bundled(void) const; @@ -560,7 +560,7 @@ public: #page_num#. If caching is enabled, and there is a {\em fully decoded} \Ref{DjVuFile} in the cache, the image will be reused and will be returned fully decoded. Otherwise, if multi-threaded behavior - is allowed, and #sync# is set to #FALSE#, the decoding will be + is allowed, and #sync# is set to #false#, the decoding will be started in a separate thread, which enables to do progressive redisplay. Thus, in this case the image returned may be partially decoded. @@ -592,7 +592,7 @@ public: returns. @param page_num Number of the page to be decoded - @param sync When set to #TRUE# the function will not return + @param sync When set to #true# the function will not return until the page is completely decoded. Otherwise, in a multi-threaded program, this function will start decoding in a new thread and will return @@ -635,7 +635,7 @@ public: \Ref{page_to_url}(), \Ref{id_to_url}() functions start working properly. - If #dont_create# is #FALSE# the function will return the file + If #dont_create# is #false# the function will return the file only if it already exists. {\bf Note:} To wait for the initialization to complete use @@ -657,7 +657,7 @@ public: If so, it just calls the #get_djvu_file()# function above. If ID is #ZERO# or just empty, page number #-1# is assumed. - If #dont_create# is #FALSE# the function will return the file + If #dont_create# is #false# the function will return the file only if it already exists. */ GP<DjVuFile> get_djvu_file(const GUTF8String &id, bool dont_create=false); GP<DjVuFile> get_djvu_file(const GURL &url, bool dont_create=false); @@ -714,7 +714,7 @@ public: is "bundled" into one file and this file is written into the passed stream. - If #force_djvm# is #TRUE# then even one page documents will be + If #force_djvm# is #true# then even one page documents will be saved in the #DJVM BUNDLED# format (inside a #FORM:DJVM#); {\bf Plugin Warning}. This function will read contents of the whole @@ -791,7 +791,7 @@ public: /// Create a complete DjVuXML file. void writeDjVuXML(const GP<ByteStream> &gstr_out,int flags) const; - /// Returns TRUE if #class_name# is #"DjVuDocument"# or #"DjVuPort"# + /// Returns true if #class_name# is #"DjVuDocument"# or #"DjVuPort"# virtual bool inherits(const GUTF8String &class_name) const; /// Converts the specified id to a URL. diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuFile.cpp b/kviewshell/plugins/djvu/libdjvu/DjVuFile.cpp index 415992d4..21a33450 100644 --- a/kviewshell/plugins/djvu/libdjvu/DjVuFile.cpp +++ b/kviewshell/plugins/djvu/libdjvu/DjVuFile.cpp @@ -332,10 +332,10 @@ DjVuFile::wait_for_chunk(void) bool DjVuFile::wait_for_finish(bool self) -// if self==TRUE, will block until decoding of this file is over -// if self==FALSE, will block until decoding of a child (direct +// if self==true, will block until decoding of this file is over +// if self==false, will block until decoding of a child (direct // or indirect) is over. -// Will return FALSE if there is nothing to wait for. TRUE otherwise +// Will return false if there is nothing to wait for. true otherwise { DEBUG_MSG("DjVuFile::wait_for_finish(): self=" << self <<"\n"); DEBUG_MAKE_INDENT(3); diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuFile.h b/kviewshell/plugins/djvu/libdjvu/DjVuFile.h index 5648184e..e8ec6298 100644 --- a/kviewshell/plugins/djvu/libdjvu/DjVuFile.h +++ b/kviewshell/plugins/djvu/libdjvu/DjVuFile.h @@ -339,21 +339,21 @@ public: \Ref{get_included_files}() is OK. \end{itemize} */ long get_flags(void) const; - /// Returns #TRUE# if the file is being decoded. + /// Returns #true# if the file is being decoded. bool is_decoding(void) const; - /// Returns #TRUE# if decoding of the file has finished successfully. + /// Returns #true# if decoding of the file has finished successfully. bool is_decode_ok(void) const; - /// Returns #TRUE# if decoding of the file has failed. + /// Returns #true# if decoding of the file has failed. bool is_decode_failed(void) const; - /** Returns #TRUE# if decoding of the file has been stopped by + /** Returns #true# if decoding of the file has been stopped by \Ref{stop_decode}() function. */ bool is_decode_stopped(void) const; - /// Returns #TRUE# if this file has received all data. + /// Returns #true# if this file has received all data. bool is_data_present(void) const; - /** Returns #TRUE# if this file {\bf and} all included files have + /** Returns #true# if this file {\bf and} all included files have received all data. */ bool is_all_data_present(void) const; - /** Returns #TRUE# if all included files have been created. Only when + /** Returns #true# if all included files have been created. Only when this function returns 1, the \Ref{get_included_files}() returns the correct information. */ bool are_incl_files_created(void) const; @@ -388,11 +388,11 @@ public: Depending on the value of #only_blocked# flag this works as follows: \begin{itemize} - \item If #only_blocked# is #TRUE#, the function will make sure, + \item If #only_blocked# is #true#, the function will make sure, that any further access to the file's data will result in a #STOP# exception if the desired data is not available (and the thread would normally block). - \item If #only_blocked# is #FALSE#, then {\bf any} further + \item If #only_blocked# is #false#, then {\bf any} further access to the file's data will result in immediate #STOP# exception. \end{itemize} @@ -440,11 +440,11 @@ public: {\bf Warning.} Included files are normally created during decoding. Before that they do not exist. If you call this function at - that time and set #only_created# to #FALSE# then it will have to + that time and set #only_created# to #false# then it will have to read all the data from this file in order to find #INCL# chunks, which may block your application, if not all data is available. - @param only_created If #TRUE#, the file will not try to process + @param only_created If #true#, the file will not try to process #INCL# chunks and load referenced files. It will return just those files, which have already been created during the decoding procedure. */ @@ -485,7 +485,7 @@ public: page file. {\bf Summary:} This function will return complete annotations only - when the \Ref{is_all_data_present}() returns #TRUE#. */ + when the \Ref{is_all_data_present}() returns #true#. */ GP<ByteStream> get_merged_anno(int * max_level_ptr=0); /** Returns the annotation chunks (#"ANTa"# and #"ANTz"#). This @@ -495,7 +495,7 @@ public: been found, #ZERO# will be returned. {\bf Summary:} This function will return complete annotations - only when the \Ref{is_all_data_present}() returns #TRUE#. */ + only when the \Ref{is_all_data_present}() returns #true#. */ GP<ByteStream> get_anno(void); /** Returns the text chunks (#"TXTa"# and #"TXTz"#). This function may @@ -505,7 +505,7 @@ public: #ZERO# will be returned. {\bf Summary:} This function will return complete hidden text layers - only when the \Ref{is_all_data_present}() returns #TRUE#. */ + only when the \Ref{is_all_data_present}() returns #true#. */ GP<ByteStream> get_text(void); /** Returns the meta chunks (#"METa"# and #"METz"#). This function may @@ -515,7 +515,7 @@ public: will be returned. {\bf Summary:} This function will return complete meta data only - when the \Ref{is_all_data_present}() returns #TRUE#. */ + when the \Ref{is_all_data_present}() returns #true#. */ GP<ByteStream> get_meta(void); /** Goes down the hierarchy of #DjVuFile#s and merges their annotations. @@ -537,17 +537,17 @@ public: /// Clears the meta data. void remove_meta(void); - /** Returns #TRUE# if the file contains annotation chunks. + /** Returns #true# if the file contains annotation chunks. Known annotation chunks at the time of writing this help are: {\bf ANTa}, {\bf ANTz}, {\bf FORM:ANNO}. */ bool contains_anno(void); - /** Returns #TRUE# if the file contains hiddentext chunks. + /** Returns #true# if the file contains hiddentext chunks. Known hiddentext chunks at the time of writing this help are: {\bf TXTa}, and {\bf TXTz}. */ bool contains_text(void); - /** Returns #TRUE# if the file contains metadata chunks. + /** Returns #true# if the file contains metadata chunks. Known metadata chunks at the time of writing this help are: {\bf METa}, and {\bf METz}. */ bool contains_meta(void); diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuFileCache.h b/kviewshell/plugins/djvu/libdjvu/DjVuFileCache.h index c6b1b70b..c1151c2d 100644 --- a/kviewshell/plugins/djvu/libdjvu/DjVuFileCache.h +++ b/kviewshell/plugins/djvu/libdjvu/DjVuFileCache.h @@ -151,12 +151,12 @@ public: int get_max_size(void) const; /** Enables or disables the cache. See \Ref{is_enabled}() for details - @param en - If {\em en} is TRUE, the cache will be enabled. + @param en - If {\em en} is true, the cache will be enabled. Otherwise it will be disabled. */ void enable(bool en); - /** Returns #TRUE# if the cache is enabled, #FALSE# otherwise. + /** Returns #true# if the cache is enabled, #false# otherwise. When a cache is disabled, \Ref{add_file}(), and \Ref{del_file}() do nothing. But the {\em maximum size} is preserved inside the class so that next time the cache is enabled, it will diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuImage.h b/kviewshell/plugins/djvu/libdjvu/DjVuImage.h index f898c5a6..696fe4ff 100644 --- a/kviewshell/plugins/djvu/libdjvu/DjVuImage.h +++ b/kviewshell/plugins/djvu/libdjvu/DjVuImage.h @@ -217,7 +217,7 @@ public: /** The decoder is now started when the image is created by function \Ref{DjVuDocument::get_page} in \Ref{DjVuDocument}. This function waits until the decoding thread terminates - and returns TRUE if the image has been successfully decoded. */ + and returns true if the image has been successfully decoded. */ bool wait_for_complete_decode(void); //@} diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuPort.h b/kviewshell/plugins/djvu/libdjvu/DjVuPort.h index d7700997..8e1af703 100644 --- a/kviewshell/plugins/djvu/libdjvu/DjVuPort.h +++ b/kviewshell/plugins/djvu/libdjvu/DjVuPort.h @@ -162,7 +162,7 @@ public: to help to identify the source of the request. For example, \Ref{DjVuFile} is also derived from #DjVuPort#. In order for the receiver to recognize the sender, the \Ref{DjVuFile} should - override this function to return #TRUE# when the #class_name# + override this function to return #true# when the #class_name# is either #DjVuPort# or #DjVuFile# */ virtual bool inherits(const GUTF8String &class_name) const; diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuText.cpp b/kviewshell/plugins/djvu/libdjvu/DjVuText.cpp index 152efa2c..fc69e154 100644 --- a/kviewshell/plugins/djvu/libdjvu/DjVuText.cpp +++ b/kviewshell/plugins/djvu/libdjvu/DjVuText.cpp @@ -87,7 +87,7 @@ static inline TYPE min(TYPE a,TYPE b) { return (a<b)?a:b; } //******************************** DjVuTXT ********************************** //*************************************************************************** -const char DjVuTXT::end_of_column = 013; // VT:Qt::Vertical Tab +const char DjVuTXT::end_of_column = 013; // VT: Vertical Tab const char DjVuTXT::end_of_region = 035; // GS: Group Separator const char DjVuTXT::end_of_paragraph = 037; // US: Unit Separator const char DjVuTXT::end_of_line = 012; // LF: Line Feed diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuText.h b/kviewshell/plugins/djvu/libdjvu/DjVuText.h index abd57a62..6f23c3b3 100644 --- a/kviewshell/plugins/djvu/libdjvu/DjVuText.h +++ b/kviewshell/plugins/djvu/libdjvu/DjVuText.h @@ -171,13 +171,13 @@ public: control character: \begin{tabular}{lll} {\bf Name} & {\bf Octal} & {\bf Ascii name} \\\hline\\ - {\tt DjVuText::end_of_column} & 013 & VT,Qt::Vertical Tab \\ + {\tt DjVuText::end_of_column} & 013 & VT, Vertical Tab \\ {\tt DjVuText::end_of_region} & 035 & GS, Group Separator \\ {\tt DjVuText::end_of_paragraph} & 037 & US, Unit Separator \\ {\tt DjVuText::end_of_line} & 012 & LF: Line Feed \end{tabular} */ GUTF8String textUTF8; - static const char end_of_column ; // VT:Qt::Vertical Tab + static const char end_of_column ; // VT: Vertical Tab static const char end_of_region ; // GS: Group Separator static const char end_of_paragraph ; // US: Unit Separator static const char end_of_line ; // LF: Line Feed diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuToPS.h b/kviewshell/plugins/djvu/libdjvu/DjVuToPS.h index 7c3efb2e..f4293afe 100644 --- a/kviewshell/plugins/djvu/libdjvu/DjVuToPS.h +++ b/kviewshell/plugins/djvu/libdjvu/DjVuToPS.h @@ -121,11 +121,11 @@ public: \item[Mode] ({\em COLOR}, {\em FORE}, {\em BACK}, or {\em BW}) Specifies how the \Ref{DjVuImage}s will be rendered (all layers, foreground layer, background layer, and the mask respectively) - \item[Color] ({\em TRUE} or {\em FALSE}). Choosing {\em FALSE} + \item[Color] ({\em true} or {\em false}). Choosing {\em false} converts color images to gray scale. \item[Gamma] Printer color correction. This parameter ranges from #0.3# to #5.0#. - \item[sRGB] ({\em TRUE} or {\em FALSE}). Choosing {\em TRUE} + \item[sRGB] ({\em true} or {\em false}). Choosing {\em true} enables accurate sRGB color calibration. This option only works with language level 2. When this is set, gamma correction is clamped to #2.2#. @@ -228,13 +228,13 @@ public: This parameter does {\bf not} affect the size of output file */ int get_copies(void) const { return copies; } - /** Returns #TRUE# if there will be a gray frame */ + /** Returns #true# if there will be a gray frame */ bool get_frame(void) const { return frame; } - /** Returns #TRUE# if there will be a gray frame */ + /** Returns #true# if there will be a gray frame */ bool get_cropmarks(void) const { return cropmarks; } - /** Returns #TRUE# if there will be a shadow text printed */ + /** Returns #true# if there will be a shadow text printed */ bool get_text(void) const { return text; } /** Returns the booklet mode */ diff --git a/kviewshell/plugins/djvu/libdjvu/GContainer.h b/kviewshell/plugins/djvu/libdjvu/GContainer.h index 9a298b04..5b55b15d 100644 --- a/kviewshell/plugins/djvu/libdjvu/GContainer.h +++ b/kviewshell/plugins/djvu/libdjvu/GContainer.h @@ -96,8 +96,6 @@ namespace DJVU { #define GCONTAINER_NO_MEMBER_TEMPLATES 1 #elif defined(_MSC_VER) && !defined(__ICL) #define GCONTAINER_NO_MEMBER_TEMPLATES 1 -#elif defined(__MWERKS__) -#define GCONTAINER_NO_MEMBER_TEMPLATES 1 #else #define GCONTAINER_NO_MEMBER_TEMPLATES 0 #endif diff --git a/kviewshell/plugins/djvu/libdjvu/GException.h b/kviewshell/plugins/djvu/libdjvu/GException.h index 822b668e..41a8b9a8 100644 --- a/kviewshell/plugins/djvu/libdjvu/GException.h +++ b/kviewshell/plugins/djvu/libdjvu/GException.h @@ -229,9 +229,6 @@ private: #if defined(_MSC_VER) #define CPP_SUPPORTS_EXCEPTIONS #endif -#if defined(__MWERKS__) -#define CPP_SUPPORTS_EXCEPTIONS -#endif #if defined(__EXCEPTIONS) #define CPP_SUPPORTS_EXCEPTIONS #endif diff --git a/kviewshell/plugins/djvu/libdjvu/GIFFManager.h b/kviewshell/plugins/djvu/libdjvu/GIFFManager.h index 921a7c64..b379e556 100644 --- a/kviewshell/plugins/djvu/libdjvu/GIFFManager.h +++ b/kviewshell/plugins/djvu/libdjvu/GIFFManager.h @@ -127,13 +127,13 @@ public: GUTF8String get_full_name(void) const; /// Returns the chunk type, like #CAT# for chunk #CAT:DJVU# GUTF8String get_type(void) const; - /// Returns TRUE if the chunk may contain other chunks or FALSE otherwise + /// Returns true if the chunk may contain other chunks or false otherwise bool is_container(void) const; /** Sets the chunk name. The {\em name} may not contain dots or brackets, but {\bf may} contain colons. */ void set_name(GUTF8String name); /** Parses the {\em name} probably containing colon and compares it - with its own name returning TRUE if they are the same */ + with its own name returning true if they are the same */ bool check_name(GUTF8String name); /** Adds the {\em chunk} to the chunks list at position {\em order}. diff --git a/kviewshell/plugins/djvu/libdjvu/GMapAreas.h b/kviewshell/plugins/djvu/libdjvu/GMapAreas.h index 46319147..439829d2 100644 --- a/kviewshell/plugins/djvu/libdjvu/GMapAreas.h +++ b/kviewshell/plugins/djvu/libdjvu/GMapAreas.h @@ -198,7 +198,7 @@ public: \item #SHADOW_EOUT_BORDER# - The opposite of #SHADOW_EIN_BORDER#. \end{itemize} */ BorderType border_type; - /** If #TRUE#, the border will be made always visible. Otherwise + /** If #true#, the border will be made always visible. Otherwise it will be drawn when the mouse moves over the map area. */ bool border_always_visible; /// Border color (when relevant) in #0x00RRGGBB# format diff --git a/kviewshell/plugins/djvu/libdjvu/GOS.cpp b/kviewshell/plugins/djvu/libdjvu/GOS.cpp index 515c9e23..223e63ac 100644 --- a/kviewshell/plugins/djvu/libdjvu/GOS.cpp +++ b/kviewshell/plugins/djvu/libdjvu/GOS.cpp @@ -100,12 +100,6 @@ # include <unistd.h> #endif -// -- TRUE FALSE -#undef TRUE -#undef FALSE -#define TRUE 1 -#define FALSE 0 - // -- MAXPATHLEN #ifndef MAXPATHLEN # ifdef _MAX_PATH diff --git a/kviewshell/plugins/djvu/libdjvu/GRect.h b/kviewshell/plugins/djvu/libdjvu/GRect.h index 67c0ce94..518691ea 100644 --- a/kviewshell/plugins/djvu/libdjvu/GRect.h +++ b/kviewshell/plugins/djvu/libdjvu/GRect.h @@ -131,7 +131,7 @@ namespace DJVU { class GRect { public: - /** #Qt::OrientationBits# defines 3 mutually exclusive + /** #OrientationBits# defines 3 mutually exclusive bits to indicate the image orientation. There are four possible rotation values for an image @@ -149,7 +149,7 @@ public: }; /** #Orientations# defines all 8 possible orientations, using - the three \Ref{Qt::OrientationBits}. + the three \Ref{OrientationBits}. \begin{itemize} \item {\em TDLRNR} for Top Down, Left to Right, No Rotation. \item {\em BULRNR} for Bottom Up, Left to Right, No Rotation. diff --git a/kviewshell/plugins/djvu/libdjvu/GString.h b/kviewshell/plugins/djvu/libdjvu/GString.h index a605de1d..96634c29 100644 --- a/kviewshell/plugins/djvu/libdjvu/GString.h +++ b/kviewshell/plugins/djvu/libdjvu/GString.h @@ -510,9 +510,9 @@ public: character of a string is numbered zero. Negative positions represent characters relative to the end of the string. */ char operator[] (int n) const; - /// Returns #TRUE# if the string contains an integer number. + /// Returns #true# if the string contains an integer number. bool is_int(void) const; - /// Returns #TRUE# if the string contains a float number. + /// Returns #true# if the string contains a float number. bool is_float(void) const; /** Converts strings between native & UTF8 **/ diff --git a/kviewshell/plugins/djvu/libdjvu/GThreads.h b/kviewshell/plugins/djvu/libdjvu/GThreads.h index 1e43ea80..ac83d8f8 100644 --- a/kviewshell/plugins/djvu/libdjvu/GThreads.h +++ b/kviewshell/plugins/djvu/libdjvu/GThreads.h @@ -525,8 +525,8 @@ public: /** If all bits mentioned in #set_mask# are set in the flags and all bits mentioned in #clr_mask# are cleared in the flags, it sets all bits from #set_mask1# in the flags, clears all flags from - #clr_mask1# in the flags and returns #TRUE#. Otherwise returns - #FALSE#. */ + #clr_mask1# in the flags and returns #true#. Otherwise returns + #false#. */ bool test_and_modify(long set_mask, long clr_mask, long set_mask1, long clr_mask1); diff --git a/kviewshell/plugins/djvu/libdjvu/GURL.cpp b/kviewshell/plugins/djvu/libdjvu/GURL.cpp index 812f1d22..07853b55 100644 --- a/kviewshell/plugins/djvu/libdjvu/GURL.cpp +++ b/kviewshell/plugins/djvu/libdjvu/GURL.cpp @@ -212,7 +212,7 @@ hexval(char c) static bool is_argument(const char * start) - // Returns TRUE if 'start' points to the beginning of an argument + // Returns true if 'start' points to the beginning of an argument // (either hash or CGI) { // return (*start=='#' || *start=='?' || *start=='&' || *start==';'); @@ -221,7 +221,7 @@ is_argument(const char * start) static bool is_argument_sep(const char * start) - // Returns TRUE if 'start' points to the beginning of an argument + // Returns true if 'start' points to the beginning of an argument // (either hash or CGI) { return (*start=='&')||(*start == ';'); diff --git a/kviewshell/plugins/djvu/libdjvu/GURL.h b/kviewshell/plugins/djvu/libdjvu/GURL.h index 077da24a..d353c4d1 100644 --- a/kviewshell/plugins/djvu/libdjvu/GURL.h +++ b/kviewshell/plugins/djvu/libdjvu/GURL.h @@ -276,10 +276,10 @@ public: // GURL operator+(const GUTF8String &name) const; //@} - /// Returns TRUE if #gurl1# and #gurl2# are the same + /// Returns true if #gurl1# and #gurl2# are the same bool operator==(const GURL & gurl2) const; - /// Returns TRUE if #gurl1# and #gurl2# are different + /// Returns true if #gurl1# and #gurl2# are different bool operator!=(const GURL & gurl2) const; /// Assignment operator diff --git a/kviewshell/plugins/djvu/libdjvu/JB2Image.h b/kviewshell/plugins/djvu/libdjvu/JB2Image.h index d3f2acaa..4619445e 100644 --- a/kviewshell/plugins/djvu/libdjvu/JB2Image.h +++ b/kviewshell/plugins/djvu/libdjvu/JB2Image.h @@ -196,9 +196,9 @@ class ByteStream; class JB2Blit { public: - /**Qt::Horizontal coordinate of the blit. */ + /** Horizontal coordinate of the blit. */ unsigned short left; - /**Qt::Vertical coordinate of the blit. */ + /** Vertical coordinate of the blit. */ unsigned short bottom; /** Index of the shape to blit. */ unsigned int shapeno; diff --git a/kviewshell/plugins/djvu/libdjvu/MMRDecoder.cpp b/kviewshell/plugins/djvu/libdjvu/MMRDecoder.cpp index add09e3b..3dced77a 100644 --- a/kviewshell/plugins/djvu/libdjvu/MMRDecoder.cpp +++ b/kviewshell/plugins/djvu/libdjvu/MMRDecoder.cpp @@ -602,7 +602,7 @@ MMRDecoder::scanruns(const unsigned short **endptr) b1 += *pr++; break; } - /*Qt::Horizontal Mode */ + /* Horizontal Mode */ case H: { // First run @@ -616,7 +616,7 @@ MMRDecoder::scanruns(const unsigned short **endptr) *xr = rle; xr++; rle = 0; break; } - /*Qt::Vertical Modes */ + /* Vertical Modes */ case V0: case VR3: case VR2: diff --git a/kviewshell/plugins/djvu/libdjvu/configure.in.in b/kviewshell/plugins/djvu/libdjvu/configure.in.in index 72029d3b..88cd71bc 100644 --- a/kviewshell/plugins/djvu/libdjvu/configure.in.in +++ b/kviewshell/plugins/djvu/libdjvu/configure.in.in @@ -335,7 +335,7 @@ if test "x$acx_pthread_ok" = xyes; then flag=no case "${host_cpu}-${host_os}" in *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";; - *solaris* | alpha*-osf*) flag="-D_REENTRANT";; + *solaris*) flag="-D_REENTRANT";; esac AC_MSG_RESULT(${flag}) if test "x$flag" != xno; then @@ -379,7 +379,7 @@ if test x$acx_cothread != xno ; then AC_MSG_CHECKING([whether libgcc contains the cothread patch]) AC_LANG_PUSH([C++]) kde_save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS $qt_includes" + CXXFLAGS="$CXXFLAGS $tqt_includes" AC_TRY_LINK([extern "C" { void *(*__get_eh_context_ptr)(); void *__new_eh_context(void); }], [ __get_eh_context_ptr = &__new_eh_context;], diff --git a/kviewshell/plugins/djvu/libdjvu/debug.cpp b/kviewshell/plugins/djvu/libdjvu/debug.cpp index 40e57b70..cba08577 100644 --- a/kviewshell/plugins/djvu/libdjvu/debug.cpp +++ b/kviewshell/plugins/djvu/libdjvu/debug.cpp @@ -233,7 +233,7 @@ DjVuDebug& DjVuDebug::operator<<(type arg)\ DjVuDebug& DjVuDebug::operator<<(bool arg) { - format("%s", arg ? "TRUE" : "FALSE"); return *this; + format("%s", arg ? "true" : "false"); return *this; } OP(char, "%c") diff --git a/kviewshell/plugins/djvu/pageRangeWidget.cpp b/kviewshell/plugins/djvu/pageRangeWidget.cpp index 1d5c7be1..4acd8294 100644 --- a/kviewshell/plugins/djvu/pageRangeWidget.cpp +++ b/kviewshell/plugins/djvu/pageRangeWidget.cpp @@ -41,8 +41,8 @@ PageRangeWidget::PageRangeWidget( TQ_UINT16 _from, TQ_UINT16 _to, TQ_UINT16 _cur _current = _to; } - connect(from, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(fromValueChanged(int))); - connect(to, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(toValueChanged(int))); + connect(from, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(fromValueChanged(int))); + connect(to, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(toValueChanged(int))); from->setRange(_from, _to); from->setValue(_current); diff --git a/kviewshell/plugins/djvu/pageRangeWidget.h b/kviewshell/plugins/djvu/pageRangeWidget.h index 1aaf0c48..4f353b10 100644 --- a/kviewshell/plugins/djvu/pageRangeWidget.h +++ b/kviewshell/plugins/djvu/pageRangeWidget.h @@ -28,7 +28,7 @@ class PageRangeWidget : public PageRangeWidget_base { -Q_OBJECT +TQ_OBJECT public: |