summaryrefslogtreecommitdiffstats
path: root/doc/html/designer-manual-3.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-06-05 19:02:23 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-06-05 19:02:23 +0900
commit1f0ce8533cc837aa2d4155b5fc17d2004bed0197 (patch)
treed62f4174c0e58e1aa895fc71484d068b614cd6de /doc/html/designer-manual-3.html
parent8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 (diff)
downloadtqt3-1f0ce8533cc837aa2d4155b5fc17d2004bed0197.tar.gz
tqt3-1f0ce8533cc837aa2d4155b5fc17d2004bed0197.zip
Rename template library nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/designer-manual-3.html')
-rw-r--r--doc/html/designer-manual-3.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/html/designer-manual-3.html b/doc/html/designer-manual-3.html
index ec01038ff..ec4039b32 100644
--- a/doc/html/designer-manual-3.html
+++ b/doc/html/designer-manual-3.html
@@ -672,7 +672,7 @@ RED WHITESPACE GREEN WHITESPACE BLUE WHITESPACE NAME
</pre>
<p>The file may also include comment lines; these begin with '!' for example.</p>
<p>There are numerous approaches we could have taken to parsing these files, but we've opted for a simple regular expression (regex). The regex is more "liberal" regarding the whitespace in the input than the format demands.</p>
-<p>If a line matches the regex we create a new entry in the <tt>m_colors</tt> <a href="ntqmap.html">TQMap</a>, setting its text to be the name of the color (<tt>regex.cap( 4 )</tt>), and its value to be a new <a href="ntqcolor.html">TQColor</a> created from the red, green and blue values. Lines that don't match the regex are treated as comments and are stored in the <tt>m_comments</tt> string list. (When we save the file we write all the comments out first even if they appeared in the middle of the file.)</p>
+<p>If a line matches the regex we create a new entry in the <tt>m_colors</tt> <a href="tqmap.html">TQMap</a>, setting its text to be the name of the color (<tt>regex.cap( 4 )</tt>), and its value to be a new <a href="ntqcolor.html">TQColor</a> created from the red, green and blue values. Lines that don't match the regex are treated as comments and are stored in the <tt>m_comments</tt> string list. (When we save the file we write all the comments out first even if they appeared in the middle of the file.)</p>
<p>Once we've populated the <tt>m_colors</tt> map we mark the visible view as "dirty" and call <tt>populate()</tt> to update it. We then mark the visible view as not dirty and the non-visible view as dirty. This ensures that when user changes the view, the view they switch to will be updated. We could have simply marked both views as dirty and updated them both, but it is more efficient to update "lazily", after all the user may only ever use one view, so why waste their time updating the other one.</p>
<p>Since we're using <a href="ntqfile.html">TQFile</a> and <a href="ntqregexp.html">TQRegExp</a> we need to include the relevant headers. (Right click "Includes (in Implementation)", then click <b>New</b>. Type "ntqfile.h" and press <b>Enter</b>. Repeat this process to add "ntqregexp.h".)</p>
<p>You should now have added the following declarations to your includes (in implementation):</p>