)
SET(qtester_HEADERS
- ${CMAKE_CURRENT_BINARY_DIR}/QDialogTest.hxx
+ ${CMAKE_CURRENT_BINARY_DIR}/QDialogTest.h
)
SET(qtester_FORMS
)
SET(gtester_HEADERS
- ${CMAKE_CURRENT_BINARY_DIR}/GDialogTest.hxx
+ ${CMAKE_CURRENT_BINARY_DIR}/GDialogTest.h
)
SET(gtester_FORMS
)
SET(GenericDialog_HEADERS
- GenericDialog.hxx
+ GenericDialog.h
)
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
)
-#include "GenericDialog.hxx"
+#include "GenericDialog.h"
GenericDialog::GenericDialog(QDialog *parent) : QDialog(parent)
{
--- /dev/null
+#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
+++ /dev/null
-#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
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
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)
gtester_SOURCES = \
gtester.cxx \
- GenericDialog.hxx \
+ GenericDialog.h \
GenericDialog.cxx
nodist_gtester_SOURCES = \
GDialogTest.cxx \
-#include "__CLASSNAME__.hxx"
+#include "__CLASSNAME__.h"
__CLASSNAME__::__CLASSNAME__(QDialog *parent) : GenericDialog(parent)
{
--- /dev/null
+#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
+++ /dev/null
-#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
-#include "__CLASSNAME__.hxx"
+#include "__CLASSNAME__.h"
__CLASSNAME__::__CLASSNAME__(QDialog *parent) : QDialog(parent)
{
--- /dev/null
+#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
+++ /dev/null
-#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
__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 "
# and form source files from ui files
# ---------------------------------------------------------
-%_moc.cxx: %.hxx
+%_moc.cxx: %.h
$(MOC) $< -o $@
-ui_%.hxx: %.ui
+ui_%.h: %.ui
$(UIC) -o $@ $<
# ---------------------------------------------------------
#
UIC_FILES = \
- ui___CLASSNAME__.hxx
+ ui___CLASSNAME__.h
#
MOC_FILES = \
__CLASSNAME___moc.cxx
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)
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 )
# 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
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
## and form source files from ui files
## ---------------------------------------------------------
##
-#%_moc.cxx: %.hxx
+#%_moc.cxx: %.h
# $(MOC) $< -o $@
#
-#ui_%.hxx: %.ui
+#ui_%.h: %.ui
# $(UIC) -o $@ $<
#
##
## ---------------------------------------------------------
##
#UIC_FILES = \
-# ui___CLASSNAME__.hxx
+# ui___CLASSNAME__.h
##
#MOC_FILES = \
# __CLASSNAME___moc.cxx
#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)
//
#include <QApplication>
#include <QtGui>
-#include "GDialogTest.hxx"
+#include "GDialogTest.h"
void TEST_show() {
GDialogTest * dialog = new GDialogTest();
//
#include <QApplication>
#include <QtGui>
-#include "QDialogTest.hxx"
+#include "QDialogTest.h"
void TEST_show() {
QDialogTest * dialog = new QDialogTest();