MainWindowPrivate.ui.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /*_############################################################################
  2. _##
  3. _## MainWindowPrivate.ui.h
  4. _##
  5. _## SNMP++v3.2.23
  6. _## -----------------------------------------------
  7. _## Copyright (c) 2001-2007 Jochen Katz, Frank Fock
  8. _##
  9. _## This software is based on SNMP++2.6 from Hewlett Packard:
  10. _##
  11. _## Copyright (c) 1996
  12. _## Hewlett-Packard Company
  13. _##
  14. _## ATTENTION: USE OF THIS SOFTWARE IS SUBJECT TO THE FOLLOWING TERMS.
  15. _## Permission to use, copy, modify, distribute and/or sell this software
  16. _## and/or its documentation is hereby granted without fee. User agrees
  17. _## to display the above copyright notice and this license notice in all
  18. _## copies of the software and any documentation of the software. User
  19. _## agrees to assume all liability for the use of the software;
  20. _## Hewlett-Packard and Jochen Katz make no representations about the
  21. _## suitability of this software for any purpose. It is provided
  22. _## "AS-IS" without warranty of any kind, either express or implied. User
  23. _## hereby grants a royalty-free license to any and all derivatives based
  24. _## upon this software code base.
  25. _##
  26. _## Stuttgart, Germany, Sun Nov 11 15:10:59 CET 2007
  27. _##
  28. _##########################################################################*/
  29. /****************************************************************************
  30. ** ui.h extension file, included from the uic-generated form implementation.
  31. **
  32. ** If you wish to add, delete or rename functions or slots use
  33. ** Qt Designer which will update this file, preserving your code. Create an
  34. ** init() function in place of a constructor, and a destroy() function in
  35. ** place of a destructor.
  36. *****************************************************************************/
  37. #include <qmessagebox.h>
  38. #include <qstring.h>
  39. #include <qapplication.h>
  40. void MainWindowPrivate::fileExit()
  41. {
  42. QApplication::exit(0);
  43. }
  44. void MainWindowPrivate::helpAbout()
  45. {
  46. QString caption("About");
  47. QString content("\nSimple SNMP++ Example\n\nAuthor: Jochen Katz\n\n");
  48. QMessageBox msgbox(caption, content, QMessageBox::NoIcon, QMessageBox::Ok,
  49. QMessageBox::NoButton, QMessageBox::NoButton);
  50. msgbox.exec();
  51. }
  52. void MainWindowPrivate::push_button_get_next_clicked()
  53. {
  54. }
  55. void MainWindowPrivate::edit_properties_action_activated()
  56. {
  57. }
  58. /// enable and disable version specific options
  59. void MainWindowPrivate::button_group_version_clicked( int version)
  60. {
  61. switch (version)
  62. {
  63. case 1:
  64. case 2:
  65. group_box_v1->setEnabled(true);
  66. group_box_v3->setEnabled(false);
  67. break;
  68. case 3:
  69. group_box_v1->setEnabled(false);
  70. group_box_v3->setEnabled(true);
  71. break;
  72. default:
  73. qWarning("Internal error in MainWindowPrivate::button_group_version_clicked.\n");
  74. break;
  75. }
  76. }
  77. void MainWindowPrivate::push_button_broadcast_clicked()
  78. {
  79. }
  80. void MainWindowPrivate::push_button_traps_toggled(bool)
  81. {
  82. }