]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Another fix after previous integration: the .hxx files are renamed .h files (to be...
authorgdd <gdd>
Thu, 14 Feb 2013 10:14:31 +0000 (10:14 +0000)
committergdd <gdd>
Thu, 14 Feb 2013 10:14:31 +0000 (10:14 +0000)
15 files changed:
tools/dlgfactory/CMakeLists.txt
tools/dlgfactory/GenericDialog.cxx
tools/dlgfactory/GenericDialog.h [new file with mode: 0644]
tools/dlgfactory/GenericDialog.hxx [deleted file]
tools/dlgfactory/Makefile.am
tools/dlgfactory/__GDIALOG__.cxx
tools/dlgfactory/__GDIALOG__.h [new file with mode: 0644]
tools/dlgfactory/__GDIALOG__.hxx [deleted file]
tools/dlgfactory/__QDIALOG__.cxx
tools/dlgfactory/__QDIALOG__.h [new file with mode: 0644]
tools/dlgfactory/__QDIALOG__.hxx [deleted file]
tools/dlgfactory/dlgfactory.py
tools/dlgfactory/dlgfactory.sh
tools/dlgfactory/gtester.cxx
tools/dlgfactory/qtester.cxx

index 2821d4d37be3fee55be18234731944fb22f65d00..7df07c79980f39e937130e08b629d7ddeaae2510 100755 (executable)
@@ -28,7 +28,7 @@ SET(qtester_SOURCES
   )
 
 SET(qtester_HEADERS 
-  ${CMAKE_CURRENT_BINARY_DIR}/QDialogTest.hxx
+  ${CMAKE_CURRENT_BINARY_DIR}/QDialogTest.h
   )
 
 SET(qtester_FORMS
@@ -41,7 +41,7 @@ SET(gtester_SOURCES
   )
 
 SET(gtester_HEADERS 
-  ${CMAKE_CURRENT_BINARY_DIR}/GDialogTest.hxx
+  ${CMAKE_CURRENT_BINARY_DIR}/GDialogTest.h
   )
 
 SET(gtester_FORMS
@@ -49,7 +49,7 @@ SET(gtester_FORMS
   )
 
 SET(GenericDialog_HEADERS 
-  GenericDialog.hxx
+  GenericDialog.h
   )
 
 SET(GenericDialog_FORMS
@@ -58,11 +58,11 @@ SET(GenericDialog_FORMS
   
 ADD_DEFINITIONS(${QT_DEFINITIONS})
 
-ADD_CUSTOM_COMMAND( OUTPUT QDialogTest.cxx  QDialogTest.hxx  QDialogTest.ui
+ADD_CUSTOM_COMMAND( OUTPUT QDialogTest.cxx  QDialogTest.h  QDialogTest.ui
   COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/dlgfactory.py -s -n QDialogTest -t qdialog
   )
 
-ADD_CUSTOM_COMMAND( OUTPUT GDialogTest.cxx  GDialogTest.hxx  GDialogTest.ui
+ADD_CUSTOM_COMMAND( OUTPUT GDialogTest.cxx  GDialogTest.h  GDialogTest.ui
   COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/dlgfactory.py -s -n GDialogTest -t gdialog
   )
 
index 9b8456674ed25679c40149ed8340005bbca360a9..9c336f4921be22fcfe11a37487958f30cde7490b 100644 (file)
@@ -1,4 +1,4 @@
-#include "GenericDialog.hxx"
+#include "GenericDialog.h"
 
 GenericDialog::GenericDialog(QDialog *parent) : QDialog(parent)
 {
diff --git a/tools/dlgfactory/GenericDialog.h b/tools/dlgfactory/GenericDialog.h
new file mode 100644 (file)
index 0000000..1c9d7ea
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef _GenericDialog_HXX
+#define _GenericDialog_HXX
+
+#include <QtGui>
+#include "ui_GenericDialog.h"
+
+class GenericDialog : public QDialog
+{
+  Q_OBJECT
+    
+public:
+  GenericDialog(QDialog *parent = 0);
+
+ protected:
+  QFrame * getPanel();
+  QDialogButtonBox * getButtonBox();
+  
+ protected slots:    
+    void accept();
+  //void reject();
+  
+ private:
+  Ui_GenericDialog ui; // instance of the class defined in ui_GenericDialog.h
+};
+
+
+#endif // _GenericDialog_HXX
diff --git a/tools/dlgfactory/GenericDialog.hxx b/tools/dlgfactory/GenericDialog.hxx
deleted file mode 100644 (file)
index 1c9d7ea..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#ifndef _GenericDialog_HXX
-#define _GenericDialog_HXX
-
-#include <QtGui>
-#include "ui_GenericDialog.h"
-
-class GenericDialog : public QDialog
-{
-  Q_OBJECT
-    
-public:
-  GenericDialog(QDialog *parent = 0);
-
- protected:
-  QFrame * getPanel();
-  QDialogButtonBox * getButtonBox();
-  
- protected slots:    
-    void accept();
-  //void reject();
-  
- private:
-  Ui_GenericDialog ui; // instance of the class defined in ui_GenericDialog.h
-};
-
-
-#endif // _GenericDialog_HXX
index 70b1c5b3000b72f7adb6882ff3f65a2501c73917..b7090df21152e4b20d5be400e5c5fad0f5a5bee6 100644 (file)
 
 include $(top_srcdir)/adm_local/unix/make_common_starter.am
 
-# meta object implementation files generation (moc)
-%_moc.cxx: %.hxx
-       $(MOC) $(MOC_FLAGS) $< -o $@
-
 # Program targets
 bin_PROGRAMS = qtester gtester
 
@@ -45,10 +41,10 @@ MOC_FILES_GDIALOG= \
        GenericDialog_moc.cxx \
        GDialogTest_moc.cxx
 
-QDIALOG_TEMPLATES = __QDIALOG__.ui __QDIALOG__.hxx __QDIALOG__.cxx
-GDIALOG_TEMPLATES = __GDIALOG__.ui __GDIALOG__.hxx __GDIALOG__.cxx
-QDIALOG_FILES = QDialogTest.hxx QDialogTest.cxx QDialogTest.ui
-GDIALOG_FILES = GDialogTest.hxx GDialogTest.cxx GDialogTest.ui 
+QDIALOG_TEMPLATES = __QDIALOG__.ui __QDIALOG__.h __QDIALOG__.cxx
+GDIALOG_TEMPLATES = __GDIALOG__.ui __GDIALOG__.h __GDIALOG__.cxx
+QDIALOG_FILES = QDialogTest.h QDialogTest.cxx QDialogTest.ui
+GDIALOG_FILES = GDialogTest.h GDialogTest.cxx GDialogTest.ui 
 
 # generated sources
 BUILT_SOURCES = $(UIC_FILES_QDIALOG) $(UIC_FILES_GDIALOG)
@@ -86,7 +82,7 @@ qtester_LDFLAGS = \
 
 gtester_SOURCES = \
        gtester.cxx \
-       GenericDialog.hxx \
+       GenericDialog.h \
        GenericDialog.cxx
 nodist_gtester_SOURCES = \
        GDialogTest.cxx \
index 705c7213fa8bd74554a56017c2578a71c55bb3fd..14dc63ac0a70c6fc6f626a7d203165aa1bdadbe2 100644 (file)
@@ -1,4 +1,4 @@
-#include "__CLASSNAME__.hxx"
+#include "__CLASSNAME__.h"
 
 __CLASSNAME__::__CLASSNAME__(QDialog *parent) : GenericDialog(parent)
 {
diff --git a/tools/dlgfactory/__GDIALOG__.h b/tools/dlgfactory/__GDIALOG__.h
new file mode 100644 (file)
index 0000000..ed15470
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef ___CLASSNAME___HXX
+#define ___CLASSNAME___HXX
+
+#include <QtGui>
+#include "ui___CLASSNAME__.h"
+#include "GenericDialog.hxx"
+
+class __CLASSNAME__ : public GenericDialog
+{
+  Q_OBJECT
+    
+ public:
+  __CLASSNAME__(QDialog *parent = 0);
+  
+ private:
+  Ui___CLASSNAME__ ui; // instance of the class defined in ui___CLASSNAME__.hxx
+};
+
+
+#endif // ___CLASSNAME___HXX
diff --git a/tools/dlgfactory/__GDIALOG__.hxx b/tools/dlgfactory/__GDIALOG__.hxx
deleted file mode 100644 (file)
index ed15470..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#ifndef ___CLASSNAME___HXX
-#define ___CLASSNAME___HXX
-
-#include <QtGui>
-#include "ui___CLASSNAME__.h"
-#include "GenericDialog.hxx"
-
-class __CLASSNAME__ : public GenericDialog
-{
-  Q_OBJECT
-    
- public:
-  __CLASSNAME__(QDialog *parent = 0);
-  
- private:
-  Ui___CLASSNAME__ ui; // instance of the class defined in ui___CLASSNAME__.hxx
-};
-
-
-#endif // ___CLASSNAME___HXX
index 32134c3951ecb6cf63a7d0312129862796907005..97f1fadd44831838f138f8d1118a839f4014064e 100644 (file)
@@ -1,4 +1,4 @@
-#include "__CLASSNAME__.hxx"
+#include "__CLASSNAME__.h"
 
 __CLASSNAME__::__CLASSNAME__(QDialog *parent) : QDialog(parent)
 {
diff --git a/tools/dlgfactory/__QDIALOG__.h b/tools/dlgfactory/__QDIALOG__.h
new file mode 100644 (file)
index 0000000..b2cfd4f
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef ___CLASSNAME___HXX
+#define ___CLASSNAME___HXX
+
+#include <QtGui>
+#include "ui___CLASSNAME__.h"
+
+class __CLASSNAME__ : public QDialog
+{
+  Q_OBJECT
+    
+ public:
+  __CLASSNAME__(QDialog *parent = 0);
+
+ protected slots:    
+    void accept();
+  //void reject();
+  
+ private:
+  Ui___CLASSNAME__ ui; // instance of the class defined in ui___CLASSNAME__.hxx
+};
+
+
+#endif // ___CLASSNAME___HXX
diff --git a/tools/dlgfactory/__QDIALOG__.hxx b/tools/dlgfactory/__QDIALOG__.hxx
deleted file mode 100644 (file)
index b2cfd4f..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#ifndef ___CLASSNAME___HXX
-#define ___CLASSNAME___HXX
-
-#include <QtGui>
-#include "ui___CLASSNAME__.h"
-
-class __CLASSNAME__ : public QDialog
-{
-  Q_OBJECT
-    
- public:
-  __CLASSNAME__(QDialog *parent = 0);
-
- protected slots:    
-    void accept();
-  //void reject();
-  
- private:
-  Ui___CLASSNAME__ ui; // instance of the class defined in ui___CLASSNAME__.hxx
-};
-
-
-#endif // ___CLASSNAME___HXX
index 5eca0eea419f0cc088137f10c3d3b9a86aac96ee..8f3c57b96349d9327a2ad8f2c6866fa41baf26d9 100755 (executable)
@@ -22,7 +22,7 @@ import sys, os
 
 __descr_str = ""
 __descr_str += "This script generates a set of files to initiate a dialog Qt window "
-__descr_str += "(i.e. MyDialog.ui, MyDialog.hxx and MyDialog.cxx files). "
+__descr_str += "(i.e. MyDialog.ui, MyDialog.h and MyDialog.cxx files). "
 __descr_str += "The dialog window can be a self-consistent class (i.e. depends only "
 __descr_str += "on Qt classes) or a class that inherits class GenericDialog "
 __descr_str += "which implementation is provided in this package and "
@@ -38,10 +38,10 @@ __msg_str = """
 # and form source files from ui files
 # ---------------------------------------------------------
 
-%_moc.cxx: %.hxx
+%_moc.cxx: %.h
        $(MOC) $< -o $@
 
-ui_%.hxx: %.ui
+ui_%.h: %.ui
        $(UIC) -o $@ $<
 
 
@@ -51,7 +51,7 @@ ui_%.hxx: %.ui
 # ---------------------------------------------------------
 #
 UIC_FILES = \
-       ui___CLASSNAME__.hxx
+       ui___CLASSNAME__.h
 #
 MOC_FILES = \
        __CLASSNAME___moc.cxx
@@ -70,7 +70,7 @@ BUILT_SOURCES = $(UIC_FILES)
 nodist_<MyLibrary>_la_SOURCES += $(MOC_FILES) $(UIC_FILES)
 
 dist_<MyLibrary>_la_SOURCES += __CLASSNAME__.cxx
-salomeinclude_HEADERS       += __CLASSNAME__.hxx
+salomeinclude_HEADERS       += __CLASSNAME__.h
 
 <MyLibrary>_la_CPPFLAGS = \\
        $(QT_CXXFLAGS)
@@ -100,7 +100,7 @@ if __name__ == "__main__":
   className = options.className
   classType = options.classType
 
-  for ext in [".cxx", ".hxx", ".ui"]:
+  for ext in [".cxx", ".h", ".ui"]:
     file_dest = className + ext 
     if classType == "qdialog":
       file_src = os.path.join( tool_path, "__QDIALOG__" + ext )
index 0f127d5157ea4a141989fd81e0923718707a6607..0e17ae81f6c3b7f4368b99a43b263efb3f4136d2 100755 (executable)
@@ -29,7 +29,7 @@
 # DESCRIPTION:
 #
 # This script generates a set of files to initiate a dialog qt window
-# (i.e. MyDialog.ui, MyDialog.hxx and MyDialog.cxx files).
+# (i.e. MyDialog.ui, MyDialog.h and MyDialog.cxx files).
 #
 # The dialog window can be a self-consistent class (i.e. depends only
 # on Qt classes) or a classe that inherits from the class
@@ -83,11 +83,11 @@ fi
 
 if [ "$classType" = "qdialog" ]; then
     sed s/__CLASSNAME__/$className/g $TOOLDIRNAME/__QDIALOG__.ui > $className.ui
-    sed s/__CLASSNAME__/$className/g $TOOLDIRNAME/__QDIALOG__.hxx > $className.hxx
+    sed s/__CLASSNAME__/$className/g $TOOLDIRNAME/__QDIALOG__.h > $className.h
     sed s/__CLASSNAME__/$className/g $TOOLDIRNAME/__QDIALOG__.cxx > $className.cxx
 else
     sed s/__CLASSNAME__/$className/g $TOOLDIRNAME/__GDIALOG__.ui > $className.ui
-    sed s/__CLASSNAME__/$className/g $TOOLDIRNAME/__GDIALOG__.hxx > $className.hxx
+    sed s/__CLASSNAME__/$className/g $TOOLDIRNAME/__GDIALOG__.h > $className.h
     sed s/__CLASSNAME__/$className/g $TOOLDIRNAME/__GDIALOG__.cxx > $className.cxx    
 fi
 
@@ -107,10 +107,10 @@ displayMessage()
 ## and form source files from ui files
 ## ---------------------------------------------------------
 ##
-#%_moc.cxx: %.hxx
+#%_moc.cxx: %.h
 #      $(MOC) $< -o $@
 #
-#ui_%.hxx: %.ui
+#ui_%.h: %.ui
 #      $(UIC) -o $@ $<
 #
 ##
@@ -120,7 +120,7 @@ displayMessage()
 ## ---------------------------------------------------------
 ##
 #UIC_FILES = \
-#      ui___CLASSNAME__.hxx
+#      ui___CLASSNAME__.h
 ##
 #MOC_FILES = \
 #      __CLASSNAME___moc.cxx
@@ -139,7 +139,7 @@ displayMessage()
 #nodist_<MyLibrary>_la_SOURCES += $(MOC_FILES) $(UIC_FILES)
 #
 #dist_<MyLibrary>_la_SOURCES += __CLASSNAME__.cxx
-#salomeinclude_HEADERS       += __CLASSNAME__.hxx
+#salomeinclude_HEADERS       += __CLASSNAME__.h
 #
 #<MyLibrary>_la_CPPFLAGS = \
 #      $(QT_CXXFLAGS)
index 0f636c2402c0f0464c4b91f2c3afc6dfe4d82835..aec951ad3d4a8594a461705fc7e2124ee4dc7ed5 100644 (file)
@@ -23,7 +23,7 @@
 //
 #include <QApplication>
 #include <QtGui>
-#include "GDialogTest.hxx"
+#include "GDialogTest.h"
 
 void TEST_show() {
   GDialogTest * dialog = new GDialogTest();
index eeb15e5fd9277a236fc65722ff153467402d2b42..dbb2943529e4970cbd4210e96d837a078bf33c20 100644 (file)
@@ -23,7 +23,7 @@
 //
 #include <QApplication>
 #include <QtGui>
-#include "QDialogTest.hxx"
+#include "QDialogTest.h"
 
 void TEST_show() {
   QDialogTest * dialog = new QDialogTest();