From edadbe2d46a80b271ccfc7644031542ec723e95b Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Fri, 25 Nov 2005 12:58:59 +0000 Subject: [PATCH] Added new icon that represent the changing of lighting state and modified function. --- src/meshlab/images/lightoff.png | Bin 0 -> 1261 bytes src/meshlab/mainwindow.cpp | 16 ++++++++++++++-- src/meshlab/meshlab.qrc | 3 ++- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 src/meshlab/images/lightoff.png diff --git a/src/meshlab/images/lightoff.png b/src/meshlab/images/lightoff.png new file mode 100644 index 0000000000000000000000000000000000000000..e20ee8f570eb341b22cfb8559da1768bff54d90b GIT binary patch literal 1261 zcmX9;3rtg27(VyjwzQ>SA2KRcDc~60Dyt3#Ds{y&DG^YKgGmfrTSa^{YHh0wS8h?4 zg3^H^X#kZ(!8yi&Orr9zcMhYNRf+gQ%P7=Ak-qQ=SYa1;lK*_kpYwhB{{Ni+lx#>( z4xoq70RRChvZM?G`Ex;qiQUI_ohN{{Pqz600REi0fIxLEmq?O!B&H<-&}uyVe&eY* zhC-H+2EY%W0)QO>U}~1YF#t3o0A8Q~tTX`-y!T}8&9wwok&=|S>CjVor)r3VEQKUs z*|J_PATcdV0hRwr_`@?D>hTdvjpv^(gnM@{?O1EsOt*Bt-Tdda(e53O@TrQDf{a+%@a>2x|il3#B$rmIw{g9qa__-CF6Ftvl+p>?sDOeTk;&_kJ-nTA-&s!1HU z!-9f>&|0DeyvB_HI(oA>%X6J@8svzH6rmL4YAl{_gAhJ)`W%$M)qc_fL3SX@## zJ0ot`IcE{B6PUN!g1I0KqQotkLYk7&8*nRlO)rNoGs2COIeSde&c&;=42xP;3DW#Z zab@vQZf{`S*uAsjuVP}lV*>bCOE)C4bQQcB`HTzRAhAUVf?h3}@lA2qK&3Cnqo6ym zBGBX&r6E+la5WeyB$LT#D(GUUg)Lr)4%-)SBPF9!QrK$D00t&r{<{v{Ny#m2X21&LoSlLYS&`TWJr9+a3^t&iYHoN{n4y;@&`%Mo(=nxBV0!O65;L zDIJoDzKiQ?OeSz#_}f~D#Jp>r9~|r_OxADj4;EqZp)%c3$dDDdXeCKlxo<@%l_)oN zf56|%huefD#Rk9og~mnd-*YRE>NkOiht zmxSnBVWGUOtxdnBjz2^9BcA<(d>lpxum6bu8W|TC?9j?`$W;&V=N)_cm!thQyZy)@ z2?OEipM=Y@vNFAq%G}U+jL;<^Q9e*+2G*m)-O(5ml L^rYX{pvC_I&2$W+ literal 0 HcmV?d00001 diff --git a/src/meshlab/mainwindow.cpp b/src/meshlab/mainwindow.cpp index 99093702d..4c30ba007 100644 --- a/src/meshlab/mainwindow.cpp +++ b/src/meshlab/mainwindow.cpp @@ -24,6 +24,9 @@ History $Log$ +Revision 1.30 2005/11/25 12:58:58 alemochi +Added new icon that represent the changing of lighting state and modified function. + Revision 1.29 2005/11/25 11:55:59 alemochi Added function to Enable/Disable lighting (work in progress) @@ -484,8 +487,17 @@ void MainWindow::SetLight() if (GLA()!=NULL) { const RenderMode &rm=GLA()->getRenderState(); - if (rm.Lighting) GLA()->setLight(false); - else GLA()->setLight(true); + if (rm.Lighting) + { + + GLA()->setLight(false); + setLightOnAct->setIcon(QIcon(":/images/lightoff.png")); + } + else + { + setLightOnAct->setIcon(QIcon(":/images/lighton.png")); + GLA()->setLight(true); + } } }; diff --git a/src/meshlab/meshlab.qrc b/src/meshlab/meshlab.qrc index 787645d47..b6afb013f 100644 --- a/src/meshlab/meshlab.qrc +++ b/src/meshlab/meshlab.qrc @@ -9,6 +9,7 @@ images/save.png images/smooth.png images/wire.png - images/lighton.png + images/lighton.png + images/lightoff.png