8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
is there any way to align my text so every column begins on the same line as the previous line?
here's my command:
printf "THEN ( ${SEARCHPATTB} = Hour = ${CALTOTB} ) %8s => %8s NOW ( ${SEARCHPATT} = Hour = ${CALTOT} ) %7s => %7s Reduced By: %7s -${RESULT}"\\n
output i'm currently getting... (2 Replies)
Discussion started by: SkySmart
2 Replies
2. Post Here to Contact Site Administrators and Moderators
Can you add hover texts (alt-texts) to icons? It is not always obvious what each of them mean just by looking at them. Sometimes it is clear from the url it points to, but for accessibility reasons alone it would be good to have alt-texts as a standard. (1 Reply)
Discussion started by: figaro
1 Replies
3. UNIX for Dummies Questions & Answers
Hello guys,
I hope anyone can help me with this ...
I have a file in which i have around 6000 lines of same format text like
1234567
2345678
3456789
....................
Now what I have to do is that there I have to search these numbers in another file which contains hundreds of... (1 Reply)
Discussion started by: m_usmanayub
1 Replies
4. Programming
Hello, I have hundreds of text files to be tested.They are generated by many commands. I should check whether a word in specific position is right, or whether a word in file A is equal to a word in file B. All the file are not the same. I decide to use shell to test every files, so I had to write... (7 Replies)
Discussion started by: 915086731
7 Replies
5. Shell Programming and Scripting
Hi,
I want to concatenate the texts in the file but there are different scenario's.
Ist Scenario.
The contents of file has id`language,sequence number,text,language
Here id`language is a key pair to identify the correct language.
Sequnce number is the order the text being inserted.
Text... (3 Replies)
Discussion started by: vanitham
3 Replies
6. Shell Programming and Scripting
Hello,
I have two files:
File1:
a
b
c
d
File2:
b
c
e
I need 'e' as output....
Thanks..
---------- Post updated at 12:16 PM ---------- Previous update was at 12:15 PM ---------- (1 Reply)
Discussion started by: shekhar2010us
1 Replies
7. Shell Programming and Scripting
I need
1. to find all the files from a Folder "folder_name" and from its 4 or 5 sub folders which contain a certain pattern "pattern1".
2. from these files copy and merge all the text between "pattern1" and another different pattern "pattern2" to "mergefile".
3. Get rid of every html tag.
4.... (3 Replies)
Discussion started by: mjomba
3 Replies
8. Shell Programming and Scripting
I havet two books, one in Swedish, the other in English.
Two text files. I want to combine them into one, with each sentence having it's translation next to it.
------------
Text file one.
Example sentence in English. Example 2 sentence 2 in English 2.
--------------
Text file two.
... (2 Replies)
Discussion started by: LaraMej
2 Replies
QwtTextEngine(3) Qwt User's Guide QwtTextEngine(3)
NAME
QwtTextEngine -
Abstract base class for rendering text strings.
SYNOPSIS
#include <qwt_text_engine.h>
Inherited by QwtMathMLTextEngine, QwtPlainTextEngine, and QwtRichTextEngine.
Public Member Functions
virtual void draw (QPainter *painter, const QRect &rect, int flags, const QString &text) const =0
virtual int heightForWidth (const QFont &font, int flags, const QString &text, int width) const =0
virtual bool mightRender (const QString &text) const =0
virtual void textMargins (const QFont &font, const QString &text, int &left, int &right, int &top, int &bottom) const =0
virtual QSize textSize (const QFont &font, int flags, const QString &text) const =0
virtual ~QwtTextEngine ()
Protected Member Functions
QwtTextEngine ()
Detailed Description
Abstract base class for rendering text strings.
A text engine is responsible for rendering texts for a specific text format. They are used by QwtText to render a text.
QwtPlainTextEngine and QwtRichTextEngine are part of the Qwt library.
QwtMathMLTextEngine can be found in Qwt MathML extension, that needs the MathML renderer of the Qt solutions package. Unfortunately it is
only available with a commercial Qt license.
See also:
QwtText::setTextEngine()
Constructor & Destructor Documentation
QwtTextEngine::~QwtTextEngine () [virtual]
Destructor.
QwtTextEngine::QwtTextEngine () [protected]
Constructor.
Member Function Documentation
virtual void QwtTextEngine::draw (QPainter *painter, const QRect &rect, intflags, const QString &text) const [pure virtual] Draw the text in a
clipping rectangle
Parameters:
painter Painter
rect Clipping rectangle
flags Bitwise OR of the flags like in for QPainter::drawText
text Text to be rendered
Implemented in QwtPlainTextEngine, QwtRichTextEngine, and QwtMathMLTextEngine.
virtual int QwtTextEngine::heightForWidth (const QFont &font, intflags, const QString &text, intwidth) const [pure virtual] Find the height for
a given width
Parameters:
font Font of the text
flags Bitwise OR of the flags used like in QPainter::drawText
text Text to be rendered
width Width
Returns:
Calculated height
Implemented in QwtPlainTextEngine, QwtRichTextEngine, and QwtMathMLTextEngine.
virtual bool QwtTextEngine::mightRender (const QString &text) const [pure virtual] Test if a string can be rendered by this text engine
Parameters:
text Text to be tested
Returns:
true, if it can be rendered
Implemented in QwtPlainTextEngine, QwtRichTextEngine, and QwtMathMLTextEngine.
virtual void QwtTextEngine::textMargins (const QFont &font, const QString &text, int &left, int &right, int &top, int &bottom) const [pure
virtual] Return margins around the texts
The textSize might include margins around the text, like QFontMetrics::descent. In situations where texts need to be aligend in detail,
knowing these margins might improve the layout calculations.
Parameters:
font Font of the text
text Text to be rendered
left Return value for the left margin
right Return value for the right margin
top Return value for the top margin
bottom Return value for the bottom margin
Implemented in QwtPlainTextEngine, QwtRichTextEngine, and QwtMathMLTextEngine.
virtual QSize QwtTextEngine::textSize (const QFont &font, intflags, const QString &text) const [pure virtual] Returns the size, that is needed
to render text
Parameters:
font Font of the text
flags Bitwise OR of the flags like in for QPainter::drawText
text Text to be rendered
Returns:
Caluclated size
Implemented in QwtPlainTextEngine, QwtRichTextEngine, and QwtMathMLTextEngine.
Author
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Version 5.2.2 Mon Aug 1 2011 QwtTextEngine(3)