Changeset 3805 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 24, 2007 10:30:02 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 23148
- Location:
- trunk/src/VBox/Frontends/VirtualBox/ui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMLogViewer.ui
r3610 r3805 63 63 <cstring>unnamed</cstring> 64 64 </property> 65 <widget class="QPushButton"> 66 <property name="name"> 67 <cstring>mHelpButton</cstring> 68 </property> 69 <property name="text"> 70 <string>&Help</string> 71 </property> 72 <property name="accel"> 73 <string>Alt+H</string> 74 </property> 75 </widget> 65 76 <spacer> 66 77 <property name="name"> … … 80 91 </property> 81 92 </spacer> 93 <widget class="QPushButton"> 94 <property name="name"> 95 <cstring>mFindButton</cstring> 96 </property> 97 <property name="text"> 98 <string>&Find</string> 99 </property> 100 <property name="accel"> 101 <string>Alt+F</string> 102 </property> 103 </widget> 82 104 <widget class="QPushButton"> 83 105 <property name="name"> … … 127 149 <connections> 128 150 <connection> 151 <sender>mHelpButton</sender> 152 <signal>clicked()</signal> 153 <receiver>&vboxProblem()</receiver> 154 <slot>showHelpHelpDialog()</slot> 155 </connection> 156 <connection> 157 <sender>mFindButton</sender> 158 <signal>clicked()</signal> 159 <receiver>VBoxVMLogViewer</receiver> 160 <slot>search()</slot> 161 </connection> 162 <connection> 163 <sender>mSaveButton</sender> 164 <signal>clicked()</signal> 165 <receiver>VBoxVMLogViewer</receiver> 166 <slot>save()</slot> 167 </connection> 168 <connection> 169 <sender>mRefreshButton</sender> 170 <signal>clicked()</signal> 171 <receiver>VBoxVMLogViewer</receiver> 172 <slot>refresh()</slot> 173 </connection> 174 <connection> 129 175 <sender>mCloseButton</sender> 130 176 <signal>clicked()</signal> 131 177 <receiver>VBoxVMLogViewer</receiver> 132 178 <slot>close()</slot> 133 </connection>134 <connection>135 <sender>mSaveButton</sender>136 <signal>clicked()</signal>137 <receiver>VBoxVMLogViewer</receiver>138 <slot>save()</slot>139 </connection>140 <connection>141 <sender>mRefreshButton</sender>142 <signal>clicked()</signal>143 <receiver>VBoxVMLogViewer</receiver>144 <slot>refresh()</slot>145 179 </connection> 146 180 </connections> 147 181 <includes> 148 182 <include location="local" impldecl="in declaration">VBoxGlobal.h</include> 183 <include location="local" impldecl="in implementation">VBoxProblemReporter.h</include> 149 184 <include location="global" impldecl="in implementation">qsizegrip.h</include> 150 185 <include location="global" impldecl="in implementation">qstatusbar.h</include> … … 183 218 <slot access="pritave">refresh()</slot> 184 219 <slot access="private">save()</slot> 220 <slot access="private">search()</slot> 185 221 </slots> 186 222 <functions> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMLogViewer.ui.h
r3797 r3805 138 138 tr ("Perform case sensitive search (when checked)")); 139 139 mWarningString->setText (tr ("String not found")); 140 } 141 142 void setText (const QString &aText) 143 { 144 mSearchString->setText (aText); 140 145 } 141 146 … … 248 253 qApp->installEventFilter (this); 249 254 mSearchString->setFocus(); 255 mSearchString->selectAll(); 250 256 } 251 257 … … 334 340 335 341 /* fix the tab order to ensure the dialog keys are always the last */ 336 setTabOrder (mSearchPanel->focusProxy(), mSaveButton); 342 setTabOrder (mSearchPanel->focusProxy(), mHelpButton); 343 setTabOrder (mHelpButton, mFindButton); 344 setTabOrder (mFindButton, mSaveButton); 337 345 setTabOrder (mSaveButton, mRefreshButton); 338 346 setTabOrder (mRefreshButton, mCloseButton); … … 470 478 } 471 479 } 480 if (aEvent->key() >= Qt::Key_Exclam && 481 aEvent->key() <= Qt::Key_AsciiTilde && 482 mLogList->isEnabled()) 483 { 484 mSearchPanel->show(); 485 mSearchPanel->setText (aEvent->text()); 486 } 472 487 } 473 488 else if (aEvent->state() == Qt::ControlButton && … … 529 544 { 530 545 /* reading log files folder */ 546 logFilesDir.setNameFilter ("*.log *.log.*"); 531 547 QStringList logList = logFilesDir.entryList (QDir::Files); 532 548 if (!logList.empty()) isAnyLogPresent = true; … … 556 572 557 573 /* enable/disable save button & tab widget according log presence */ 574 mFindButton->setEnabled (isAnyLogPresent); 558 575 mSaveButton->setEnabled (isAnyLogPresent); 559 576 mLogList->setEnabled (isAnyLogPresent); … … 639 656 } 640 657 658 void VBoxVMLogViewer::search() 659 { 660 mSearchPanel->isHidden() ? mSearchPanel->show() : mSearchPanel->hide(); 661 } 662 641 663 #include "VBoxVMLogViewer.ui.moc" 642 664
Note:
See TracChangeset
for help on using the changeset viewer.