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.

kmylistview.h 3.5KB

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