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.

datetime.h 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /***************************************************************************
  2. datetime.h - description
  3. -------------------
  4. begin : Mon Jan 7 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 DATETIME_H
  17. #define DATETIME_H
  18. /*
  19. * This two includes are required, because you have to use
  20. * KRenames internal structures and enums.
  21. */
  22. #include "batchrenamer.h"
  23. #include "pluginloader.h"
  24. #include "plugin.h"
  25. #include "helpdialog.h"
  26. #include <stdio.h>
  27. class KDatePicker;
  28. class KIntSpinBox;
  29. class TQCheckBox;
  30. class TQButtonGroup;
  31. class TQGroupBox;
  32. class TQLabel;
  33. class TQVBoxLayout;
  34. class TQHBoxLayout;
  35. class TQPushButton;
  36. class TQString;
  37. class TQWidget;
  38. class MyDatePlugin: public Plugin {
  39. Q_OBJECT
  40. public:
  41. const TQString getName() const;
  42. const TQString getAccelName() const;
  43. const int type() const;
  44. bool checkError();
  45. void drawInterface( TQWidget* w, TQVBoxLayout* l );
  46. void fillStructure();
  47. TQString processFile( BatchRenamer*, int, TQString token, int );
  48. const TQPixmap getIcon() const;
  49. private slots:
  50. void changeDT();
  51. protected:
  52. TQCheckBox* checkAccess;
  53. TQCheckBox* checkModification;
  54. KDatePicker* kDate;
  55. TQLabel* labelTime;
  56. KIntSpinBox* spinHour;
  57. KIntSpinBox* spinMinute;
  58. KIntSpinBox* spinSecond;
  59. TQPushButton* buttonCurrentDT;
  60. TQHBoxLayout* Layout0;
  61. TQVBoxLayout* Layout1;
  62. TQHBoxLayout* Layout2;
  63. struct datevals {
  64. TQDate date; // Date
  65. bool changeModification; // Change modification date
  66. bool changeAccess; // Change access date
  67. int hour;
  68. int minute;
  69. int second;
  70. } dvals;
  71. };
  72. #endif