From e8dade84fa7fd2ed1840b75b8cc2d62cc2eb39c1 Mon Sep 17 00:00:00 2001 From: sfb Date: Wed, 6 Apr 2011 15:45:47 -0500 Subject: [PATCH] Added: Initial UI work for Zone Painter conversion. --- .../src/plugins/CMakeLists.txt | 3 +- .../src/plugins/zone_painter/CMakeLists.txt | 45 ++++ .../zone_painter/images/color-fill.png | Bin 0 -> 7786 bytes .../images/color-picker-black.png | Bin 0 -> 5579 bytes .../plugins/zone_painter/images/colorize.png | Bin 0 -> 6760 bytes .../zone_painter/images/draw-brush.png | Bin 0 -> 3749 bytes .../plugins/zone_painter/images/go-down-7.png | Bin 0 -> 3979 bytes .../plugins/zone_painter/images/go-jump-4.png | Bin 0 -> 2676 bytes .../plugins/zone_painter/images/lock-6.png | Bin 0 -> 4324 bytes .../zone_painter/images/lock-silver.png | Bin 0 -> 4992 bytes .../zone_painter/painter_dock_widget.cpp | 16 ++ .../zone_painter/painter_dock_widget.h | 22 ++ .../zone_painter/painter_dock_widget.ui | 58 ++++++ .../src/plugins/zone_painter/qnel_widget.cpp | 197 ++++++++++++++++++ .../src/plugins/zone_painter/qnel_widget.h | 130 ++++++++++++ .../src/plugins/zone_painter/zone_painter.qrc | 12 ++ .../zone_painter/zone_painter_main_window.cpp | 61 ++++++ .../zone_painter/zone_painter_main_window.h | 36 ++++ .../zone_painter/zone_painter_main_window.ui | 110 ++++++++++ .../zone_painter/zone_painter_plugin.cpp | 123 +++++++++++ .../zone_painter/zone_painter_plugin.h | 105 ++++++++++ .../zone_painter_settings_page.cpp | 67 ++++++ .../zone_painter/zone_painter_settings_page.h | 58 ++++++ .../zone_painter_settings_page.ui | 92 ++++++++ 24 files changed, 1134 insertions(+), 1 deletion(-) create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/CMakeLists.txt create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/images/color-fill.png create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/images/color-picker-black.png create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/images/colorize.png create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/images/draw-brush.png create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/images/go-down-7.png create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/images/go-jump-4.png create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/images/lock-6.png create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/images/lock-silver.png create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/painter_dock_widget.cpp create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/painter_dock_widget.h create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/painter_dock_widget.ui create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/qnel_widget.cpp create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/qnel_widget.h create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter.qrc create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_main_window.cpp create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_main_window.h create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_main_window.ui create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_plugin.cpp create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_plugin.h create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_settings_page.cpp create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_settings_page.h create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_settings_page.ui diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/CMakeLists.txt b/code/nel/tools/3d/object_viewer_qt/src/plugins/CMakeLists.txt index 4ac0fff11..d5a792acd 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/CMakeLists.txt +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/CMakeLists.txt @@ -3,4 +3,5 @@ ADD_SUBDIRECTORY(example) ADD_SUBDIRECTORY(ovqt_sheet_builder) ADD_SUBDIRECTORY(log) ADD_SUBDIRECTORY(disp_sheet_id) -ADD_SUBDIRECTORY(object_viewer) \ No newline at end of file +ADD_SUBDIRECTORY(object_viewer) +ADD_SUBDIRECTORY(zone_painter) \ No newline at end of file diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/CMakeLists.txt b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/CMakeLists.txt new file mode 100644 index 000000000..8b473854e --- /dev/null +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/CMakeLists.txt @@ -0,0 +1,45 @@ +INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${LIBXML2_INCLUDE_DIR} + ${QT_INCLUDES}) + +FILE(GLOB SRC *.cpp *.h) + +SET(OVQT_EXT_SYS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/../../extension_system/iplugin.h + ${CMAKE_CURRENT_SOURCE_DIR}/../../extension_system/iplugin_manager.h + ${CMAKE_CURRENT_SOURCE_DIR}/../../extension_system/iplugin_spec.h) + +SET(OVQT_PLUG_ZONE_PAINTER_HDR zone_painter_plugin.h + qnel_widget.h + zone_painter_settings_page.h + zone_painter_main_window.h + painter_dock_widget.h) + +SET(OVQT_PLUG_ZONE_PAINTER_UIS zone_painter_settings_page.ui zone_painter_main_window.ui painter_dock_widget.ui) + +SET(OVQT_PLUG_ZONE_PAINTER_RCS zone_painter.qrc) + +SET(QT_USE_QTGUI TRUE) +SET(QT_USE_QTOPENGL TRUE) + +QT4_WRAP_CPP(OVQT_PLUG_ZONE_PAINTER_MOC_SRC ${OVQT_PLUG_ZONE_PAINTER_HDR}) +QT4_ADD_RESOURCES( OVQT_PLUG_ZONE_PAINTER_RC_SRCS ${OVQT_PLUG_ZONE_PAINTER_RCS}) +QT4_WRAP_UI(OVQT_PLUG_ZONE_PAINTER_UI_HDRS ${OVQT_PLUG_ZONE_PAINTER_UIS}) + +SOURCE_GROUP(QtResources FILES ${OVQT_PLUG_ZONE_PAINTER_UIS} ${OVQT_PLUG_ZONE_PAINTER_RCS}) +SOURCE_GROUP(QtGeneratedUiHdr FILES ${OVQT_PLUG_ZONE_PAINTER_UI_HDRS}) +SOURCE_GROUP(QtGeneratedMocSrc FILES ${OVQT_PLUG_ZONE_PAINTER_MOC_SRC} ${OVQT_PLUG_ZONE_PAINTER_RC_SRCS}) +SOURCE_GROUP("Zone Painter Plugin" FILES ${SRC}) +SOURCE_GROUP("OVQT Extension System" FILES ${OVQT_EXT_SYS_SRC}) + +ADD_LIBRARY(ovqt_plugin_zone_painter MODULE ${SRC} ${OVQT_PLUG_ZONE_PAINTER_MOC_SRC} ${OVQT_PLUG_ZONE_PAINTER_RC_SRCS} ${OVQT_EXT_SYS_SRC} ${OVQT_PLUG_ZONE_PAINTER_UI_HDRS}) + +TARGET_LINK_LIBRARIES(ovqt_plugin_zone_painter ovqt_plugin_core nelmisc nel3d ${QT_LIBRARIES} ${QT_QTOPENGL_LIBRARY}) + +NL_DEFAULT_PROPS(ovqt_plugin_zone_painter "NeL, Tools, 3D: Object Viewer Qt Plugin: Zone Painter") +NL_ADD_RUNTIME_FLAGS(ovqt_plugin_zone_painter) +NL_ADD_LIB_SUFFIX(ovqt_plugin_zone_painter) + +ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} -DQT_PLUGIN -DQT_SHARED ${QT_DEFINITIONS}) + +INSTALL(TARGETS ovqt_plugin_zone_painter LIBRARY DESTINATION lib RUNTIME DESTINATION bin ARCHIVE DESTINATION lib COMPONENT tools3d) diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/images/color-fill.png b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/images/color-fill.png new file mode 100644 index 0000000000000000000000000000000000000000..b18b56e14fdd968105e425b39a82bc649ca79aa7 GIT binary patch literal 7786 zcma)Bbx>T-vR+sqxLeR&f@INMf-X*QcMAj$?j9hxd$0s|0txQEAvghoF0MZ;I3!50 zx4HM-diDN#Z>oB_>P&yrU-z8THFG9LLrtClmj)LA01zlD$Y`OoHXN7flCr^$&->XgKCMOePGuvSkqw&PXBA`XQuD^fAM@PRk-1@!R z^v2jDlh9#Kw7NmAzeDFkhn!94Co_PQ93Kc&)OilV62ZY?&XxC>TG>bX>Eu=}`mag+ z%$ZK|gn#|ofn5CjGp7>X6ts5l|M*V+G>V$G1?X$WjlqpZiEdp$bWN})MO=HoSs{Nd z00K+{zC4*jBS0vcvDGe_jXdQQofuqeE{$!;zjgv7Afkdlf0mh9B}1CGS=TF|8q&$1mPGSq@P(qu)aR;qag8=T0Qy7_V+cmzD&5HeMh3W#p(Mx5 z4D+buxn&l8-x1cTIbxC;NKGsqjF*#om*-0m{lxFi$?$w>5Upzo0jQ<9RxU`ex+;tO znDsIK?(CTH%eCSFq*=d6X%J7HZmH8{aQ;b=f-qc;igk13bmLRNoyIy9YcF*exdz4q zj_*^9rM4}JPRCm(pd^qK`UNY?hPVbs{gTzv(4jr|dpiYRl>}S2$NK4s`0;H7ON2$8 z=62}edsPayL`$+k+^YE36vF1#q9X5HKii0N7A3^{C>@<)Q z|NGi@Im;4BP7|w+Y^3m5W(_~RSgw@ABD?>dMx^=q2XazN@`2|T6fsczm?DixO{?t2 zan7FliYlk!P{I70cXd5{Px+Ng2w3kP@eo~CbK}OO3wq31VrtdEYHKL@X^em9klAYQKI#AFg#i2?aNscG4%{5v? zLA$m@@nApdTj7}Io&pGn{nJiInvz)Iz7}W$X0n+>(+(E|WWKlEYyKHWm}0vt4pO_n z!0P>x(-UC#Q<>4XyycGxt>N-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$huJb3I5%Pb|)-`!D0RRKAn1Vv8gE$G+kR)xL`bj@W5~g}? z=bAnlCE3m1(W|df)vwgAN~hilwg9DiLXd;H21vg@qt680;XJt!){)*Ca@B zT*ycOz@FepIpz*Z^NsrbC5w%HIppHX} zMA@9Q|14({9OMlWG2e0WA!maYnE(jMtV-~rNTYmxOoS*M7tHj+&YgsAFjV+_MUD>@ zd)tjXiac}lkHU4%D%1=u0J4CKUUMQ?Bj3lCvPvWB3uq@B;jaJq__sE;O~1jGo@b~p zroacH$#EMrhhOTHtTcy*PX>oio+r*Jy?W+E3;Zdb@(qFhP{`Nj4h@b}Fl!Hgd2dzs z_&Qek6tQ-Ny!RDNWyQpVp;EF?sLpx!-hTjpJ!Stz;Q(S#VW^m}m>2>oBYRg|R$TI5z_02F-~R#d z@N#f*ME~!A_#@{r9Kh)>C0!SLl&2pG;Oy`3Eh{Se&$C|Va?{~v^|#sghZaS<`mhfn0~|HJWLdjH2RfHj*IZ~(@?9F4pj z{ezIcC_qq9kcf+?o1Z<>8}*l3!M;2M=XC2|rvP7j6hJ>1?S%4V*Rsd4-(`6H12@h4 p-_th6hPwX=_3vU{|9A_#{Pq4P)&r?m!#D^)OHEJpwX$u@e*qw*C941c literal 0 HcmV?d00001 diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/images/colorize.png b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/images/colorize.png new file mode 100644 index 0000000000000000000000000000000000000000..f48e18299dc5649ffc260c0dd98c01b6c5359aba GIT binary patch literal 6760 zcmai(Wl&pf*S4wPE+s&4DDK6zKya7hZow@Smm&p%JEah4p%k}bMS>K!K!HMVhvH6) z=H9vsBe+KxoVQ+U+z}Z51*-v_;WgHi?sv~W8x^8`OV6k{_+cgCi_>P- zM7o|4uP>*AVVKw3k3`4*mXh#1)hH?@O3;x~MY+gW(DaXwR!z-H$KqCAy3Eo3krPAI z)2vwgg7T@F{UykeROj*aeaB;ibKX63cHcICN80OWl}Zy9e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?d00001 diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/images/draw-brush.png b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/images/draw-brush.png new file mode 100644 index 0000000000000000000000000000000000000000..e214eb770b4cca50170bb6234ff3d25c3a246382 GIT binary patch literal 3749 zcma)9c{E#FxIZO9?R!vRKvryEdhe{Y_qX=mzu!5(Z}0E>_Btu{w&uJ%Vmtr< z@LF12aRjZ=QR6-i_9Rs3IB1UhTAN=1E%@x3HpPSHM2LlZH~^fjIcmqe#GZ&BO-6+n z2Y}Y-pSHl-@c{rxg5?!sXUvze0&IxKP#nE=o4mcUCtVfgnyIYU;QzS}+1LOexNM$B z$xDYG*FkYIrF$Mf6~3(ev7g(D8s%v!Xb}*U^hHBmf~z1Q)W@PTlojUFdG8|?Bg0<( z%F8{9Jn-&y1~z(?RdjHwE5{gTeZ8wSUp;ztrDgW-ccrYoV(gEvv?-lSxk%#+NF80> z)uok{1C+TrJ(x1uqL^b<{P2nl(L-gMzNoZ37v$dPaTSZj((h2l8lKhGhUWL&WbN!9 z)Fhge!-7W}ss>hisw1PLpS^sE>X6OQ+n8y)&owU*{ndCMXUKc}{zvBe(lM&@7rJ}> zrNH5`%F4=vgT2+m^?U4GAI735uAR5602J}6Kxt{LzBei{lfyZoXP<)%+IK$=3Zr~*X!d@jW zKXP$+j2tmP5Pws&G8G~EnoKUQtv!`;CE;Oux`7?HHaE3-1+cdY-C3KucJ^}c-(HGB z*TcTGpAgrN70Q$=Z*2VS(W6JLmm$wy)YpeE6-STne%wE)!>NfLe`uB_Om3i13|(AZ zDb1~|=T_hCsl;Njwde_h=8eBDGR5i3aZ?XOdZQvEuic<0#7Syix+I-%qZttuwc_0p zyCqWh89I((^0xb`0{GEoc_?FrH;Hzb&6u_d=q<``DB;`{`lG6A8kT0Tb~E2Pom!z}C2Nh#-tLRMF1g`&uR1hx_J6RY$OACg%!g=idRh~%>E zmfI1xGnJHl^%($AMtLct#lw;NpA||lzLU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2w9`X66c SFOwJ`1+X-;y;5!Blki`KDfYbp literal 0 HcmV?d00001 diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/images/go-down-7.png b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/images/go-down-7.png new file mode 100644 index 0000000000000000000000000000000000000000..566be207dc564fecae79b05ef981a9902dbd9b62 GIT binary patch literal 3979 zcma)jODo$Ogk$QmVN8~dQKR%qGc+Sv-(e@@1K~q}W*CvM2gc+-A;SB)rR{jYf8uX0s&*USlrV~vy{*E6z z)CaV8Ch8$HP5md=vN2Ej#&FSj8#(JuF7?iLUT~-INYV*?jg>P^;5r5K#2OkuD%8?- zOYp3c!oSG@7qgZ0v^_2Tcs-@&`9#x2Z7}RMpLn{-l_+qAmti=7RZlRoQSZI3ZGBm8 ziyl!`UiHPgI^`?UZ?F#^Str#GF3m6*8=aQFCQk`&+au;wI?c6g%}`4&*IX3%kz+!7 z#oa`$#0~&sV;g(302DsrY(`^)@srkfJMEuJ#eebS)}K}Op24qq{+iDu%WMo_$uX6n z)*7Xg(|JdqqWN9VFxjKAoy>)j%r1`^LikEUIil=#aB~6rEN=b5u-YbRkD?>m zEX_ROv*)KKxO;7Wu+8VD+|S!{enD$_=r_i!1*ei{7Oe>~bFTqmLs}d@eY$ge1;s_M zu3^1Re)0AU0Pv&MgeDz5_R7agQ$~NLG6AP0!X@C(0e<1f`J%^e-c4K&xGrdDav*#p z=<*S^42Y%eD}rVK{v_Z_&MM$9FY)%QyFl|u=qexZwq!Z8XOZ3a&~waKL9kH1NmN;J z2mM5EEL$zZivfm(^+o80KU+NrcM)u{Tr`9~UcUWdqmC~1 z2F?Nj=cTV_njCy>K)FzvYX%VR=@p{0@mIf)(FRfzbH1LO1Sd4!6{SPG`W z7o!O4BO=+$d9UyE8Vf%+Rf!=wrenQpI=S!TezENu;;*(_QgRraTxM0BItbS(Lo79| zAj_HD{V#Z=I&sG>T1^``prZb(J@ok29rDQDt+cX)TLv(*Qeojn`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z?ErB0@xj7nW&d8w<&lG(hr7GSLvI-mFDF^Ie@eV%ZE+B98(Dc7sH~uem*D@0FhCj_ z$jZsUWbY-b+5PMBAAA4n6rl1Dn2IS33Rje)JrL+s+9}))qh!+nu0I}4JbbfH!q3l7#^dj5h|8bqzqhfWRN6~J0D3yN5qPZ! G5&r=Wh-O*< literal 0 HcmV?d00001 diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/images/go-jump-4.png b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/images/go-jump-4.png new file mode 100644 index 0000000000000000000000000000000000000000..d5aaa93bb48b6cf7791dd5aa2f0362885b3ac346 GIT binary patch literal 2676 zcma);XH-+!8ir2-Lg)}$Kn5dSG?0WMy(K6S#sG#Q9YUx=fY7Ch(vdC= z1BhV&HBtr`iZTeOp-iL+3Il_9gI?EN_t(99o$q_sI{SUjdG}uX$Ih`ods;+LUJw8P z5u6Ryk*gL51>xg%dT`_nSNQyFPh+{t9XptgRIUg_*qo;Tz~SbD0(r?7D;&Ixjj#;l zs>QeBZ2si~01yWp){+oEwc-}qKyZ=XpP11ZxY3^sc-8dz+;27Mzbz%-kTc4E%0i>D zQAVTD?T*BU!l@vl{M8&a=Tz9`t)o}VLPqyLp1%FLSijZ6@!0)i+t!#QX|}xL{MH0x z`=*Xg;MVS5Yx+@9t+nme+Kcn%OmScuirlMyn_O+C{o2h@K-2a@_=v@38KTJU(6NY0`cD63)PrluGjbnH;sY22t zEyYzfcaqSM4Hg^%&9FL3qvL@0HU-L+gz-pVR7Jg{+IqtoI1cifuQoP|o7s~Tk~!f| z#&26IGYR$Zw4tGyzZ7j9nRU4%E+4%Fdu)9*?ll|(+h376nb)ffc!_soh8V2vhNrS| zsVQIXSOXRfZV9#;#qguW3s&|_WXiod%|qG!R_C#~C^e{DcTqLZTqJ;(63p1aU=+>b zCS|pL0{ivBG&M(Ro~e|LNh6f~5u!Q5Y7vmhK%GlH)QkE90EYkOl)*Vtqr3=*RvJ*m4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qmG1yOz|+pgnlWMANSems1#uDDKdGPY)&n<>{xU=UuC7v$l%zC}A+ z3@O}s=-%!sQ#dzk{H4*~X{B~oF8;$F`{mk5Laa)HM~;oP^PWTScRA(x&@zOD?e`tm za`Gu-WO(%7P!%r^VV@|OE|Le>ejLUsjU?}G!%T6w+pb%KFChi1kDOz4>Mhh{1i>l6 zln2YNb@^7ao9Fu*%MjuZS}Q11rIgN_TbbKi&B)u<${Pu@@kHJLAO;bI2tmYz#Ka9n zrD38_n7D)xL<$ChIH9_=|4)I7n=Q&N;QudRh6Wwq6iED|fI!(GUA>TigSWRkOhn{g zEtD_P#?8gW&DBfT&C_1Q`M*=VL=YN!2oW)1Q4!hBx__1kx_=rNxcPY6AORK6055MV zXLc25q?PB<>PG1e5Bp!<;;}yBe>DEn+YjZ0azWanto~K`CldKj7mI(pRJN<#{F?!Q NmYS~WC%EN{{{k*kVe|k1 literal 0 HcmV?d00001 diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/painter_dock_widget.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/painter_dock_widget.cpp new file mode 100644 index 000000000..66315aaf7 --- /dev/null +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/painter_dock_widget.cpp @@ -0,0 +1,16 @@ +#include "painter_dock_widget.h" +#include "ui_painter_dock_widget.h" + +#include "qnel_widget.h" + +PainterDockWidget::PainterDockWidget(QWidget *parent) : + QDockWidget(parent), + ui(new Ui::PainterDockWidget) +{ + ui->setupUi(this); +} + +PainterDockWidget::~PainterDockWidget() +{ + delete ui; +} diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/painter_dock_widget.h b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/painter_dock_widget.h new file mode 100644 index 000000000..27a777d75 --- /dev/null +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/painter_dock_widget.h @@ -0,0 +1,22 @@ +#ifndef PAINTER_DOCK_WIDGET_H +#define PAINTER_DOCK_WIDGET_H + +#include + +namespace Ui { + class PainterDockWidget; +} + +class PainterDockWidget : public QDockWidget +{ + Q_OBJECT + +public: + explicit PainterDockWidget(QWidget *parent = 0); + ~PainterDockWidget(); + +private: + Ui::PainterDockWidget *ui; +}; + +#endif // PAINTER_DOCK_WIDGET_H diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/painter_dock_widget.ui b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/painter_dock_widget.ui new file mode 100644 index 000000000..24c3d048a --- /dev/null +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/painter_dock_widget.ui @@ -0,0 +1,58 @@ + + + PainterDockWidget + + + + 0 + 0 + 304 + 510 + + + + + 300 + 80 + + + + QDockWidget::DockWidgetFloatable|QDockWidget::DockWidgetMovable + + + Painter Modes + + + + + + 0 + 0 + 300 + 480 + + + + 0 + + + + Paint Tiles + + + + + Paint Colors + + + + + Paint Displacement + + + + + + + + diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/qnel_widget.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/qnel_widget.cpp new file mode 100644 index 000000000..9a67abb80 --- /dev/null +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/qnel_widget.cpp @@ -0,0 +1,197 @@ +// Object Viewer Qt - MMORPG Framework +// Copyright (C) 2010 Winch Gate Property Limited +// Copyright (C) 2011 Dzmitry Kamiahin +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +#include "qnel_widget.h" + +// STL includes + +// Qt includes +#include +#include + +// NeL includes +#include +#include +#include +#include + +namespace NLQT +{ + +QNLWidget::QNLWidget(QWidget *parent) + : QNeLWidget(parent), + m_driver(NULL), + m_initialized(false), + m_interval(25) +{ + setMouseTracking(true); + setFocusPolicy(Qt::StrongFocus); + + init(); +#ifdef Q_OS_LINUX + makeCurrent(); +#endif + m_mainTimer = new QTimer(this); + connect(m_mainTimer, SIGNAL(timeout()), this, SLOT(updateRender())); +} + +QNLWidget::~QNLWidget() +{ + release(); +} + +void QNLWidget::init() +{ + // create the driver + m_driver = NL3D::UDriver::createDriver(NULL, false, NULL); + nlassert(m_driver); + + // initialize the nel 3d viewport + m_driver->setDisplay((nlWindow)winId(), NL3D::UDriver::CMode(width(), height(), 32)); + + // set the cache size for the font manager(in bytes) + m_driver->setFontManagerMaxMemory(2097152); + + m_initialized = true; +} + +void QNLWidget::release() +{ + m_mainTimer->stop(); + delete m_mainTimer; + if (m_initialized) + { + m_driver->release(); + delete m_driver; + m_driver = NULL; + } +} + +void QNLWidget::setInterval(int msec) +{ + m_interval = msec; + m_mainTimer->setInterval(msec); +} + +void QNLWidget::setBackgroundColor(NLMISC::CRGBA backgroundColor) +{ + m_backgroundColor = backgroundColor; +} + +void QNLWidget::updateRender() +{ + if (isVisible()) + { + if (m_initialized) + m_driver->EventServer.pump(); + Q_EMIT updateData(); + + // Calc FPS + static sint64 lastTime = NLMISC::CTime::getPerformanceTime (); + sint64 newTime = NLMISC::CTime::getPerformanceTime (); + m_fps = float(1.0 / NLMISC::CTime::ticksToSecond (newTime-lastTime)); + lastTime = newTime; + + if (m_initialized && !m_driver->isLost()) + { + //_driver->activate(); + m_driver->clearBuffers(m_backgroundColor); + Q_EMIT updatePreRender(); + + Q_EMIT updatePostRender(); + // swap 3d buffers + m_driver->swapBuffers(); + } + } +} + +void QNLWidget::showEvent(QShowEvent *showEvent) +{ + QWidget::showEvent(showEvent); + m_driver->activate(); + m_mainTimer->start(m_interval); +} + +void QNLWidget::hideEvent(QHideEvent *hideEvent) +{ + m_mainTimer->stop(); + QWidget::hideEvent(hideEvent); +} + +#if defined(NL_OS_WINDOWS) + +typedef bool (*winProc)(NL3D::IDriver *driver, HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); + +bool QNLWidget::winEvent(MSG *message, long *result) +{ + if (m_driver && m_driver->isActive()) + { + NL3D::IDriver *driver = dynamic_cast(m_driver)->getDriver(); + if (driver) + { + winProc proc = (winProc)driver->getWindowProc(); + return proc(driver, message->hwnd, message->message, message->wParam, message->lParam); + } + } + + return false; +} + +#elif defined(NL_OS_MAC) + +typedef bool (*cocoaProc)(NL3D::IDriver *, const void *e); + +bool QNLWidget::macEvent(EventHandlerCallRef caller, EventRef event) +{ + if(caller) + nlerror("You are using QtCarbon! Only QtCocoa supported, please upgrade Qt"); + + if (m_driver && m_driver->isActive()) + { + NL3D::IDriver *driver = dynamic_cast(m_driver)->getDriver(); + if (driver) + { + cocoaProc proc = (cocoaProc)driver->getWindowProc(); + return proc(driver, event); + } + } + + return false; +} + +#elif defined(NL_OS_UNIX) + +typedef bool (*x11Proc)(NL3D::IDriver *drv, XEvent *e); + +bool QNLWidget::x11Event(XEvent *event) +{ + if (m_driver && m_driver->isActive()) + { + NL3D::IDriver *driver = dynamic_cast(m_driver)->getDriver(); + if (driver) + { + x11Proc proc = (x11Proc)driver->getWindowProc(); + return proc(driver, event); + } + } + + return false; +} +#endif + +} /* namespace NLQT */ + diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/qnel_widget.h b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/qnel_widget.h new file mode 100644 index 000000000..a54e6bb8a --- /dev/null +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/qnel_widget.h @@ -0,0 +1,130 @@ +// Object Viewer Qt - MMORPG Framework +// Copyright (C) 2010 Winch Gate Property Limited +// Copyright (C) 2011 Dzmitry Kamiahin +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +#ifndef QNEL_WIDGET_H +#define QNEL_WIDGET_H + +// NeL includes +#include +#include +#include + +// Qt includes +#include +#include + +class QAction; + +/* TODO every platform should use QWidget */ +#if defined(NL_OS_WINDOWS) +typedef QWidget QNeLWidget; +#elif defined(NL_OS_MAC) +typedef QWidget QNeLWidget; +#elif defined(NL_OS_UNIX) +typedef QGLWidget QNeLWidget; +#endif // NL_OS_UNIX + +namespace NL3D +{ +class UDriver; +class UScene; +} + +namespace NLQT +{ + +/** +@class QNLWidget +@brief Responsible for interaction between Qt and NeL. +@details Automatically begins to update the render if the widget is visible +or suspends the updating of render if the widget is hidden. +*/ +class QNLWidget : public QNeLWidget +{ + Q_OBJECT + +public: + QNLWidget(QWidget *parent); + virtual ~QNLWidget(); + + /// Set the update interval renderer + void setInterval(int msec); + + /// Set the background color. + void setBackgroundColor(NLMISC::CRGBA backgroundColor); + + float fps() const + { + return m_fps; + } + + inline NLMISC::CRGBA backgroundColor() const + { + return m_backgroundColor; + } + + NL3D::UDriver *driver() const + { + return m_driver; + } + + virtual QPaintEngine* paintEngine() const + { + return NULL; + } +Q_SIGNALS: + void updateData(); + void updatePreRender(); + void updatePostRender(); + +private Q_SLOTS: + void updateRender(); + +protected: + virtual void showEvent(QShowEvent *showEvent); + virtual void hideEvent(QHideEvent *hideEvent); + +#if defined(NL_OS_WINDOWS) + virtual bool winEvent(MSG *message, long *result); +#elif defined(NL_OS_MAC) + virtual bool macEvent(EventHandlerCallRef caller, EventRef event); +#elif defined(NL_OS_UNIX) + virtual bool x11Event(XEvent *event); +#endif + +private: + void init(); + void release(); + + QNLWidget(const QNLWidget &); + QNLWidget &operator=(const QNLWidget &); + + NL3D::UDriver *m_driver; + NLMISC::CRGBA m_backgroundColor; + + QTimer *m_mainTimer; + + bool m_initialized; + int m_interval; + float m_fps; + +}; /* class QNLWidget */ + +} /* namespace NLQT */ + + +#endif // QNEL_WIDGET_H diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter.qrc b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter.qrc new file mode 100644 index 000000000..55c890670 --- /dev/null +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter.qrc @@ -0,0 +1,12 @@ + + + images/color-picker-black.png + images/colorize.png + images/draw-brush.png + images/go-down-7.png + images/go-jump-4.png + images/lock-6.png + images/lock-silver.png + images/color-fill.png + + diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_main_window.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_main_window.cpp new file mode 100644 index 000000000..c187e2ddc --- /dev/null +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_main_window.cpp @@ -0,0 +1,61 @@ +#include "zone_painter_main_window.h" +#include "ui_zone_painter_main_window.h" + +#include "qnel_widget.h" +#include "painter_dock_widget.h" + +ZonePainterMainWindow::ZonePainterMainWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::ZonePainterMainWindow) +{ + ui->setupUi(this); + m_nelWidget = new NLQT::QNLWidget(this); + setCentralWidget(m_nelWidget); + + // Set up dock widget(s) and toolbar. + m_painterDockWidget = new PainterDockWidget(this); + addDockWidget(Qt::RightDockWidgetArea, m_painterDockWidget); + m_painterDockWidget->setVisible(true); + + // Insert tool modes + _toolModeMenu = new QMenu(tr("Tool Mode"), ui->painterToolBar); + _toolModeMenu->setIcon(QIcon(":/painterTools/images/draw-brush.png")); + ui->painterToolBar->addAction(_toolModeMenu->menuAction()); + //connect(_renderModeMenu->menuAction(), SIGNAL(triggered()), this, SLOT(setRenderMode())); + + //QSignalMapper *modeMapper = new QSignalMapper(this); + + _toolPaintModeAction = _toolModeMenu->addAction(tr("Paint Mode")); + _toolPaintModeAction->setIcon(QIcon(":/painterTools/images/draw-brush.png")); + _toolPaintModeAction->setStatusTip(tr("Set paint mode")); + //connect(_pointRenderModeAction, SIGNAL(triggered()), modeMapper, SLOT(map())); + //modeMapper->setMapping(_pointRenderModeAction, 0); + + _toolFillModeAction = _toolModeMenu->addAction(tr("Fill Mode")); + _toolFillModeAction->setStatusTip(tr("Set fill mode")); + _toolFillModeAction->setIcon(QIcon(":/painterTools/images/color-fill.png")); + //connect(_lineRenderModeAction, SIGNAL(triggered()), modeMapper, SLOT(map())); + //modeMapper->setMapping(_lineRenderModeAction, 1); + + _toolSelectModeAction = _toolModeMenu->addAction(tr("Select mode")); + _toolSelectModeAction->setIcon(QIcon(":/painterTools/images/go-jump-4.png")); + _toolSelectModeAction->setStatusTip(tr("Set select mode")); + //connect(_fillRenderModeAction, SIGNAL(triggered()), modeMapper, SLOT(map())); + //modeMapper->setMapping(_fillRenderModeAction, 2); + + _toolPickModeAction = _toolModeMenu->addAction(tr("Pick mode")); + _toolPickModeAction->setIcon(QIcon(":/painterTools/images/color-picker-black.png")); + _toolPickModeAction->setStatusTip(tr("Set color picking mode")); + //connect(_fillRenderModeAction, SIGNAL(triggered()), modeMapper, SLOT(map())); + //modeMapper->setMapping(_fillRenderModeAction, 2); + + //connect(modeMapper, SIGNAL(mapped(int)), this, SLOT(setRenderMode(int))); + +} + +ZonePainterMainWindow::~ZonePainterMainWindow() +{ + delete ui; + delete m_nelWidget; + delete m_painterDockWidget; +} diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_main_window.h b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_main_window.h new file mode 100644 index 000000000..d4d1584ba --- /dev/null +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_main_window.h @@ -0,0 +1,36 @@ +#ifndef ZONE_PAINTER_MAIN_WINDOW_H +#define ZONE_PAINTER_MAIN_WINDOW_H + +#include + +namespace NLQT { + class QNLWidget; +} + +namespace Ui { + class ZonePainterMainWindow; +} + +class PainterDockWidget; + +class ZonePainterMainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit ZonePainterMainWindow(QWidget *parent = 0); + ~ZonePainterMainWindow(); + +private: + Ui::ZonePainterMainWindow *ui; + NLQT::QNLWidget *m_nelWidget; + PainterDockWidget *m_painterDockWidget; + + QAction *_toolPaintModeAction; + QAction *_toolFillModeAction; + QAction *_toolSelectModeAction; + QAction *_toolPickModeAction; + QMenu *_toolModeMenu; +}; + +#endif // ZONE_PAINTER_MAIN_WINDOW_H diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_main_window.ui b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_main_window.ui new file mode 100644 index 000000000..56360a7a2 --- /dev/null +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_main_window.ui @@ -0,0 +1,110 @@ + + + ZonePainterMainWindow + + + + 0 + 0 + 800 + 600 + + + + MainWindow + + + + + + 0 + 0 + 800 + 21 + + + + + + + toolBar + + + false + + + TopToolBarArea + + + false + + + + + + + + + toolBar_2 + + + LeftToolBarArea + + + false + + + + + + :/painterTools/images/colorize.png:/painterTools/images/colorize.png + + + Background + + + Background Color Dialog + + + + + + :/painterTools/images/go-down-7.png:/painterTools/images/go-down-7.png + + + ShowArrows + + + Show Landscape Orientation Arrows + + + + + Toggle Lighting + + + Toggle automatic lighting + + + + + true + + + + :/painterTools/images/lock-silver.png + :/painterTools/images/lock-6.png:/painterTools/images/lock-silver.png + + + Lock Borders + + + Lock Landscape Borders + + + + + + + + diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_plugin.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_plugin.cpp new file mode 100644 index 000000000..7b8237ccb --- /dev/null +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_plugin.cpp @@ -0,0 +1,123 @@ +// Project includes +#include "zone_painter_plugin.h" +#include "zone_painter_settings_page.h" +#include "../core/icore.h" +#include "../core/core_constants.h" +#include "../core/imenu_manager.h" +#include "../../extension_system/iplugin_spec.h" + +// NeL includes +#include "nel/misc/debug.h" + +// Qt includes +#include +#include +#include +#include +#include +#include + +namespace Plugin +{ +ZonePainterPlugin::~ZonePainterPlugin() +{ + Q_FOREACH(QObject *obj, _autoReleaseObjects) + { + _plugMan->removeObject(obj); + } + qDeleteAll(_autoReleaseObjects); + _autoReleaseObjects.clear(); +} + +bool ZonePainterPlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString) +{ + Q_UNUSED(errorString); + _plugMan = pluginManager; + + addAutoReleasedObject(new CZonePainterSettingsPage(this)); + addAutoReleasedObject(new CZonePainterContext(this)); + //addAutoReleasedObject(new CCoreListener(this)); + return true; +} + +void ZonePainterPlugin::extensionsInitialized() +{ + Core::ICore *core = Core::ICore::instance(); + Core::IMenuManager *menuManager = core->menuManager(); + //menuManager = _plugMan->getObject(); + QAction *exampleAction1 = new QAction("Zone1", this); + QAction *exampleAction2 = new QAction("Zone2", this); + QAction *aboutQtAction = menuManager->action(Core::Constants::ABOUT_QT); + QMenu *helpMenu = menuManager->menu(Core::Constants::M_HELP); + helpMenu->insertAction(aboutQtAction, exampleAction1); + helpMenu->addSeparator(); + helpMenu->addAction(exampleAction2); + QMenu *zoneMenu = menuManager->menuBar()->addMenu("ZoneMenu"); + zoneMenu->insertAction(aboutQtAction, exampleAction1); + zoneMenu->addSeparator(); + zoneMenu->addAction(exampleAction2); +} + +void ZonePainterPlugin::setNelContext(NLMISC::INelContext *nelContext) +{ +#ifdef NL_OS_WINDOWS + // Ensure that a context doesn't exist yet. + // This only applies to platforms without PIC, e.g. Windows. + nlassert(!NLMISC::INelContext::isContextInitialised()); +#endif // NL_OS_WINDOWS + _LibContext = new NLMISC::CLibraryContext(*nelContext); +} + +QString ZonePainterPlugin::name() const +{ + return "ZonePainterPlugin"; +} + +QString ZonePainterPlugin::version() const +{ + return "0.2"; +} + +QString ZonePainterPlugin::vendor() const +{ + return "Ryzom Core"; +} + +QString ZonePainterPlugin::description() const +{ + return "Zone Painter Plugin"; +} + +QStringList ZonePainterPlugin::dependencies() const +{ + QStringList list; + list.append(Core::Constants::OVQT_CORE_PLUGIN); + //list.append("ObjectViewer"); + return list; +} + +void ZonePainterPlugin::addAutoReleasedObject(QObject *obj) +{ + _plugMan->addObject(obj); + _autoReleaseObjects.prepend(obj); +} + +QObject* ZonePainterPlugin::objectByName(const QString &name) const +{ + Q_FOREACH (QObject *qobj, _plugMan->allObjects()) + if (qobj->objectName() == name) + return qobj; + return 0; +} + +ExtensionSystem::IPluginSpec *ZonePainterPlugin::pluginByName(const QString &name) const +{ + Q_FOREACH (ExtensionSystem::IPluginSpec *spec, _plugMan->plugins()) + if (spec->name() == name) + return spec; + return 0; +} + +} + +Q_EXPORT_PLUGIN(Plugin::ZonePainterPlugin) \ No newline at end of file diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_plugin.h b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_plugin.h new file mode 100644 index 000000000..7cb6b9c43 --- /dev/null +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_plugin.h @@ -0,0 +1,105 @@ +#ifndef ZONE_PAINTER_PLUGIN_H +#define ZONE_PAINTER_PLUGIN_H + +// Project includes +#include "../../extension_system/iplugin.h" +#include "../core/icontext.h" +#include "zone_painter_main_window.h" + +// NeL includes +#include "nel/misc/app_context.h" +#include +#include +#include + +// Qt includes +#include +#include + +namespace NLMISC +{ +class CLibraryContext; +} + +namespace ExtensionSystem +{ +class IPluginSpec; +} + +namespace Plugin +{ + + class CZoneManager { + public: + NL3D::CZone zone; + + std::string getZoneInfo() { + NL3D::CZone zone; + zone.getNumPatchs(); + + return ""; + } + }; + +class ZonePainterPlugin : public QObject, public ExtensionSystem::IPlugin +{ + Q_OBJECT + Q_INTERFACES(ExtensionSystem::IPlugin) +public: + + virtual ~ZonePainterPlugin(); + + bool initialize(ExtensionSystem::IPluginManager *pluginManager, QString *errorString); + void extensionsInitialized(); + + void setNelContext(NLMISC::INelContext *nelContext); + + QString name() const; + QString version() const; + QString vendor() const; + QString description() const; + QStringList dependencies() const; + + void addAutoReleasedObject(QObject *obj); + + QObject *objectByName(const QString &name) const; + ExtensionSystem::IPluginSpec *pluginByName(const QString &name) const; + + + +protected: + NLMISC::CLibraryContext *_LibContext; + +private: + ExtensionSystem::IPluginManager *_plugMan; + QList _autoReleaseObjects; +}; + +class CZonePainterContext: public Core::IContext +{ + Q_OBJECT +public: + CZonePainterContext(QObject *parent = 0): IContext(parent) {} + virtual ~CZonePainterContext() {} + + virtual QString id() const + { + return QLatin1String("ZonePainterContext"); + } + virtual QString trName() const + { + return tr("Zone Painter"); + } + virtual QIcon icon() const + { + return QIcon(); + } + virtual QWidget *widget() + { + return new ZonePainterMainWindow(); + } +}; + +} // namespace Plugin + +#endif // ZONE_PAINTER_PLUGIN_H diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_settings_page.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_settings_page.cpp new file mode 100644 index 000000000..69c4e7525 --- /dev/null +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_settings_page.cpp @@ -0,0 +1,67 @@ +// Object Viewer Qt - MMORPG Framework +// Copyright (C) 2010 Winch Gate Property Limited +// Copyright (C) 2011 Dzmitry Kamiahin +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +#include "zone_painter_settings_page.h" + +// Qt includes +#include + +// NeL includes + +// Project includes + +namespace Plugin +{ + +CZonePainterSettingsPage::CZonePainterSettingsPage(QObject *parent) + : IOptionsPage(parent), + _currentPage(NULL) +{ +} + +QString CZonePainterSettingsPage::id() const +{ + return QLatin1String("ZonePainterPage"); +} + +QString CZonePainterSettingsPage::trName() const +{ + return tr("Zone Painter page"); +} + +QString CZonePainterSettingsPage::category() const +{ + return QLatin1String("General"); +} + +QString CZonePainterSettingsPage::trCategory() const +{ + return tr("General"); +} + +QWidget *CZonePainterSettingsPage::createPage(QWidget *parent) +{ + _currentPage = new QWidget(parent); + _ui.setupUi(_currentPage); + return _currentPage; +} + +void CZonePainterSettingsPage::apply() +{ +} + +} /* namespace Plugin */ \ No newline at end of file diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_settings_page.h b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_settings_page.h new file mode 100644 index 000000000..8e4b3f3d6 --- /dev/null +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_settings_page.h @@ -0,0 +1,58 @@ +// Object Viewer Qt - MMORPG Framework +// Copyright (C) 2010 Winch Gate Property Limited +// Copyright (C) 2011 Dzmitry Kamiahin +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + + +#ifndef ZONE_PAINTER_SETTINGS_PAGE_H +#define ZONE_PAINTER_SETTINGS_PAGE_H + +#include + +#include "../core/ioptions_page.h" + +#include "ui_zone_painter_settings_page.h" + +class QWidget; + +namespace Plugin +{ +/** +@class CZonePainterSettingsPage +*/ +class CZonePainterSettingsPage : public Core::IOptionsPage +{ + Q_OBJECT +public: + CZonePainterSettingsPage(QObject *parent = 0); + virtual ~CZonePainterSettingsPage() {} + + virtual QString id() const; + virtual QString trName() const; + virtual QString category() const; + virtual QString trCategory() const; + virtual QWidget *createPage(QWidget *parent); + + virtual void apply(); + virtual void finish() {} + +private: + QWidget *_currentPage; + Ui::CZonePainterSettingsPage _ui; +}; + +} // namespace Plugin + +#endif // EXAMPLE_SETTINGS_H diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_settings_page.ui b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_settings_page.ui new file mode 100644 index 000000000..ccd302975 --- /dev/null +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/zone_painter/zone_painter_settings_page.ui @@ -0,0 +1,92 @@ + + + CZonePainterSettingsPage + + + + 0 + 0 + 458 + 479 + + + + Form + + + + 0 + + + + + GroupBox + + + + + + PushButton + + + + + + + + + + PushButton + + + + + + + RadioButton + + + + + + + RadioButton + + + + + + + CheckBox + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + + + + + + + + +