KRename – powerful batch renamer
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.

68 lines
2.3KB

  1. /***************************************************************************
  2. confdialog.h - description
  3. -------------------
  4. begin : Sun Jan 27 2002
  5. copyright : (C) 2002 by Dominik Seichter
  6. email : domseichter@web.de
  7. ***************************************************************************/
  8. /***************************************************************************
  9. * *
  10. * This program is free software; you can redistribute it and/or modify *
  11. * it under the terms of the GNU General Public License as published by *
  12. * the Free Software Foundation; either version 2 of the License, or *
  13. * (at your option) any later version. *
  14. * *
  15. ***************************************************************************/
  16. #ifndef CONFDIALOG_H
  17. #define CONFDIALOG_H
  18. // QT includes
  19. #include <tqcheckbox.h>
  20. // KDE includes
  21. #include <kdialogbase.h>
  22. #include <knuminput.h>
  23. #include "guimodeselector.h"
  24. class TQHBoxLayout;
  25. class TQVBoxLayout;
  26. class TQWidget;
  27. class KIntNumInput;
  28. class ConfDialog : public KDialogBase, public GUIModeSelector {
  29. Q_OBJECT
  30. TQ_OBJECT
  31. public:
  32. ConfDialog( TQWidget* parent = 0, const char* name = 0 );
  33. ~ConfDialog();
  34. inline bool loadplugins() const { return checkPlugins->isChecked(); }
  35. inline int thumbSize() const { return spinSize->value(); }
  36. inline bool autosize() const { return checkAutosize->isChecked(); }
  37. inline int historyItems() const { return spinHistory->value(); }
  38. inline void setLoadPlugins( bool b ) { checkPlugins->setChecked( b ); }
  39. inline void setThumbSize( int b ) { spinSize->setValue( b ); }
  40. inline void setAutosize( bool b ) { checkAutosize->setChecked( b ); }
  41. inline void setHistoryItems( int b ) { spinHistory->setValue( b ); }
  42. private slots:
  43. void defaults();
  44. private:
  45. void setupTab1();
  46. void setupTab2();
  47. protected:
  48. TQCheckBox* checkAsk;
  49. TQCheckBox* checkPlugins;
  50. TQCheckBox* checkAutosize;
  51. KIntNumInput* spinSize;
  52. KIntNumInput* spinHistory;
  53. };
  54. #endif