]> cygwin.com Git - cygwin-apps/setup.git/blobdiff - PickPackageLine.h
Suppress bogus free-nonheap-object warning in iniparse.cc
[cygwin-apps/setup.git] / PickPackageLine.h
index f8537c8c9893e9442de6f27cde810f6577060174..2c59e90255d9dc71ab8a68569f38573bc315c2d2 100644 (file)
 #define SETUP_PICKPACKAGELINE_H
 
 class PickView;
+
 #include "package_meta.h"
-#include "PickLine.h"
+#include "ListView.h"
 
-class PickPackageLine:public PickLine
+class PickPackageLine: public ListViewLine
 {
 public:
-  PickPackageLine (PickView &aView, packagemeta & apkg):PickLine (apkg.key), pkg (apkg), theView (aView)
-  {
-  };
-  virtual void paint (HDC hdc, int x, int y, int row, int show_cat);
-  virtual int click (int const myrow, int const ClickedRow, int const x);
-  virtual int itemcount () const
-  {
-    return 1;
-  }
-  virtual bool IsContainer (void) const
-  {
-    return false;
-  }
-  virtual void insert (PickLine &)
+  PickPackageLine (PickView &aView, packagemeta & apkg, int aindent) :
+    pkg (apkg),
+    theView (aView),
+    indent (aindent)
   {
   };
-  virtual int set_action (packagemeta::_actions);
+  const std::wstring get_text(int col) const;
+  State get_state() const { return State::nothing; }
+  const std::string get_tooltip(int col) const;
+  int get_indent() const;
+  ActionList *get_actions(int col_num) const;
+  int do_action(int col, int action_id);
+  int do_default_action(int col);
+  bool map_key_to_action(WORD vkey, int *col_num, int *action_id) const;
 private:
   packagemeta & pkg;
   PickView & theView;
-  // XXX make checked an enum or tri-valued class of its own
-  void DrawCheck (int const checked, HDC hdc, int const column, HRGN const clip, int const x, int const by);
+  int indent;
 };
 
 #endif /* SETUP_PICKPACKAGELINE_H */
This page took 0.027064 seconds and 5 git commands to generate.