From 14272b5e79e79bd0bc178050d7b1a311e1b048c0 Mon Sep 17 00:00:00 2001 From: dnk-88 Date: Sat, 30 Jul 2011 21:58:48 +0300 Subject: [PATCH] Changed: #1302 Added world edit mode toolbar. --HG-- branch : gsoc2011-worldeditorqt --- .../world_editor/icons/ic_nel_move.png | Bin 0 -> 3170 bytes .../world_editor/icons/ic_nel_rotate.png | Bin 0 -> 4089 bytes .../world_editor/icons/ic_nel_scale.png | Bin 0 -> 4299 bytes .../world_editor/icons/ic_nel_select.png | Bin 0 -> 3182 bytes .../world_editor/icons/ic_nel_turn.png | Bin 0 -> 2747 bytes .../src/plugins/world_editor/world_editor.qrc | 5 + .../world_editor/world_editor_window.cpp | 28 +++ .../world_editor/world_editor_window.h | 2 + .../world_editor/world_editor_window.ui | 187 +++++++++++++++++- 9 files changed, 220 insertions(+), 2 deletions(-) create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/icons/ic_nel_move.png create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/icons/ic_nel_rotate.png create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/icons/ic_nel_scale.png create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/icons/ic_nel_select.png create mode 100644 code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/icons/ic_nel_turn.png diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/icons/ic_nel_move.png b/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/icons/ic_nel_move.png new file mode 100644 index 0000000000000000000000000000000000000000..7039bd070067c121c446c52b291dd1b0a30901e4 GIT binary patch literal 3170 zcmV-o44w0dP)<{98FWQhbW?9;ba!ELWdKlNX>N2bPDNB8 zb~7$DE;i7Ety%y83*SjZK~#8N?OSPVRM!;-LIMSh?HS{J_I*5KkC(9xUd9{V7i?pL zF&NC65S9`W))0b|I6xo^OA-qn=UV^liZyDFV^9|RabCPIwWqR~3r_+*>sKuJTJzqq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bbPW;z=jH2SnMe%gG_MUqfg4#HbKe-AgC-qLcMYO2SfZoG7gG=QP;6d_7ZrM#?&_$ z0JhSpJox}v;`t)z=jI0Ju^(s z@a)rYAQF{gpO9kD+&a6Z^GarMwfqkf>>Lw>`=9%s@xbmaek)jCAsq6K${Gl8 z-%D|1ohWOXFVgbaG4{!mACe#{&;B8T;pr5+=gy?UL=|~`3Ig2;{zS%IFk33lLGlCZ z|3jbd9ro`GM#W0um^9hynGB^5;^3pNq;Wof6h+H_16DXE9P3BK8j0r2NvY1v#i@?$ z_wb*lew^yeE{+Jn!Yza<#XeDOcHgU+E~EGbWx>x&QzG07*qo IM6N<$f`VA}i2wiq literal 0 HcmV?d00001 diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/icons/ic_nel_rotate.png b/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/icons/ic_nel_rotate.png new file mode 100644 index 0000000000000000000000000000000000000000..73a0be2fe53e26e96b41a42c442c5462de39bd95 GIT binary patch literal 4089 zcmVPx#1ZP1_K>z@;j|==^1poj532;bRa{vGh)&Kwv)&Y=jd7JeSaefwW^{L9 za%BKeVQFr3E>1;MAa*k@H7+*LgRNQs01s(NL_t(|UhP^5P?T4;?u}l6ZZ_E$*_(Y4 z6a^7fc0ptl5Cue*Agzrk20_^u*+f)8A~Yt(n28zROJ>Yu@}^=I$2Tv=M3cD0Brj%W zk~m}K)nt-P>Zvc^JGa|~Bp}$`I5kyRb*u6J?>+Z?-#zEtbI<)boY{Y~49qex%fKuH zkDdXqmJyfvwLOtxb-haxyGMgnDwQ=g;iK2&5zQFWK4hI4N6 zAid-R>18h%pZA6FTLCaW;|HVv2!!F$V2C?CAzI@Ak*^uV7E(BRxgsfV4eGjj|4Q=L z>Q`euN+ad+SC?=2USg>+b5W25Bzp<)N8XTq=|1fy{cjpW#2CHg4^cglv3L%|Rx)@7 z`Cy%56WaC-(o`ym9#z*}6e(1@G$-{3u^FwpwG5&>Ct7ho$i5)pfA)av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`MRSEl)nLDrL{xONvTuG;^`YA%lR*lLTlWvOttc=1Zf-Dr)k#-Z z0=W;k%U6P;{n^)WY{cU1uG)MIy@3KR9kfOlVf2*9M)G?f3thw;4vDf)%DpU zTj7VDh^50DyZ6TwY~8UtN3rF#qK%4ck5wqH7i_A$Qd(VevZA%SV_2n%r+!-9AU&); rv;Aiom}Ov=fmsG-8JK0@9s~amo&Eo6sVezt00000NkvXXu0mjf7NoxM literal 0 HcmV?d00001 diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/icons/ic_nel_scale.png b/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/icons/ic_nel_scale.png new file mode 100644 index 0000000000000000000000000000000000000000..e76150ab4b4e0043d081774fd2f4e9d25fab1233 GIT binary patch literal 4299 zcmV;+5H#N2bPDNB8 zb~7$DE;i7Ety%y85J*WxK~#8N?OO>{R9BjQRV<6=X~cq-n;MK`+xWU|9ju7?^4v0zb6blVPGT!JRXmMn8f9B$C2~@ z4-BC#p4-9a^Jj=eqEi};=65ogtPTHnAQ7|iIElmI`1vv+QCu#Q&E^EK+3axauNILj z5D3~4&tc#FJ?c9e%ePvsmohUmAv-%8ii?Y{D5| z@Tk(qP>9XuGF2+gWUW@O;_`(Vh}A-gTg676Hg0AbVgon;|DB2kPtVp`oDxN=ix~F)?w#Y_^=z>5Q4qM0b$K4LpK^Y#vV~ z5=##1bcQdTPS^G9`8lw#uo$uzEP(ig1TdK`AeSouJsF~-qd~9N@A0@b{`!B%zh;w~?@VmF)hFE(XB%nt~B$6zT3BV9w;>aH&u|r5W zefl(3+)twqD<(L1t`Bzq-3vfEkeHP8J(tf<@wkCUP;efH6QoqD57}a4L1!?)%dfmb z8$Sd>!s)YTAuT-v2_T*zRC?7cdciuv9LWRkyz|a&!-?_lzuyO&HuZo)sRFarI*4e; z(f`?J2P9pBUhrq3SPT}7^Fv3DK>zs*H$4Gy;^Zl?qx&Z$x-WBi{8`=-kd3i3Kw_S_ z{LsjsIdc})u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M*7{wFSBPNJinm;0UlDflXdj!4ZhUQJwaw4!v_>K@pC8 z7j&WF#P}{eCj_LVq|m^<0!dy~P6}iE2cyvVg4r64uD=y__U^h(z_uN|(7kapsjZR^O$gGed^g+>QumDM0ss!v4m1XI0kXcP}{&^uj; z?hlevQ&F|5fx2bOG3M7oM@I*Zb|j<)H&T#|5@cfs>YcZG-3+QjCCJ{7QZ$mxtI4Tp z;7(3K@o_Y0bp}*mJ8=HZ7;q#ceqpx7ZWGBAdKQm=myXcuMm>B07i4~D`0FXDX@hZb z4#3?lw5*?O>me{2jbx7yyYeCT$dhT1 zsNFFcp1}e2PA!gGOd80pvE=0Bt62Hxv9Yng#&D>@#gH0ZaO^J`kAQ@sD#+eOBx5GR zj#!F=wjBvLihaM3hMHz1;WNA*=v9-*SQ?U0j-H@H%)ko%Pxb_O)#+P>2_e}3aoFcj t?0W=4h`ML*JYX~pKY8W}1AluA{15ua?Dq5n2!H?p002ovPDHLkV1n=*|J48h literal 0 HcmV?d00001 diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/icons/ic_nel_select.png b/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/icons/ic_nel_select.png new file mode 100644 index 0000000000000000000000000000000000000000..9a677b8a668b175260825db8a6614c1d456c17f2 GIT binary patch literal 3182 zcmV-!43YDRP)N2bPDNB8 zb~7$DE;i7Ety%y83+qWlK~#8N?V1U6Q&k$r-}}d~Z_~Y{Eo;HjotCaimvl*& zqzma@C>b?K$6hNt(R({=e^k|L@+H5X8{m5P=~ALj(pH0ZLL#(Xw)$<}0Ox?9^|;=~6iq zuWt>P`*zqBA=B*?S47@|y^4DmjE9ZngSs@Dn7OH%=sC-kLERr}gQxz7^KN~IATud( zpZzU3J4N6WjXa>!F7vkUX5{5(w0?GoO<4_^z^+edm2LDbIE46iL9)e+GHj+n7q_TM z6FK{Jt)cthLBr=clFPS2{i2VdeCFE_p0x5fqiwK?@9b~-jM7MDaCfpIpmUwnqwXlD ztZ>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mv+tuOJ+mMMJ9ExNGwuVV`~LNvPDgB>7r`}?kMMV-G^eu=9#pS zh-?vjqjM9%s_>h@s)9^U%d}-z!%|m4RKepAS-8a|RuC<0L$V$Pb=a(P5>NZDXjz%& zCJrr*kE(n}aTq=oX{rpYSb@&g)Q%SCPAB=AN{U<2xQSl%@^U;x1rHlj&S_cw&X zx`1GevR{JsYZ|19B%{hysr|CY`A1}J^f6R^#(Ua;_ill})Q7;3^CTE@H-j#IF`Dn! zA0)W)D1tHlGP>{HMbZB)bN~PV07*qoM6N<$g7&Em4gdfE literal 0 HcmV?d00001 diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/icons/ic_nel_turn.png b/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/icons/ic_nel_turn.png new file mode 100644 index 0000000000000000000000000000000000000000..b03cb0fd0631c078f9e308f9fd9c7b67dceea168 GIT binary patch literal 2747 zcmV;s3PkmZP)N2bPDNB8 zb~7$DE;i7Ety%y83OGqbK~#8N?U@TuQ&$?tZ?INTsjjkCtpWmTdnog?yK!iyFPa9>Tb2p zR#*Gq?_2>}XS>35W+%78%zsX9?n&7K2xK%r z#u*!@lV))y&txv$Q^6S;rzBS$4KGIl4P{ekxR-hFEikbQWUuIS5P6g0DJ_ z!R1FTa1%XCIm4DI+{B%|Wa;t04O(IK_>=zFGk-V6JbwuZ>#pGOvNyq5o1n;UhEL8m z44ZchLiHJ>Zn}ZMx$lBAdOqchO`-CKVD$|2v2A}(Q~Nu_{Olt9iuX&#eG7NN&%F=6 zlXsz;eLKC^O!7csYevYDlNh)D8vNadZgCk+)8q?bk|(lH(cVuI)?J0_sShNBeO!B> zU-vN_ZvoD?@5*uX4w9SxityDR!na_T)Q>@mdF~>H&pi$w^Ume+gOJ&*=w{jRMf%o% z;m0%HkWBfJdE3F8a4^$M$L_VcCxE;kz?4IByhGV=9LOaIj>EU%Uv@}>rmQ*z zRn3vbQ0Z%sNOpN637uY}7Ic(lxu+3Wx!)9lD7=#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gBm(wL~k)He1Eo+ zBC8ICpbkTp&5p@MF4*%5AVs~P5bDs-cJsU_LKM}guC9h42x~j~EU)d?H!$##D1FRE zCmB@=8cK0BluRlTMVzHP6+VP&b%=N)9TMM;XO{+jEoK7c$5#`m9?a1J0&X*SyyP=C5DVb+;eM!~QZ$$pC z`TF{L)Ya9o)W^t?BT-UP!T>ls@(i!-GbkviXGFCAd?}?mGasf4$AX26QAg>{Qh$XM z{f2J=uv)E9sZ=O0FJ}Or^jdQr8JJR~S>P_2im~yDwA_VZ_MCa`=GmOT-#p8JqM{-R z0ILVoZs^E!ys{75f6)4?KNv>&6*|E0k#rQd&n!z zb!1SqtE+dHl)_}rgs9SB`phx{z~*{`G}pfiKt)A`1faOM7!eT>f9S}wyt0p=(tPsN z)3s1(XctH+os>KdOP5x+8*eLm3`U!l(|#a5JzWBjm6gQ`;tj7f*O5U{+Mg|=>Tk-- zL^v&jBCY?lyOXNC*=&{!=H%pn6}?RA!;G`)&&)H8A3q)$85!VtzJEua=XHIk282`O z-;0jc!(y>WMw!@aw&T<3bnRx_OtY3jVv3HAhQr}teRN)Dt`h@N(4i)hs(B4*Kj|XP zYfP9hK{8iRK!+kyety1`1#xk4&}y~q5ZFBeVCuy4yuT~0?E?u!Dro_k+e*E z(}BoW-VVA(-$kH{Ko2v4ITgh002ovPDHLkV1kJ? BBOd?& literal 0 HcmV?d00001 diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/world_editor.qrc b/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/world_editor.qrc index f7c54fd5f..02ffcbe00 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/world_editor.qrc +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/world_editor.qrc @@ -1,5 +1,10 @@ + icons/ic_nel_select.png + icons/ic_nel_scale.png + icons/ic_nel_rotate.png + icons/ic_nel_move.png + icons/ic_nel_turn.png icons/ic_nel_world_editor.png diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/world_editor_window.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/world_editor_window.cpp index fc1f0e248..7ddb5484c 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/world_editor_window.cpp +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/world_editor_window.cpp @@ -40,6 +40,7 @@ // Qt includes #include +#include #include namespace WorldEditor @@ -54,12 +55,28 @@ WorldEditorWindow::WorldEditorWindow(QWidget *parent) m_ui.setupUi(this); m_undoStack = new QUndoStack(this); + QActionGroup *sceneModeGroup = new QActionGroup(this); + sceneModeGroup->addAction(m_ui.selectAction); + sceneModeGroup->addAction(m_ui.moveAction); + sceneModeGroup->addAction(m_ui.rotateAction); + sceneModeGroup->addAction(m_ui.scaleAction); + sceneModeGroup->addAction(m_ui.turnAction); + sceneModeGroup->addAction(m_ui.radiusAction); + m_ui.selectAction->setChecked(true); + + m_ui.newWorldEditAction->setIcon(QIcon(Core::Constants::ICON_NEW)); + m_ui.saveWorldEditAction->setIcon(QIcon(Core::Constants::ICON_SAVE)); + m_primitivesModel = new PrimitivesTreeModel(); m_ui.treePrimitivesView->setModel(m_primitivesModel); createMenus(); createToolBars(); readSettings(); + + connect(m_ui.newWorldEditAction, SIGNAL(triggered()), this, SLOT(newWorldEditFile())); + connect(m_ui.saveWorldEditAction, SIGNAL(triggered()), this, SLOT(saveAllWorldEditFiles())); + } WorldEditorWindow::~WorldEditorWindow() @@ -96,6 +113,14 @@ void WorldEditorWindow::loadPrimitive(const QString &fileName) m_primitivesModel->loadPrimitive(fileName); } +void WorldEditorWindow::newWorldEditFile() +{ +} + +void WorldEditorWindow::saveAllWorldEditFiles() +{ +} + void WorldEditorWindow::openProjectSettings() { /* @@ -119,8 +144,11 @@ void WorldEditorWindow::createToolBars() Core::IMenuManager *menuManager = Core::ICore::instance()->menuManager(); //QAction *action = menuManager->action(Core::Constants::NEW); //m_ui.fileToolBar->addAction(action); + + m_ui.fileToolBar->addAction(m_ui.newWorldEditAction); QAction *action = menuManager->action(Core::Constants::OPEN); m_ui.fileToolBar->addAction(action); + m_ui.fileToolBar->addAction(m_ui.saveWorldEditAction); m_ui.fileToolBar->addSeparator(); action = menuManager->action(Core::Constants::UNDO); diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/world_editor_window.h b/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/world_editor_window.h index 39e741716..1b2937dad 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/world_editor_window.h +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/world_editor_window.h @@ -43,6 +43,8 @@ public Q_SLOTS: void open(); private Q_SLOTS: + void newWorldEditFile(); + void saveAllWorldEditFiles(); void openProjectSettings(); private: diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/world_editor_window.ui b/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/world_editor_window.ui index 179a78830..331dc34ff 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/world_editor_window.ui +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/world_editor/world_editor_window.ui @@ -45,10 +45,19 @@ false - - + + + + + + + + + + Primitives + 2 @@ -82,6 +91,23 @@ + + + toolBar + + + TopToolBarArea + + + false + + + + + + + + loadPrimitive @@ -92,6 +118,162 @@ newPrimitive + + + + :/icons/ic_nel_zonel.png:/icons/ic_nel_zonel.png + + + loadLand + + + + + + :/icons/ic_nel_landscape_settings.png:/icons/ic_nel_landscape_settings.png + + + LandSettings + + + + + true + + + S/H Land + + + + + true + + + S/H Primitives + + + + + true + + + S/H Layers + + + + + true + + + S/H Details + + + + + true + + + + :/icons/ic_grid.png:/icons/ic_grid.png + + + S/H Grid + + + + + true + + + S/H Grid points + + + + + New World Edit file + + + + + Save World Edit file + + + + + true + + + + :/icons/ic_nel_select.png:/icons/ic_nel_select.png + + + Select + + + + + true + + + + :/icons/ic_nel_move.png:/icons/ic_nel_move.png + + + Move + + + + + true + + + + :/icons/ic_nel_rotate.png:/icons/ic_nel_rotate.png + + + Rotate + + + + + true + + + + :/icons/ic_nel_scale.png:/icons/ic_nel_scale.png + + + Scale + + + + + true + + + + :/icons/ic_nel_turn.png:/icons/ic_nel_turn.png + + + Turn + + + + + true + + + Radius + + + + + true + + + Edit points + + @@ -107,6 +289,7 @@ +