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.

96 lines
3.5KB

  1. /***************************************************************************
  2. kmylistview.h - description
  3. -------------------
  4. begin : Mit M� 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 KMYLISTVIEW_H
  17. #define KMYLISTVIEW_H
  18. #include "batchrenamer.h"
  19. #include "kmylistbox.h"
  20. #include <klistview.h>
  21. #include <tqvaluelist.h>
  22. class TQMouseEvent;
  23. class KMyListView : public KListView {
  24. Q_OBJECT
  25. TQ_OBJECT
  26. public:
  27. KMyListView( TQValueList<manualchanges>* _changes, KMyListBox* _list, TQWidget* parent=0, const char* name=0 );
  28. ~KMyListView();
  29. signals:
  30. void itemChanged();
  31. void removeItem(int);
  32. void addFile();
  33. private slots:
  34. void changeItem( TQListViewItem* item, const TQPoint&, int );
  35. void showContext( TQListViewItem* item, const TQPoint& pos, int );
  36. void removeCurrentItem();
  37. void addFiles();
  38. void changeCurrentItem();
  39. void openCurrent();
  40. private:
  41. TQValueList<manualchanges>* changes;
  42. KMyListBox* list;
  43. };
  44. /////////////////////////////////////////////////////////////
  45. class TQColor;
  46. class TQString;
  47. class KMyListViewItem : public KListViewItem {
  48. public:
  49. KMyListViewItem(TQListView *parent);
  50. KMyListViewItem(TQListViewItem *parent);
  51. KMyListViewItem(TQListView *parent, TQListViewItem *after);
  52. KMyListViewItem(TQListViewItem *parent, TQListViewItem *after);
  53. KMyListViewItem(bool m, TQListView *parent,
  54. TQString, TQString = TQString(),
  55. TQString = TQString(), TQString = TQString(),
  56. TQString = TQString(), TQString = TQString(),
  57. TQString = TQString(), TQString = TQString());
  58. KMyListViewItem(bool m, TQListViewItem *parent,
  59. TQString, TQString = TQString(),
  60. TQString = TQString(), TQString = TQString(),
  61. TQString = TQString(), TQString = TQString(),
  62. TQString = TQString(), TQString = TQString());
  63. KMyListViewItem(bool m, TQListView *parent, TQListViewItem *after,
  64. TQString, TQString = TQString(),
  65. TQString = TQString(), TQString = TQString(),
  66. TQString = TQString(), TQString = TQString(),
  67. TQString = TQString(), TQString = TQString());
  68. KMyListViewItem(TQListViewItem *parent, TQListViewItem *after,
  69. TQString, TQString = TQString(),
  70. TQString = TQString(), TQString = TQString(),
  71. TQString = TQString(), TQString = TQString(),
  72. TQString = TQString(), TQString = TQString());
  73. virtual ~KMyListViewItem();
  74. void paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment );
  75. private:
  76. bool modified;
  77. };
  78. #endif