Salome HOME
Updates from V7_dev branch
authorrnv <rnv@opencascade.com>
Tue, 2 Feb 2016 11:11:25 +0000 (14:11 +0300)
committervsr <vsr@opencascade.com>
Fri, 19 Feb 2016 12:32:32 +0000 (15:32 +0300)
40 files changed:
src/GLViewer/GLViewer_BaseObjects.cxx
src/GLViewer/GLViewer_ToolTip.cxx
src/HelpBrowser/CMakeLists.txt
src/HelpBrowser/qtlockedfile_win.cpp
src/LightApp/LightApp_Application.cxx
src/LightApp/LightApp_ModuleAction.cxx
src/LightApp/LightApp_Operation.cxx
src/OCCViewer/OCCViewer_ClipPlaneInteractor.cxx
src/PyViewer/PyViewer_ViewWindow.cxx
src/Qtx/QtxActionToolMgr.cxx
src/Qtx/QtxDialog.cxx
src/Qtx/QtxDockAction.cxx
src/Qtx/QtxMainWindow.cxx
src/Qtx/QtxSearchTool.cxx
src/Qtx/QtxWorkstack.cxx
src/Qtx/QtxWorkstackAction.cxx
src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_GUILight.sip
src/SALOME_PYQT/SalomePyQt/SalomePyQt.sip
src/STD/STD_Application.cxx
src/SUIT/SUIT_ActionOperation.cxx
src/SUIT/SUIT_Application.cxx
src/SUIT/SUIT_Application.h
src/SUIT/SUIT_DataObjectKey.cxx
src/SUIT/SUIT_Operation.cxx
src/SUIT/SUIT_Study.cxx
src/SalomeApp/SalomeApp_Application.cxx
src/SalomeApp/pluginsdemo/minmax_dialog.py [deleted file]
src/Session/SALOME_Session_Server.cxx
src/TreeData/Test/mainwindow.cxx
src/TreeData/TreeModel.cxx
src/VTKViewer/VTKViewer_Filter.cxx
src/VTKViewer/VTKViewer_InteractorStyle.cxx
tools/dlgfactory/GenericDialog.cxx
tools/dlgfactory/GenericDialog.h
tools/dlgfactory/__GDIALOG__.cxx
tools/dlgfactory/__GDIALOG__.h
tools/dlgfactory/__QDIALOG__.cxx
tools/dlgfactory/__QDIALOG__.h
tools/dlgfactory/gtester.cxx
tools/dlgfactory/qtester.cxx

