From c97cc6847e4a1736a08a0c2813a87dc1841e9606 Mon Sep 17 00:00:00 2001 From: mkr Date: Mon, 3 Mar 2008 14:50:09 +0000 Subject: [PATCH] Qt4 porting. --- adm_local/unix/make_common_starter.am | 6 +- configure.ac | 10 +- src/SierpinskyGUI/Makefile.am | 4 +- src/SierpinskyGUI/SIERPINSKY_icons.ts | 10 ++ src/SierpinskyGUI/SIERPINSKY_msg_en.ts | 132 +++++++++++++++++++++++++ 5 files changed, 149 insertions(+), 13 deletions(-) create mode 100644 src/SierpinskyGUI/SIERPINSKY_icons.ts create mode 100644 src/SierpinskyGUI/SIERPINSKY_msg_en.ts diff --git a/adm_local/unix/make_common_starter.am b/adm_local/unix/make_common_starter.am index 5339413..c6e076e 100644 --- a/adm_local/unix/make_common_starter.am +++ b/adm_local/unix/make_common_starter.am @@ -36,10 +36,10 @@ docdir = $(datadir)/doc/@PACKAGE@ $(MOC) $< -o $@ # qm-files generation -%.qm: %.po - $(MSG2QM) $< $@ +%.qm: %.ts + $(LRELEASE) $< -qm $@ -EXTRA_DIST=$(MOC_FILES:%_moc.cxx=%.h) $(nodist_salomeres_DATA:%.qm=%.po) +EXTRA_DIST=$(MOC_FILES:%_moc.cxx=%.h) $(nodist_salomeres_DATA:%.qm=%.ts) mostlyclean-local: rm -f @builddir@/*_moc.cxx diff --git a/configure.ac b/configure.ac index be5ecf1..8f9dc26 100644 --- a/configure.ac +++ b/configure.ac @@ -217,14 +217,6 @@ echo CHECK_QT -echo -echo --------------------------------------------- -echo testing msg2qm -echo --------------------------------------------- -echo - -CHECK_MSG2QM - echo echo --------------------------------------------- echo testing VTK @@ -349,7 +341,7 @@ echo echo Configure variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok -OpenGL_ok qt_ok msg2qm_ok vtk_ok hdf5_ok med2_ok omniORB_ok occ_ok doxygen_ok graphviz_ok gd_ok Kernel_ok Med_ok Visu_ok Randomizer_ok" +OpenGL_ok qt_ok vtk_ok hdf5_ok med2_ok omniORB_ok occ_ok doxygen_ok graphviz_ok gd_ok Kernel_ok Med_ok Visu_ok Randomizer_ok" for var in $variables do diff --git a/src/SierpinskyGUI/Makefile.am b/src/SierpinskyGUI/Makefile.am index 56cc6e1..4bf5fd1 100644 --- a/src/SierpinskyGUI/Makefile.am +++ b/src/SierpinskyGUI/Makefile.am @@ -13,7 +13,9 @@ salomeinclude_HEADERS = SierpinskyGUI.h \ SierpinskyGUI_RunDlg.h -PO_FILES = SIERPINSKY_msg_en.po SIERPINSKY_icons.po +nodist_salomeres_DATA= \ + SIERPINSKY_icons.qm \ + SIERPINSKY_msg_en.qm # Libraries targets lib_LTLIBRARIES = libSIERPINSKY.la diff --git a/src/SierpinskyGUI/SIERPINSKY_icons.ts b/src/SierpinskyGUI/SIERPINSKY_icons.ts new file mode 100644 index 0000000..c316935 --- /dev/null +++ b/src/SierpinskyGUI/SIERPINSKY_icons.ts @@ -0,0 +1,10 @@ + + + + @default + + ICON_RUN_DLG + go.png + + + diff --git a/src/SierpinskyGUI/SIERPINSKY_msg_en.ts b/src/SierpinskyGUI/SIERPINSKY_msg_en.ts new file mode 100644 index 0000000..e84e44c --- /dev/null +++ b/src/SierpinskyGUI/SIERPINSKY_msg_en.ts @@ -0,0 +1,132 @@ + + + + @default + + EXPORT_JPEG_FILE + Export JPEG image + + + EXPORT_MED_FILE + Export MED file + + + JPEG_FILES + JPEG files (*.jpg; *.jpeg) + + + MED_FILES + MED files (*.med) + + + + SierpinskyGUI + + CAPTION + Run Sierpinsky dialog + + + MENU_Sierpinsky + Sierpinsky + + + RUN + Run + + + + SierpinskyGUI_RunDlg + + BASE_POINTS + Base points + + + CANCEL_BTN + &Cancel + + + CAPTION + Run Sierpinsky Algo + + + DEFAULT + Default + + + ERR_ERROR + Warning + + + EXEC_ERROR + Can't run execution! + + + EXPORT_2_JPEG + Export to JPEG + + + EXPORT_2_MED + Export to MED + + + IMAGE_SIZE + Image size: + + + IMPORT_MED_2_VISU + Import to Post-Pro + + + JPEG_PARAMETERS_ERROR + JPEG file name is not given or image size is 0.\nContinue? + + + MED_PARAMETERS_ERROR + MED file name is not given or mesh size is 0.\nContinue? + + + MESH_SIZE + Mesh size: + + + NB_ITERATIONS + Number of iterations: + + + NO_BTN + &No + + + OK_BTN + &OK + + + RANDOM + Random + + + RESULTS + Results + + + START_BTN + &Start + + + START_POINT + Start point + + + STOP_BTN + &Stop + + + WRN_WARNING + Warning + + + YES_BTN + &Yes + + + -- 2.39.2