From adfce162f9ebecad49de79b6192776e3f3519ad2 Mon Sep 17 00:00:00 2001 From: ziqidong Date: Wed, 27 Sep 2023 17:50:53 +0800 Subject: [PATCH] status bar prompt --- ui/zenoedit/res/languages/zh.qm | Bin 34635 -> 34762 bytes ui/zenoedit/res/languages/zh.ts | 8 ++++++++ ui/zenoedit/zenomainwindow.cpp | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/ui/zenoedit/res/languages/zh.qm b/ui/zenoedit/res/languages/zh.qm index a56bed9bc8faaf38a7795d93fb9b773d3809df19..baed5668b37f311e0c9189fbca6741d4b80855ba 100644 GIT binary patch delta 851 zcmX|p-~TNhw8PAIPU#l?19)MZ*KLU45Bc7TJg zG{zZv^abQKw&`6Yi8uIu5hwJ1OC&&>|I7nqPtx0cKLPeXLXVIlZ}F*+$Ew%sCQ7{k z@g$lJK{AeYhFo$2yA4+@v7P#nd!qnVtr}xXu}F-HIZqz*j6FCg`d2nB7wX$@0jwU^ z7|Ib2!w^8QOQZT0bB$I@wJ4mq+QJXnDRk@@0cgB}MMe)fiYa5OrF@SeYoLVR*09Fd zEV`sTTDt-xQc${QIM=J^Gu!Z`mw#+PpClS_4qqgCwM*JM#YMFN z=VT|pIh*2>I;EMLHs1DUj3^Ek$ztK`O*~t{6c^{&gN{aC_2EY)b9vQDnZ=*+a!NLT ze*{q3qOmrBPLqR0sq9RC=Z!LUU^~FTAsBVzni>Ex|GfKGywOg#zs4O(~7csm5XC<0KBSldGQc{NvAQ9uiPgM z0MfX|L=O(8MaUa;nVt48re<=7kM1{}?&R}Dh(`4q2F(ttZo%W`W2~{n>|W^M>O&OM zUDCAq)XXC9=_7j53+bVC{T=Cn{TVFW=ASM5QBfEK{!sx8e91eaHQ|hcSXd1oz~&~q bL-Q1TDB1Vl!~S^+%M;u}>X-FT#-i50JKPAv delta 780 zcmXBRZAep57zgnGz1!V(U$&``rh+RhmsXB~HK=fym0+k)vV}#PZ=0{1^IgQkh|ChT zo}i#?P-szLnnh)rN|o&F{hAHeb znHi>(QW*zZcAJ8XM{qv@=Xnkkz9b`?A>>{JH~17N`9NOQ#}@vg8P>$O=`U-E+>i9^ z7l2_*aceTti-v&8MzX7%{1!MGbU=9)1yv5Aq!-z_%W@b^YpS@goMklbJOC8uC)mO7<|>wg`i*Re(Q*7Nxi-Z@(y1ypp$7qH%E)@T^lTT_B4- zMkplFRQE&v%P4Z{&5Vmq=^Y8h%i;+4RlYw(9GPQ*ylvu}>>faj6<7Yu%j5YjuEuT$ z3g&1{Zx2nB_C^{2>x5$EUCJ~#q4KBEy4nSJGbtj(%vT%FEvy06 W<&+w7gsmCwzaHXn_vZwP!v6yw;qw0g diff --git a/ui/zenoedit/res/languages/zh.ts b/ui/zenoedit/res/languages/zh.ts index 38beb3869f..06a861f70d 100644 --- a/ui/zenoedit/res/languages/zh.ts +++ b/ui/zenoedit/res/languages/zh.ts @@ -2547,6 +2547,14 @@ Status Bar 状态栏 + + + File Saved + 文件已保存 + + + File Opened + 文件已打开 layout format is invalid. diff --git a/ui/zenoedit/zenomainwindow.cpp b/ui/zenoedit/zenomainwindow.cpp index 4b03ef5bfa..06cc110fad 100644 --- a/ui/zenoedit/zenomainwindow.cpp +++ b/ui/zenoedit/zenomainwindow.cpp @@ -1635,6 +1635,9 @@ bool ZenoMainWindow::openFile(QString filePath) recordRecentFile(filePath); initUserdata(pGraphs->userdataInfo()); //resetDocks(pGraphs->layoutInfo().layerOutNode); + + m_ui->statusbar->showMessage(tr("File Opened")); + zeno::scope_exit sp([&]() {QTimer::singleShot(2000, this, [=]() {m_ui->statusbar->showMessage(tr("Status Bar")); }); }); return true; } @@ -1978,6 +1981,9 @@ bool ZenoMainWindow::saveFile(QString filePath) settings.userdataInfo.optix_show_background = ud.get2("optix_show_background", false); zenoApp->graphsManagment()->saveFile(filePath, settings); recordRecentFile(filePath); + + m_ui->statusbar->showMessage(tr("File Saved")); + zeno::scope_exit sp([&]() {QTimer::singleShot(2000, this, [=]() {m_ui->statusbar->showMessage(tr("Status Bar")); }); }); return true; }