index 6127c02df41f9a7028e598db7d900819b7222554..4151e0eb6eb951e36d916a5bc8e3a06380408484 100644 (file)
@@ -1438,16 +1438,15 @@ bool GLViewer_TextObject::translateToEMF( HDC dc, GLViewer_CoordSystem* aViewerC
            y = double( yPos );
 
     aViewerCS->transform( *aEMFCS, x, y );
-    const char* str = aText.toLatin1().data();
 
     int nHeight = 35*14;       // height of font
     int nWidth = 35*12;        // average character width
     int nEscapement = 0;       // angle of escapement
     int nOrientation = 0;      // base-line orientation angle
     int fnWeight = FW_NORMAL;  // font weight
-    DWORD fdwItalic = FALSE;    // italic attribute option
-    DWORD fdwUnderline = FALSE; // underline attribute option
-    DWORD fdwStrikeOut = FALSE; // strikeout attribute option
+    DWORD fdwItalic = false;    // italic attribute option
+    DWORD fdwUnderline = false; // underline attribute option
+    DWORD fdwStrikeOut = false; // strikeout attribute option
     DWORD fdwCharSet = ANSI_CHARSET; // character set identifier
     DWORD fdwOutputPrecision = OUT_DEFAULT_PRECIS;  // output precision
     DWORD fdwClipPrecision = CLIP_DEFAULT_PRECIS;    // clipping precision
@@ -1467,7 +1466,7 @@ bool GLViewer_TextObject::translateToEMF( HDC dc, GLViewer_CoordSystem* aViewerC
     HGDIOBJ old1 = SelectObject( dc, aFont );
     HGDIOBJ old2 = SelectObject( dc, aBrush );
 
-    TextOut( dc, x, y, str, aText.length() );
+    TextOut( dc, x, y, aText.toLatin1().constData(), aText.length() );
 
     SelectObject ( dc, old1 );
     SelectObject ( dc, old2 );
index 632062d00ba19bd068f5795319cb766071a1a995..3d5653cb2b7cbc60246c03749bd2c4426e72a21d 100644 (file)
@@ -52,7 +52,7 @@ GLViewer_ObjectTip::GLViewer_ObjectTip( GLViewer_ViewPort2d* theParent )
                          Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint | Qt::Tool | Qt::X11BypassWindowManagerHint );
   mypLabel->setObjectName("ObjectTipText");
   mypLabel->setMargin( 1 );
-  //mypLabel->setAutoMask( FALSE );
+  //mypLabel->setAutoMask( false );
   mypLabel->setFrameStyle( QFrame::Plain | QFrame::Box );
   mypLabel->setLineWidth( 1 );
   mypLabel->setAlignment( Qt::AlignAbsolute | Qt::AlignTop );
index f67b5814e1819f1d9ba2b4b82aa16d96cdab8de9..6e38bb16b39053c32d27f72bf8a65a681610cbc2 100644 (file)
@@ -78,4 +78,4 @@ SET(HelpBrowser_SOURCES
 
 ADD_EXECUTABLE(HelpBrowser ${HelpBrowser_SOURCES})
 TARGET_LINK_LIBRARIES(HelpBrowser ${_link_LIBRARIES})
-INSTALL(TARGETS HelpBrowser EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
\ No newline at end of file
+INSTALL(TARGETS HelpBrowser EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
index 049acaffe42c53b82c830a3f5fb68ee90985aee5..a86bf3d515a63da0d08dfea8c358113e19eb3626 100644 (file)
@@ -63,16 +63,16 @@ Qt::HANDLE QtLockedFile::getMutexHandle(int idx, bool doCreate)
 
     Qt::HANDLE mutex;
     if (doCreate) {
-        QT_WA( { mutex = CreateMutexW(NULL, FALSE, (LPCWSTR)mname.utf16()); },
-               { mutex = CreateMutexA(NULL, FALSE, mname.toLocal8Bit().constData()); } );
+        QT_WA( { mutex = CreateMutexW(NULL, false, (LPCWSTR)mname.utf16()); },
+               { mutex = CreateMutexA(NULL, false, mname.toLocal8Bit().constData()); } );
         if (!mutex) {
             qErrnoWarning("QtLockedFile::lock(): CreateMutex failed");
             return 0;
         }
     }
     else {
-        QT_WA( { mutex = OpenMutexW(SYNCHRONIZE | MUTEX_MODIFY_STATE, FALSE, (LPCWSTR)mname.utf16()); },
-               { mutex = OpenMutexA(SYNCHRONIZE | MUTEX_MODIFY_STATE, FALSE, mname.toLocal8Bit().constData()); } );
+        QT_WA( { mutex = OpenMutexW(SYNCHRONIZE | MUTEX_MODIFY_STATE, false, (LPCWSTR)mname.utf16()); },
+               { mutex = OpenMutexA(SYNCHRONIZE | MUTEX_MODIFY_STATE, false, mname.toLocal8Bit().constData()); } );
         if (!mutex) {
             if (GetLastError() != ERROR_FILE_NOT_FOUND)
                 qErrnoWarning("QtLockedFile::lock(): OpenMutex failed");
@@ -159,7 +159,7 @@ bool QtLockedFile::lock(LockMode mode, bool block)
         }
         if (rmutexes.size()) {
             DWORD res = WaitForMultipleObjects(rmutexes.size(), rmutexes.constData(),
-                                               TRUE, block ? INFINITE : 0);
+                                               true, block ? INFINITE : 0);
             if (res != WAIT_OBJECT_0 && res != WAIT_ABANDONED) {
                 if (res != WAIT_TIMEOUT)
                     qErrnoWarning("QtLockedFile::lock(): WaitForMultipleObjects failed");
index c800af179314a353d9d6bd1ab280828bac13529e..f82e64e78d476f5ec209aaa43fcd144a22346b62 100644 (file)
@@ -4022,7 +4022,7 @@ void LightApp_Application::loadDockWindowsState()
   }
 
   if(dwMap) {
-    QList<QDockWidget*> dwList = qFindChildren<QDockWidget*>( desktop() );
+    QList<QDockWidget*> dwList = desktop()->findChildren<QDockWidget*>();
     for ( QList<QDockWidget*>::iterator dit = dwList.begin(); dit != dwList.end(); ++dit )
       {
        QDockWidget* dw = *dit;
index 74513caf97b4e0944e31c21da6c985749abb5adc..346d271e9133c0a11a843e7014566358f52acf0f 100755 (executable)
@@ -146,7 +146,7 @@ QList<QtxComboBox*> LightApp_ModuleAction::ComboAction::widgets() const
 
   QList<QWidget*> wlist = createdWidgets();
   for ( QList<QWidget*>::const_iterator wit = wlist.begin(); wit != wlist.end(); ++wit )
-    lst += (*wit)->findChildren<QtxComboBox *>();
+    lst += (*wit)->findChildren<QtxComboBox*>();
 
   return lst;
 }
index 3bdd29f7cd4fb58719864231358e8c16b2f2c175..697cb14b5639f3138fe937aa7e3acf0a181b3735 100755 (executable)
@@ -36,7 +36,7 @@
 /*!
  * \brief Constructor
 *
-* Constructor sets myModule in NULL and myIsAutoResumed in TRUE
+* Constructor sets myModule in NULL and myIsAutoResumed in \c true
 */
 LightApp_Operation::LightApp_Operation()
 : SUIT_Operation( 0 ),
@@ -278,7 +278,7 @@ void LightApp_Operation::setDialogActive( const bool active )
 * Autoresume property is used during automatic resuming operation. If operation is
 * suspended and cursor is moved above dialog of the operation then operation is resumed
 * automatically (if possible). It can be resumed only program call otherwise (see
-* LightApp_SwitchOp for more description). This property is TRUE by default and may be
+* LightApp_SwitchOp for more description). This property is \c true by default and may be
 * changed with setAutoResumed() method call.
 */
 bool LightApp_Operation::isAutoResumed() const
index b4ffbd215de3571bab70a5534a3bbedebbfc7cac..c11065772b2d6a2a7d36f3581fa6d701614a40e6 100644 (file)
@@ -110,7 +110,7 @@ void OCCViewer_ClipPlaneInteractor::setEnabled( const bool theIsEnabled )
 
 /*!
   \brief Checks whether the interactive operation is in progress.
-  \return TRUE if the interaction is performed on IO object meaning
+  \return \c true if the interaction is performed on IO object meaning
           that no other operations in viewer should be processed.
 */
 bool OCCViewer_ClipPlaneInteractor::isPerforming() const
@@ -120,7 +120,7 @@ bool OCCViewer_ClipPlaneInteractor::isPerforming() const
 
 /*!
   \brief Checks whether the interactive plane can be clicked.
-  \return TRUE if the click interaction is supported for the plane.
+  \return \c true if the click interaction is supported for the plane.
 */
 bool OCCViewer_ClipPlaneInteractor::isClickable( const Handle(AIS_Plane)& thePlane )
 {
@@ -151,7 +151,7 @@ bool OCCViewer_ClipPlaneInteractor::isClickable( const Handle(AIS_Plane)& thePla
 
 /*!
   \brief Checks whether the interactive plane can be dragged.
-  \return TRUE if the dragging interaction is supported for the plane.
+  \return \c true if the dragging interaction is supported for the plane.
 */
 bool OCCViewer_ClipPlaneInteractor::isDraggable( const Handle(AIS_Plane)& thePlane )
 {
index 47a9a4582c4d26d3d74ba8bd33b60871fa9efdf6..ea300e42ca5a0d5ff6fc6567968d45c0009ca679 100644 (file)
 #include <QtxActionToolMgr.h>
 #include <QtxMultiAction.h>
 
-#include <QtGui>
 #include <QLocale>
 #include <QFileDialog>
 #include <QMessageBox>
 #include <QApplication>
+#include <QProcess>
 #include <QStatusBar>
+#include <QTextStream>
 
 /*!
   \class PyViewer_ViewWindow
index c24a5820ab3821a8a26802824df7c991533ad7e8..4c368f609f2aff42c2368117349029fcf2f14e63 100644 (file)
@@ -229,7 +229,7 @@ QToolBar* QtxActionToolMgr::find( const QString& title, QMainWindow* mw ) const
   QString pattern = title.toLower();
 
   QToolBar* res = 0;
-  QList<QToolBar*> toolbars = mw->findChildren<QToolBar*>( );
+  QList<QToolBar*> toolbars = mw->findChildren<QToolBar*>();
   for ( QList<QToolBar*>::iterator it = toolbars.begin(); it != toolbars.end() && !res; ++it )
   {
     if ( (*it)->windowTitle().toLower() == pattern )
index 47a3a28672f6497616355673f96d5882a8571f32..614831777bdbe00fa093611fc3bd551e510b2d6f 100755 (executable)
@@ -1327,7 +1327,7 @@ void QtxDialog::keyPressEvent( QKeyEvent* e )
 
   if ( e->key() == Qt::Key_Tab && e->modifiers() & Qt::ControlModifier )
   {
-    QObject* tab = this->findChild<QTabWidget*>( );
+    QObject* tab = this->findChild<QTabWidget*>();
     if ( tab && !property( "in_tab_event" ).toBool() ) {
       setProperty( "in_tab_event", true );
       QApplication::sendEvent( tab, e );
index 9e741adaf0913de87a778ba13a0db808a6ff4361..946279d9e766596d166c31c2ad4f46475769924a 100755 (executable)
@@ -152,7 +152,7 @@ void QtxDockAction::toolBars( QList<QToolBar*>& lst ) const
   if ( !mw )
     return;
 
-  QList<QToolBar*> toolbars = mw->findChildren<QToolBar*>( );
+  QList<QToolBar*> toolbars = mw->findChildren<QToolBar*>();
   for ( QList<QToolBar*>::iterator it = toolbars.begin(); it != toolbars.end(); ++it )
   {
     QToolBar* tb = *it;
@@ -173,7 +173,7 @@ void QtxDockAction::dockWidgets( QList<QDockWidget*>& lst ) const
   if ( !mw )
     return;
 
-  QList<QDockWidget*> dockwidgets = mw->findChildren<QDockWidget*>( );
+  QList<QDockWidget*> dockwidgets = mw->findChildren<QDockWidget*>();
   for ( QList<QDockWidget*>::iterator it = dockwidgets.begin(); it != dockwidgets.end(); ++it )
   {
     QDockWidget* dw = *it;
index c71fec8821bbbc1fff9ff32f4f79afc2ea4e7b7c..1e1bf66417f17c60bc5ce5779867d430bdd4f954 100644 (file)
@@ -215,7 +215,7 @@ void QtxMainWindow::Resizer::setFilters( bool on )
       myMain->layout()->removeEventFilter( this );
   }
 
-  QTimer* t = myMain->layout()->findChild<QTimer*>( );
+  QTimer* t = myMain->layout()->findChild<QTimer*>();
   if ( t ) {
     if ( on )
       t->installEventFilter( this );
index da6cfe1fe555697db5fbc74b9cd1650465d4b32f..df9760bb4d8055b12c6f6c6222c336e986c8b4a4 100644 (file)
@@ -886,7 +886,7 @@ void QtxSearchTool::init( Qt::Orientation orientation )
   myModWidget_layout->setMargin( 0 );
 
   myClose = new QToolButton( myBtnWidget );
-  myClose->setIcon( QIcon( QPixmap( close_xpm ) ) );
+  myClose->setIcon( QPixmap( close_xpm ) );
   myClose->setAutoRaise( true );
   myBtnWidget_layout->addWidget( wrapWidget( myBtnWidget, myClose ) );
   connect( myClose, SIGNAL( clicked() ), this, SLOT( hide() ) );
@@ -899,28 +899,28 @@ void QtxSearchTool::init( Qt::Orientation orientation )
   myData->installEventFilter( this );
 
   myToFirst = new QToolButton( myBtnWidget );
-  myToFirst->setIcon( QIcon( QPixmap( first_xpm ) ) );
+  myToFirst->setIcon( QPixmap( first_xpm ) );
   myToFirst->setAutoRaise( true );
   myBtnWidget_layout->addWidget( wrapWidget( myBtnWidget, myToFirst ), 0 );
   connect( myToFirst, SIGNAL( clicked() ), this, SLOT( findFirst() ) );
   myToFirst->installEventFilter( this );
 
   myPrev = new QToolButton( myBtnWidget );
-  myPrev->setIcon( QIcon( QPixmap( prev_xpm ) ) );
+  myPrev->setIcon( QPixmap( prev_xpm ) );
   myPrev->setAutoRaise( true );
   myBtnWidget_layout->addWidget( wrapWidget( myBtnWidget, myPrev ), 0 );
   connect( myPrev, SIGNAL( clicked() ), this, SLOT( findPrevious() ) );
   myPrev->installEventFilter( this );
 
   myNext = new QToolButton( myBtnWidget );
-  myNext->setIcon( QIcon( QPixmap( next_xpm ) ) );
+  myNext->setIcon( QPixmap( next_xpm ) );
   myNext->setAutoRaise( true );
   myBtnWidget_layout->addWidget( wrapWidget( myBtnWidget, myNext ), 0 );
   connect( myNext, SIGNAL( clicked() ), this, SLOT( findNext() ) );
   myNext->installEventFilter( this );
 
   myToLast = new QToolButton( myBtnWidget );
-  myToLast->setIcon( QIcon( QPixmap( last_xpm ) ) );
+  myToLast->setIcon( QPixmap( last_xpm ) );
   myToLast->setAutoRaise( true );
   myBtnWidget_layout->addWidget( wrapWidget( myBtnWidget, myToLast ), 0 );
   connect( myToLast, SIGNAL( clicked() ), this, SLOT( findLast() ) );
index dd071fe5f6fb3760879521c8b1467a9e6899a57f..6dbde0d2399276a3a58a117017ac9e158d50f7a4 100644 (file)
@@ -3309,7 +3309,7 @@ QtxWorkstackArea* QtxWorkstack::wgArea( QWidget* wid ) const
   \param wid_to widget specified the destination area
   \param before specifies whether the first widget has to be moved before or after
          the second widget
-  \return TRUE if operation is completed successfully, FALSE otherwise
+  \return \c true if operation is completed successfully, \c false otherwise
 */
 bool QtxWorkstack::move( QWidget* wid, QWidget* wid_to, const bool before )
 {
@@ -3345,7 +3345,7 @@ bool QtxWorkstack::move( QWidget* wid, QWidget* wid_to, const bool before )
 
 /*!
   \brief Group all windows in one area
-  \return TRUE if operation is completed successfully, FALSE otherwise
+  \return \c true if operation is completed successfully, \c false otherwise
 */
 void QtxWorkstack::stack()
 {
index ab2e4a61cee39a7f3bc5590a0d61dfcff4d1bf2b..3b4855075f3a4863433db352f1a105a4e6811e63 100644 (file)
@@ -524,12 +524,12 @@ QtxSplitDlg::QtxSplitDlg( QWidget* parent, QtxWorkstack* workstack, QtxSplitDlgM
 
   // Buttons for possibility of switching the variants of split
   myButtonPrevious = new QPushButton( this );
-  myButtonPrevious->setIcon( QIcon( QPixmap( prev_xpm ) ) );
+  myButtonPrevious->setIcon( QPixmap( prev_xpm ) );
   myButtonPrevious->setAutoDefault(true);
   myButtonPrevious->setEnabled( false );
 
   myButtonNext = new QPushButton( this );
-  myButtonNext->setIcon( QIcon( QPixmap( next_xpm ) ) );
+  myButtonNext->setIcon( QPixmap( next_xpm ) );
   myButtonNext->setAutoDefault(true);
   myButtonNext->setEnabled( false );
 
index a38add5afc3eba88b21a6eaaee34627f420a9970..54dbbb63c6e22aab0d1d46bce002850e7dcd56a7 100644 (file)
@@ -22,8 +22,8 @@
 
 %Module SalomePyQtGUILight
 
-%Import QtGui/QtGuimod.sip
 %Import QtCore/QtCoremod.sip
+%Import QtGui/QtGuimod.sip
 %If (Qt_5_0_0 -)
 %Import QtWidgets/QtWidgetsmod.sip
 %End
index 54490bf0cfa07460900c16df5e29507c3956dbc3..92af427abbc4f33f7c236b33f0395cffe40714ac 100644 (file)
@@ -28,8 +28,8 @@
 %Feature ENABLE_CORBA
 %Feature ENABLE_PLOT2D
 
-%Import QtGui/QtGuimod.sip
 %Import QtCore/QtCoremod.sip
+%Import QtGui/QtGuimod.sip
 %If (Qt_5_0_0 -)
 %Import QtWidgets/QtWidgetsmod.sip
 %End
index 3ec5a29d6b2f886c86fb97448803250404797786..f2815832e61709114a97affd67717d04a5bca48f 100755 (executable)
@@ -321,7 +321,7 @@ void STD_Application::onOpenDoc()
   onOpenDoc( aName );
 }
 
-/*! \retval true, if document was opened successful, else false.*/
+/*! \retval \c true, if document was opened successful, else \c false.*/
 bool STD_Application::onOpenDoc( const QString& aName )
 {
   if ( !abortAllOperations() )
@@ -457,7 +457,7 @@ bool STD_Application::closeActiveDoc( bool permanently )
 }
 
 /*!Check the application on closing.
- * \retval true if possible, else false
+ * \retval \c true if possible, else \c false
  */
 bool STD_Application::isPossibleToClose( bool& closePermanently )
 {
@@ -598,7 +598,7 @@ void STD_Application::onSaveDoc()
     onSaveAsDoc();
 }
 
-/*! \retval TRUE, if doument saved successful, else FALSE.*/
+/*! \retval \c true, if document saved successfully, else \c false.*/
 bool STD_Application::onSaveAsDoc()
 {
   SUIT_Study* study = activeStudy();
@@ -669,7 +669,7 @@ void STD_Application::setEditEnabled( bool theEnable )
   }
 }
 
-/*!\retval true, if document opened successful, else false.*/
+/*!\retval \c true, if document opened successfully, else \c false.*/
 bool STD_Application::useFile(const QString& theFileName)
 {
   bool res = SUIT_Application::useFile( theFileName );
@@ -819,7 +819,7 @@ void STD_Application::clearViewManagers()
   }
 }
 
-/*!\retval TRUE, if view manager \a vm, already in view manager list (\a myViewMgrs).*/
+/*!\retval \c true, if view manager \a vm, already in view manager list (\a myViewMgrs).*/
 bool STD_Application::containsViewManager( SUIT_ViewManager* vm ) const
 {
   return myViewMgrs.contains( vm );
@@ -831,7 +831,7 @@ void STD_Application::onViewManagerActivated( SUIT_ViewManager* vm )
   setActiveViewManager( vm );
 }
 
-/*!Sets status bar show, if \on = true, else status bar hide.*/
+/*!Shows status bar, if on is \c true, else hides status bar.*/
 void STD_Application::onViewStatusBar( bool on )
 {
   if ( on )
index cf3a9e964d666ece3ea7c3b439a2a1171cb814fc..1a42e6bb7f058fdfb8dc421b403ce283fc3fbffd 100644 (file)
@@ -84,7 +84,7 @@ void SUIT_ActionOperation::setAction( QtxAction* a )
 }
 
 /*! Add action to widget \a wid.
- *\retval TRUE - successful, FALSE - not successful.
+ *\retval true - successful, false - not successful.
  */
 bool SUIT_ActionOperation::addTo( QWidget* wid )
 {
index e978085bb8e99b89385722b8f0a7eebbe6456237..67ecd17fb3da5a057d67cfdf4a4018b0925fb30c 100755 (executable)
@@ -85,8 +85,8 @@ SUIT_Desktop* SUIT_Application::desktop()
 }
 
 /*!
-   \return FALSE if application can not be closed (because of non saved data for example).
-   This method called by SUIT_Session whin closing of application was requested.
+   \return \c false if application can not be closed (because of non saved data for example).
+   This method called by SUIT_Session when closing of application was requested.
 */
 bool SUIT_Application::isPossibleToClose( bool& )
 {
@@ -506,7 +506,7 @@ int SUIT_Application::createMenu( const int id, const QString& menu, const int g
 /*!
   Show/hide menu item corresponding to action
   \param a - action
-  \param on - if it is true, the item will be shown, otherwise it will be hidden
+  \param on - if it is \c true, the item will be shown, otherwise it will be hidden
 */
 void SUIT_Application::setMenuShown( QAction* a, const bool on )
 {
@@ -521,7 +521,7 @@ void SUIT_Application::setMenuShown( QAction* a, const bool on )
 /*!
   Show/hide menu item corresponding to action
   \param id - identificator of action in menu manager
-  \param on - if it is true, the item will be shown, otherwise it will be hidden
+  \param on - if it is \c true, the item will be shown, otherwise it will be hidden
 */
 void SUIT_Application::setMenuShown( const int id, const bool on )
 {
@@ -531,7 +531,7 @@ void SUIT_Application::setMenuShown( const int id, const bool on )
 /*!
   Show/hide tool button corresponding to action
   \param a - action
-  \param on - if it is true, the button will be shown, otherwise it will be hidden
+  \param on - if it is \c true, the button will be shown, otherwise it will be hidden
 */
 void SUIT_Application::setToolShown( QAction* a, const bool on )
 {
@@ -546,7 +546,7 @@ void SUIT_Application::setToolShown( QAction* a, const bool on )
 /*!
   Show/hide menu item corresponding to action
   \param id - identificator of action in tool manager
-  \param on - if it is true, the button will be shown, otherwise it will be hidden
+  \param on - if it is \c true, the button will be shown, otherwise it will be hidden
 */
 void SUIT_Application::setToolShown( const int id, const bool on )
 {
@@ -556,7 +556,7 @@ void SUIT_Application::setToolShown( const int id, const bool on )
 /*!
   Show/hide both menu item and tool button corresponding to action
   \param a - action
-  \param on - if it is true, the item will be shown, otherwise it will be hidden
+  \param on - if it is \c true, the item will be shown, otherwise it will be hidden
 */
 void SUIT_Application::setActionShown( QAction* a, const bool on )
 {
@@ -567,7 +567,7 @@ void SUIT_Application::setActionShown( QAction* a, const bool on )
 /*!
   Show/hide both menu item and tool button corresponding to action
   \param id - identificator in both menu manager and tool manager
-  \param on - if it is true, the item will be shown, otherwise it will be hidden
+  \param on - if it is \c true, the item will be shown, otherwise it will be hidden
 */
 void SUIT_Application::setActionShown( const int id, const bool on )
 {
@@ -622,7 +622,7 @@ QList<int> SUIT_Application::actionIds() const
   \param tip - tool tip
   \param key - shortcut
   \param parent - parent object
-  \param toggle - if it is TRUE the action will be a toggle action, otherwise it will be a command action
+  \param toggle - if it is \c true the action will be a toggle action, otherwise it will be a command action
   \param reciever - object that contains slot
   \param member - slot to be called when action is activated
 */
index 1d80b8d0ad0a23ee831111c85a01ee61ed416172..f19134dca951c0e8a522c867e8bfe848a5a6245e 100755 (executable)
@@ -68,7 +68,7 @@ public:
   //! Returns main widget (Desktop) of the application (if it exists)
   virtual SUIT_Desktop* desktop();
 
-  /*! Returns FALSE if application can not be closed (because of non saved data for example). 
+  /*! Returns \c false if application can not be closed (because of non saved data for example). 
       This method called by SUIT_Session whin closing of application was requested. */
   virtual bool          isPossibleToClose( bool& );
 
index cabf0085e30d32cf7fa23ffc0981064d54d0d2e1..29c799efdfa6ca9bfd2a09d8c959333f682e1949 100755 (executable)
@@ -93,7 +93,7 @@ SUIT_DataObjectKeyHandle::~SUIT_DataObjectKeyHandle()
 
 /*!
  * Checks: Is key null?
- *\retval TRUE - if null, esle false.
+ *\retval \c true - if null, esle \c false.
 */
 bool SUIT_DataObjectKeyHandle::isNull() const
 {
@@ -110,7 +110,7 @@ void SUIT_DataObjectKeyHandle::nullify()
 
 /*!
  *  Operator less.
- *\retval boolean. TRUE - If current key less than \a kw.
+ *\retval boolean. \c true - If current key less than \a kw.
  */
 bool SUIT_DataObjectKeyHandle::operator<( const SUIT_DataObjectKeyHandle& kw ) const
 {
@@ -134,7 +134,7 @@ bool SUIT_DataObjectKeyHandle::operator<( const SUIT_DataObjectKeyHandle& kw ) c
 
 /*!
  * Operator is equal.
- *\retval boolean. TRUE - If current key equal \a kw.
+ *\retval boolean. \c true - If current key equal \a kw.
  */
 bool SUIT_DataObjectKeyHandle::operator==( const SUIT_DataObjectKeyHandle& kw ) const
 {
index 41749ff44cc342d8907288838ce33a6948364087..48f92b96a599e5152e964e245057035938eb7342 100755 (executable)
@@ -142,7 +142,7 @@ void SUIT_Operation::clearFlags( const int f )
  * \brief Test the flags of operation
   * \param f - flags of operation to be tested
 *
-*  Returns TRUE if the specified flags setted in the operation (see Flags enumeration)
+*  Returns \c true if the specified flags setted in the operation (see Flags enumeration)
 */
 bool SUIT_Operation::testFlags( const int f ) const
 {
@@ -262,9 +262,9 @@ void SUIT_Operation::suspend()
 
 /*!
  * \brief Verifies whether operator is ready to start.
- * \return TRUE if operation is ready to start
+ * \return \c true if operation is ready to start
 *
-* Default implementation returns TRUE. Redefine this method to add own verifications
+* Default implementation returns \c true. Redefine this method to add own verifications
 */
 bool SUIT_Operation::isReadyToStart() const
 {
@@ -329,14 +329,14 @@ void SUIT_Operation::commitOperation()
 
 /*!
  * \brief Sets slot which is called when operation is started
 * \param theReceiver - object containing slot
 * \param theSlot - slot of theReceiver object
 * \return TR if slot was connected successfully, FALSE otherwise
-*
-* Sets slot which is called when operation is started. There is no point in
-* using this method. It would be better to inherit own operator from base
-* one and redefine startOperation method
-*/
+ * \param theReceiver - object containing slot
+ * \param theSlot - slot of theReceiver object
* \return \c true if slot was connected successfully, \c false otherwise
+ *
+ * Sets slot which is called when operation is started. There is no point in
+ * using this method. It would be better to inherit own operator from base
+ * one and redefine startOperation method
+ */
 bool SUIT_Operation::setSlot( const QObject* theReceiver, const char* theSlot )
 {
   return connect( this, SIGNAL( callSlot() ), theReceiver, theSlot );
@@ -345,7 +345,7 @@ bool SUIT_Operation::setSlot( const QObject* theReceiver, const char* theSlot )
 /*!
  * \brief Verifies whether given operator is valid for this one
   * \param theOtherOp - other operation
-  * \return Returns TRUE if the given operator is valid for this one
+  * \return Returns \c true if the given operator is valid for this one
 *
 * Verifies whether given operator is valid for this one (i.e. can be started "above"
 * this operator)
@@ -357,10 +357,10 @@ bool SUIT_Operation::isValid( SUIT_Operation* ) const
 
 /*!
  * \brief Verifies whether this operator can be always started above any already runnig one
-  * \return Returns TRUE if current operation must not be checked for ActiveOperation->IsValid( this )
+  * \return Returns \c true if current operation must not be checked for ActiveOperation->IsValid( this )
 *
 * This method must be redefined in derived operation if operation of derived class
-* must be always can start above any launched one. Default implementation returns FALSE,
+* must be always can start above any launched one. Default implementation returns \c false,
 * so it is being checked for IsValid, but some operations may overload IsGranted()
 * In this case they will always start, no matter what operation is running.
 */
@@ -371,9 +371,9 @@ bool SUIT_Operation::isGranted() const
 
 /*!
  * \brief Verifies whether operation is an runned one (state()==Running)
-  * \return TRUE if operation is active, FALSE otherwise
+  * \return \c true if operation is active, \c false otherwise
 *
-* Verifies whether operation is an running. Returns TRUE if state of operator
+* Verifies whether operation is an running. Returns \c true if state of operator
 * is Running
 */
 bool SUIT_Operation::isRunning() const
@@ -383,9 +383,9 @@ bool SUIT_Operation::isRunning() const
 
 /*!
  * \brief Verifies whether operation is an active for study.
-  * \return TRUE if operation is active, FALSE otherwise
+  * \return \c true if operation is active, \c false otherwise
 *
-* Verifies whether operation is an active on. Returns TRUE if this operator
+* Verifies whether operation is an active on. Returns \c true if this operator
 * is active for study
 */
 bool SUIT_Operation::isActive() const
@@ -470,7 +470,7 @@ bool SUIT_Operation::commitTransaction( const QString& name )
 }
 
 /*!
- * \brief Returns TRUE if transaction is opened.
+ * \brief Returns \c true if transaction is opened.
 */
 bool SUIT_Operation::hasTransaction() const
 {
index 2d5c95514c679b57edaf7aa1c9fe559a89fab4f7..3fe6234ccef59f884347f4f0bfb1e07e5bd83d2b 100755 (executable)
@@ -96,7 +96,7 @@ SUIT_Operation* SUIT_Study::activeOperation() const
 }
 
 /*!
- *\retval TRUE - if study saved, else FALSE.
+ *\retval \c true - if study saved, else \c false.
  */
 bool SUIT_Study::isSaved() const
 {
@@ -104,7 +104,7 @@ bool SUIT_Study::isSaved() const
 }
 
 /*!
- *\retval TRUE - if study modified, else FALSE.
+ *\retval \c true - if study modified, else \c false.
  */
 bool SUIT_Study::isModified() const
 {
@@ -128,7 +128,7 @@ bool SUIT_Study::createDocument( const QString& )
 }
 
 /*!
- * Open document. Sets file name. return true.
+ * Open document. Sets file name. return \c true.
  */
 bool SUIT_Study::openDocument( const QString& fileName )
 {
@@ -152,7 +152,7 @@ bool SUIT_Study::saveDocumentAs( const QString& fileName )
 }
 
 /*!
- *\retval TRUE - if document saved successful, else FALSE.
+ *\retval \c true - if document saved successful, else \c false.
  */
 bool SUIT_Study::saveDocument()
 {
@@ -266,13 +266,13 @@ SUIT_Operation* SUIT_Study::blockingOperation( SUIT_Operation* theOp ) const
 /*!
  * \brief Starts operation
   * \param theOp - operation to be started
-  * \param toCheck - if parameters is equal TRUE then checking performed whether
+  * \param toCheck - if parameters is equal \c true then checking performed whether
   * all already started operations allow to start this operation above them (default
-  * value is TRUE
-  * \return TRUE if operation is started, FALSE otherwise
+  * value is \c true
+  * \return \c true if operation is started, \c false otherwise
 *
 * Verifies whether theOp operation can be started above already started ones (if toCheck
-* parameter is equal TRUE) and starts it
+* parameter is equal \c true) and starts it
 */
 bool SUIT_Study::start( SUIT_Operation* theOp, const bool toCheck )
 {
@@ -320,7 +320,7 @@ bool SUIT_Study::start( SUIT_Operation* theOp, const bool toCheck )
 /*!
  * \brief Aborts operation
   * \param theOp - operation to be aborted
-  * \return TRUE if operation is aborted successfully
+  * \return \c true if operation is aborted successfully
 *
 * Verifies whether operation already started and aborts it in this case (sets execution
 * status to Rejected and stops operation)
@@ -344,7 +344,7 @@ bool SUIT_Study::abort( SUIT_Operation* theOp )
 /*!
  * \brief Commits operation
   * \param theOp - operation to be committed
-  * \return TRUE if operation is committed successfully
+  * \return \c true if operation is committed successfully
 *
 * Verifies whether operation already started and commits it in this case (sets execution
 * status to Accepted and stops operation)
@@ -370,7 +370,7 @@ bool SUIT_Study::commit( SUIT_Operation* theOp )
 /*!
  * \brief Commits operation
   * \param theOp - operation to be committed
-  * \return TRUE if operation is suspended successfully
+  * \return \c true if operation is suspended successfully
 *
 * Verifies whether operation already started and suspends it in this case. Operations
 * ususlly are suspended to start other one above them.
@@ -390,7 +390,7 @@ bool SUIT_Study::suspend( SUIT_Operation* theOp )
 /*!
  * \brief Resumes operation
   * \param theOp - operation to be resumed
-  * \return TRUE if operation is aborted successfully
+  * \return \c true if operation is aborted successfully
 *
 * Verifies whether operation already started but suspended and resumesit in this case.
 */
@@ -523,7 +523,7 @@ bool SUIT_Study::commitTransaction( const QString& )
 }
 
 /*!
- * \brief Returns TRUE if transaction is opened.
+ * \brief Returns \c true if transaction is opened.
 */
 bool SUIT_Study::hasTransaction() const
 {
index ef1cddd2afdcba993a813b6b58469cc39ebf2270..8927c1630cf14d4cf724dcadc81b72dc44988c7e 100644 (file)
@@ -209,7 +209,7 @@ void SalomeApp_Application::start()
 
     for (int i = 1; i < qApp->arguments().size(); i++) {
       QRegExp rxs ("--study-hdf=(.+)");
-      if ( rxs.indexIn( QString(qApp->arguments()[i]) ) >= 0 && rxs.capturedTexts().count() > 1 ) {
+      if ( rxs.indexIn( qApp->arguments()[i] ) >= 0 && rxs.capturedTexts().count() > 1 ) {
         QString file = rxs.capturedTexts()[1];
         QFileInfo fi ( file );
         QString extension = fi.suffix().toLower();
@@ -218,7 +218,7 @@ void SalomeApp_Application::start()
       }
       else {
         QRegExp rxp ("--pyscript=\\[(.+)\\]");
-        if ( rxp.indexIn( QString(qApp->arguments()[i]) ) >= 0 && rxp.capturedTexts().count() > 1 ) {
+        if ( rxp.indexIn( qApp->arguments()[i] ) >= 0 && rxp.capturedTexts().count() > 1 ) {
           // pyscript
           QStringList dictList = rxp.capturedTexts()[1].split("},", QString::SkipEmptyParts);
           for (int k = 0; k < dictList.count(); ++k) {
diff --git a/src/SalomeApp/pluginsdemo/minmax_dialog.py b/src/SalomeApp/pluginsdemo/minmax_dialog.py
deleted file mode 100644 (file)
index b5c5db6..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright (C) 2012-2015  CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-#
-# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-#
-
-# Form implementation generated from reading ui file 'minmax.ui'
-#
-# Created: Thu Mar  1 15:23:57 2012
-#      by: PyQt4 UI code generator 4.8.1
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-try:
-    _fromUtf8 = QtCore.QString.fromUtf8
-except AttributeError:
-    _fromUtf8 = lambda s: s
-
-class Ui_Dialog(object):
-    def setupUi(self, Dialog):
-        Dialog.setObjectName(_fromUtf8("Dialog"))
-        Dialog.resize(178, 156)
-        Dialog.setSizeGripEnabled(True)
-        self.gridLayout = QtGui.QGridLayout(Dialog)
-        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
-        self.label_2 = QtGui.QLabel(Dialog)
-        self.label_2.setObjectName(_fromUtf8("label_2"))
-        self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
-        self.mesh = QtGui.QLineEdit(Dialog)
-        self.mesh.setReadOnly(True)
-        self.mesh.setObjectName(_fromUtf8("mesh"))
-        self.gridLayout.addWidget(self.mesh, 0, 1, 1, 2)
-        self.label_3 = QtGui.QLabel(Dialog)
-        self.label_3.setObjectName(_fromUtf8("label_3"))
-        self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1)
-        self.control = QtGui.QComboBox(Dialog)
-        self.control.setObjectName(_fromUtf8("control"))
-        self.gridLayout.addWidget(self.control, 1, 1, 1, 2)
-        self.label = QtGui.QLabel(Dialog)
-        self.label.setObjectName(_fromUtf8("label"))
-        self.gridLayout.addWidget(self.label, 2, 0, 1, 1)
-        self.minvalue = QtGui.QLineEdit(Dialog)
-        self.minvalue.setReadOnly(True)
-        self.minvalue.setObjectName(_fromUtf8("minvalue"))
-        self.gridLayout.addWidget(self.minvalue, 2, 1, 1, 2)
-        self.label_4 = QtGui.QLabel(Dialog)
-        self.label_4.setObjectName(_fromUtf8("label_4"))
-        self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1)
-        self.maxvalue = QtGui.QLineEdit(Dialog)
-        self.maxvalue.setReadOnly(True)
-        self.maxvalue.setObjectName(_fromUtf8("maxvalue"))
-        self.gridLayout.addWidget(self.maxvalue, 3, 1, 1, 2)
-        self.buttonBox = QtGui.QDialogButtonBox(Dialog)
-        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
-        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close|QtGui.QDialogButtonBox.Help)
-        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
-        self.gridLayout.addWidget(self.buttonBox, 4, 0, 1, 3)
-
-        self.retranslateUi(Dialog)
-        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.OnCancel)
-        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("helpRequested()")), Dialog.helpMessage)
-        QtCore.QObject.connect(self.control, QtCore.SIGNAL(_fromUtf8("activated(QString)")), Dialog.compute_minmax)
-        QtCore.QMetaObject.connectSlotsByName(Dialog)
-        Dialog.setTabOrder(self.mesh, self.control)
-        Dialog.setTabOrder(self.control, self.minvalue)
-        Dialog.setTabOrder(self.minvalue, self.maxvalue)
-        Dialog.setTabOrder(self.maxvalue, self.buttonBox)
-
-    def retranslateUi(self, Dialog):
-        Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Get min and max value of control", None, QtGui.QApplication.UnicodeUTF8))
-        self.label_2.setText(QtGui.QApplication.translate("Dialog", "Mesh", None, QtGui.QApplication.UnicodeUTF8))
-        self.label_3.setText(QtGui.QApplication.translate("Dialog", "Control", None, QtGui.QApplication.UnicodeUTF8))
-        self.label.setText(QtGui.QApplication.translate("Dialog", "Min", None, QtGui.QApplication.UnicodeUTF8))
-        self.label_4.setText(QtGui.QApplication.translate("Dialog", "Max", None, QtGui.QApplication.UnicodeUTF8))
-
index aa050e37337b160014ffa7b499c744efc793b3f8..27e56ff20335723bbc49642a32e6da3352afc602 100755 (executable)
@@ -108,13 +108,15 @@ void MessageOutput( QtMsgType type, const QMessageLogContext &context, const QSt
   switch ( type )
   {
   case QtDebugMsg:
-    //MESSAGE( "Debug: " << qPrintable(msg) );
+#ifdef QT_DEBUG_MESSAGE
+    MESSAGE( "Debug: " << qPrintable( QString(msg) ) );
+#endif
     break;
   case QtWarningMsg:
-    MESSAGE( "Warning: " << qPrintable(msg) );
+    MESSAGE( "Warning: " << qPrintable( QString(msg) ) );
     break;
   case QtFatalMsg:
-    MESSAGE( "Fatal: " << qPrintable(msg) );
+    MESSAGE( "Fatal: " << qPrintable( QString(msg) ) );
     break;
   }
 }
index 51dab073e62de32324ffd020c7599982bd403cb5..0e07e7b955a18840c73417068ef8abfa2628e83e 100644 (file)
@@ -17,8 +17,8 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-#include <QtGui>
 #include <QInputDialog>
+#include <QContextMenuEvent>
 
 #include "mainwindow.hxx"
 #include "TreeModel.hxx"
index 073aa827993dee9fef1d79b4ccf8f99873f57aa2..5bb540c91161a2d7c46f7e7371bf7940f2d5daa9 100644 (file)
@@ -20,8 +20,6 @@
 // Author: Guillaume Boulant (EDF/R&D)
 
 
-#include <QtGui>
-
 #include "TreeItem.hxx"
 #include "TreeModel.hxx"
 
index 73abaf948da6edbc24b09706794656ea29e527d8..3543de328b5297b75eb963e8c6331b7171187d20 100755 (executable)
@@ -50,7 +50,7 @@ VTKViewer_Filter::~VTKViewer_Filter()
  * call virtual method IsValid( const int theId ).
  * \param theActor - actor
  * \param theCellId - cell id.
- * \retval TRUE - if cell id is valid, else false.
+ * \retval \c true - if cell id is valid, else \c false.
  */
 bool VTKViewer_Filter::IsValid( VTKViewer_Actor* theActor, const int theCellId )
 {
index 93b1da18364ef859de1016f43797483c0483356b..61762c5f7b2abc49554c9a9fea663fdd060ce811 100644 (file)
@@ -674,7 +674,7 @@ void VTKViewer_InteractorStyle::startGlobalPan()
 }
 
 
-/*!\retval TRUE if needs redrawing*/
+/*!\retval \c true if needs redrawing*/
 bool VTKViewer_InteractorStyle::needsRedrawing()
 {
   return State == VTK_INTERACTOR_STYLE_CAMERA_ZOOM   ||
@@ -1482,7 +1482,7 @@ void  VTKViewer_InteractorStyle::RemoveFilter( const int theId )
 /*!Checks: is valid cell(node) with id \a theId in actor \a theActor.
  *\param theActor - VTKViewer_Actor pointer.
  *\param theId    - cell id.
- *\param theIsNode - boolean flag, if true - node, else - cell.
+ *\param theIsNode - boolean flag, if \c true - node, else - cell.
  */
 bool VTKViewer_InteractorStyle::IsValid( VTKViewer_Actor* theActor,
                                                const int     theId,
index d0e935b06c4e3ee19d8d7c0f23ca9cc4dc98b840..67b9e7cb09845d1b91199ad199680248eeb93075 100644 (file)
@@ -18,8 +18,9 @@
 //
 
 #include "GenericDialog.h"
+#include <QDebug>
 
-GenericDialog::GenericDialog(QDialog *parent) : QDialog(parent)
+GenericDialog::GenericDialog(QDialogparent) : QDialog(parent)
 {
   ui.setupUi(this); // A faire en premier
   
@@ -32,16 +33,14 @@ GenericDialog::GenericDialog(QDialog *parent) : QDialog(parent)
   // buttonbox (inherited features) 
 }
 
-QFrame * GenericDialog::getPanel() {
+QFrame* GenericDialog::getPanel() {
   return ui.centralPanel;
 }
 
-QDialogButtonBox * GenericDialog::getButtonBox() {
+QDialogButtonBox* GenericDialog::getButtonBox() {
   return ui.buttonBox;
 }
 
-
-#include <QDebug>
 void GenericDialog::accept() {
   qDebug() << "accept() is not implemented yet";
   QDialog::accept();
index ab4f6224204015a8b4f661e871a1d3c34e178e1a..3e99e142cfb375c682b9698a7ba5f6ea64be77e8 100644 (file)
 #ifndef _GenericDialog_HXX
 #define _GenericDialog_HXX
 
-#include <QtGui>
+#include <QDialog>
+
 #include "ui_GenericDialog.h"
 
+class QFrame;
+class QDialogButtonBox;
+
 class GenericDialog : public QDialog
 {
   Q_OBJECT
-    
+
 public:
-  GenericDialog(QDialog *parent = 0);
+  GenericDialog(QDialogparent = 0);
 
- protected:
-  QFrame * getPanel();
+protected:
+  QFrame* getPanel();
   QDialogButtonBox * getButtonBox();
-  
- protected slots:    
-    void accept();
-  //void reject();
-  
- private:
+
+protected slots:    
+  void accept();
+
+private:
   Ui_GenericDialog ui; // instance of the class defined in ui_GenericDialog.h
 };
 
index 14dc63ac0a70c6fc6f626a7d203165aa1bdadbe2..9093dbb260a2651f23366494e769f9ee9e9dd207 100644 (file)
@@ -1,6 +1,6 @@
 #include "__CLASSNAME__.h"
 
-__CLASSNAME__::__CLASSNAME__(QDialog *parent) : GenericDialog(parent)
+__CLASSNAME__::__CLASSNAME__(QDialogparent) : GenericDialog(parent)
 {
   ui.setupUi(this->getPanel());
 }
index 03132d9ec8ee2d2679dbd32d15ebf679c74a172f..a37ddb4bc1b77749ab124b6599eb158ebca3ab67 100644 (file)
@@ -1,18 +1,17 @@
 #ifndef ___CLASSNAME___HXX
 #define ___CLASSNAME___HXX
 
-#include <QtGui>
 #include "ui___CLASSNAME__.h"
 #include "GenericDialog.h"
 
 class __CLASSNAME__ : public GenericDialog
 {
   Q_OBJECT
-    
- public:
-  __CLASSNAME__(QDialog *parent = 0);
-  
- private:
+
+public:
+  __CLASSNAME__(QDialogparent = 0);
+
+private:
   Ui___CLASSNAME__ ui; // instance of the class defined in ui___CLASSNAME__.hxx
 };
 
index 97f1fadd44831838f138f8d1118a839f4014064e..df9145685bccf92df5457df24400f02091093a98 100644 (file)
@@ -1,6 +1,7 @@
 #include "__CLASSNAME__.h"
+#include <QDebug>
 
-__CLASSNAME__::__CLASSNAME__(QDialog *parent) : QDialog(parent)
+__CLASSNAME__::__CLASSNAME__(QDialogparent) : QDialog(parent)
 {
   ui.setupUi(this); // A faire en premier
   
@@ -13,7 +14,6 @@ __CLASSNAME__::__CLASSNAME__(QDialog *parent) : QDialog(parent)
   // buttonbox (inherited features) 
 }
 
-#include <QDebug>
 void __CLASSNAME__::accept() {
   qDebug() << "accept() is not implemented yet";
   QDialog::accept();
index b2cfd4f7fef93f2ab4f0095c633a070d1aabce53..37ca4437523a083170f38e6b1827a05c68d46bb3 100644 (file)
@@ -1,21 +1,21 @@
 #ifndef ___CLASSNAME___HXX
 #define ___CLASSNAME___HXX
 
-#include <QtGui>
+#include <QDialog>
+
 #include "ui___CLASSNAME__.h"
 
 class __CLASSNAME__ : public QDialog
 {
   Q_OBJECT
-    
- public:
-  __CLASSNAME__(QDialog *parent = 0);
-
- protected slots:    
-    void accept();
-  //void reject();
-  
- private:
+
+public:
+  __CLASSNAME__(QDialog* parent = 0);
+
+protected slots:    
+  void accept();
+
+private:
   Ui___CLASSNAME__ ui; // instance of the class defined in ui___CLASSNAME__.hxx
 };
 
index fbc5baa5b499f79e33d15dd82042cae2305a38cc..6c650a58b8eccce17df1fac39570b31d424c78b3 100644 (file)
 // (gboulant - 12/10/2010)
 //
 #include <QApplication>
-#include <QtGui>
 #include "GDialogTest.h"
 
 void TEST_show() {
-  GDialogTest * dialog = new GDialogTest();
+  GDialogTest* dialog = new GDialogTest();
   dialog->show();
 }
 
-int main(int argc, char *argv[])
+int main(int argc, charargv[])
 {
   QApplication app(argc, argv);
   TEST_show();
index 67a875f1af716241a4629a433a406bf09dd20125..fd4df0a0f5e4d8f001b346f5c210526894e6e55c 100644 (file)
 // (gboulant - 12/10/2010)
 //
 #include <QApplication>
-#include <QtGui>
 #include "QDialogTest.h"
 
 void TEST_show() {
-  QDialogTest * dialog = new QDialogTest();
+  QDialogTest* dialog = new QDialogTest();
   dialog->show();
 }
 
-int main(int argc, char *argv[])
+int main(int argc, charargv[])
 {
   QApplication app(argc, argv);
   TEST_show();