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.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. public:
  31. ConfDialog( TQWidget* parent = 0, const char* name = 0 );
  32. ~ConfDialog();
  33. inline bool loadplugins() const { return checkPlugins->isChecked(); }
  34. inline int thumbSize() const { return spinSize->value(); }
  35. inline bool autosize() const { return checkAutosize->isChecked(); }
  36. inline int historyItems() const { return spinHistory->value(); }
  37. inline void setLoadPlugins( bool b ) { checkPlugins->setChecked( b ); }
  38. inline void setThumbSize( int b ) { spinSize->setValue( b ); }
  39. inline void setAutosize( bool b ) { checkAutosize->setChecked( b ); }
  40. inline void setHistoryItems( int b ) { spinHistory->setValue( b ); }
  41. private slots:
  42. void defaults();
  43. private:
  44. void setupTab1();
  45. void setupTab2();
  46. protected:
  47. TQCheckBox* checkAsk;
  48. TQCheckBox* checkPlugins;
  49. TQCheckBox* checkAutosize;
  50. KIntNumInput* spinSize;
  51. KIntNumInput* spinHistory;
  52. };
  53. #endif