TDE base libraries and programs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.0KB

  1. /***************************************************************************
  2. * Copyright (C) 2003 by Martin Koller *
  3. * m.koller@surfeu.at *
  4. * This file is part of the Trinity Control Center Module for Joysticks *
  5. * *
  6. * This program is free software; you can redistribute it and/or modify *
  7. * it under the terms of the GNU General Public License as published by *
  8. * the Free Software Foundation; either version 2 of the License, or *
  9. * (at your option) any later version. *
  10. * *
  11. * This program is distributed in the hope that it will be useful, *
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  14. * GNU General Public License for more details. *
  15. * *
  16. * You should have received a copy of the GNU General Public License *
  17. * along with this program; if not, write to the *
  18. * Free Software Foundation, Inc., *
  19. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
  20. ***************************************************************************/
  21. #ifndef _CALDIALOG_H_
  22. #define _CALDIALOG_H_
  23. #include <kdialogbase.h>
  24. class TQLabel;
  25. class JoyDevice;
  26. // the dialog which tells the user all steps to calibrate the device
  27. class CalDialog : public KDialogBase
  28. {
  29. Q_OBJECT
  30. public:
  31. CalDialog(TQWidget *parent, JoyDevice *joy);
  32. void calibrate();
  33. private:
  34. void waitButton(int axis, bool press, int &lastVal);
  35. private slots:
  36. virtual void slotUser1();
  37. private:
  38. JoyDevice *joydev;
  39. TQLabel *text;
  40. TQLabel *valueLbl;
  41. };
  42. #endif