/[svn]/qsampler/trunk/src/qsamplerMessages.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerMessages.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 338 by capela, Wed Jan 12 10:43:37 2005 UTC revision 920 by capela, Sun Sep 24 12:47:51 2006 UTC
# Line 1  Line 1 
1  // qsamplerMessages.cpp  // qsamplerMessages.cpp
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2003-2005, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2006, rncbc aka Rui Nuno Capela. All rights reserved.
5    
6     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
7     modify it under the terms of the GNU General Public License     modify it under the terms of the GNU General Public License
# Line 13  Line 13 
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.     GNU General Public License for more details.
15    
16     You should have received a copy of the GNU General Public License     You should have received a copy of the GNU General Public License along
17     along with this program; if not, write to the Free Software     with this program; if not, write to the Free Software Foundation, Inc.,
18     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19    
20  *****************************************************************************/  *****************************************************************************/
21    
# Line 51  Line 51 
51  qsamplerMessages::qsamplerMessages ( QWidget *pParent, const char *pszName )  qsamplerMessages::qsamplerMessages ( QWidget *pParent, const char *pszName )
52      : QDockWindow(pParent, pszName)      : QDockWindow(pParent, pszName)
53  {  {
 #if QT_VERSION >= 0x030200  
     m_pTextView->setTextFormat(Qt::LogText);  
 #endif  
     // Initialize default message limit.  
     setMessagesLimit(QSAMPLER_MESSAGES_MAXLINES);  
   
54      // Intialize stdout capture stuff.      // Intialize stdout capture stuff.
55      m_pStdoutNotifier = NULL;      m_pStdoutNotifier = NULL;
56      m_fdStdout[QSAMPLER_MESSAGES_FDREAD]  = QSAMPLER_MESSAGES_FDNIL;      m_fdStdout[QSAMPLER_MESSAGES_FDREAD]  = QSAMPLER_MESSAGES_FDNIL;
# Line 74  qsamplerMessages::qsamplerMessages ( QWi Line 68  qsamplerMessages::qsamplerMessages ( QWi
68      m_pTextView->setWordWrap(QTextEdit::NoWrap);      m_pTextView->setWordWrap(QTextEdit::NoWrap);
69      m_pTextView->setReadOnly(true);      m_pTextView->setReadOnly(true);
70      m_pTextView->setUndoRedoEnabled(false);      m_pTextView->setUndoRedoEnabled(false);
71    #if QT_VERSION >= 0x030200
72        m_pTextView->setTextFormat(Qt::LogText);
73    #endif
74        // Initialize default message limit.
75        setMessagesLimit(QSAMPLER_MESSAGES_MAXLINES);
76    
77      // Prepare the dockable window stuff.      // Prepare the dockable window stuff.
78      QDockWindow::setWidget(m_pTextView);      QDockWindow::setWidget(m_pTextView);
79      QDockWindow::setOrientation(Qt::Horizontal);      QDockWindow::setOrientation(Qt::Horizontal);
80      QDockWindow::setCloseMode(QDockWindow::Always);      QDockWindow::setCloseMode(QDockWindow::Always);
81      QDockWindow::setResizeEnabled(true);      QDockWindow::setResizeEnabled(true);
82            // Some specialties to this kind of dock window...
83            QDockWindow::setFixedExtentHeight(120);
84    
85      // Finally set the default caption and tooltip.      // Finally set the default caption and tooltip.
86      QString sCaption = tr("Messages");      QString sCaption = tr("Messages");

Legend:
Removed from v.338  
changed lines
  Added in v.920

  ViewVC Help
Powered by ViewVC