foobar2000 SDK  2015-08-03
Public Member Functions
InPlaceEdit::CTableEditHelperV2_ListView

#include <inplace_edit_v2.h>

+ Inheritance diagram for InPlaceEdit::CTableEditHelperV2_ListView:

Public Member Functions

t_size TableEdit_GetColumnCount () const
 
void TableEdit_GetColumnOrder (t_size *out, t_size count) const
 
void TableEdit_GetField (t_size item, t_size subItem, pfc::string_base &out, t_size &lineCount)
 
t_size TableEdit_GetItemCount () const
 
RECT TableEdit_GetItemRect (t_size item, t_size subItem) const
 
void TableEdit_SetField (t_size item, t_size subItem, const char *value)
 
void TableEdit_SetItemFocus (t_size item, t_size subItem)
 
- Public Member Functions inherited from InPlaceEdit::CTableEditHelperV2
void TableEdit_Abort (bool forwardContent)
 
virtual bool TableEdit_Advance (t_size &item, t_size &subItem, t_uint32 whathappened)
 
virtual void TableEdit_Finished ()
 
virtual bool TableEdit_GetAutoComplete (t_size item, t_size subItem, pfc::com_ptr_t< IUnknown > &out)
 
virtual t_uint32 TableEdit_GetEditFlags (t_size item, t_size subItem) const
 
virtual HWND TableEdit_GetParentWnd () const =0
 
bool TableEdit_IsActive () const
 
virtual bool TableEdit_IsColumnEditable (t_size subItem) const
 
void TableEdit_Start (t_size item, t_size subItem)
 

Additional Inherited Members

- Protected Member Functions inherited from InPlaceEdit::CTableEditHelperV2
void on_task_completion (unsigned p_id, unsigned p_status)
 
- Protected Member Functions inherited from completion_notify_receiver
 ~completion_notify_receiver ()
 
completion_notify::ptr create_or_get_task (unsigned p_id)
 
completion_notify_ptr create_task (unsigned p_id)
 
bool have_task (unsigned p_id) const
 
void orphan_all_tasks ()
 
void orphan_task (unsigned p_id)
 

Detailed Description

Definition at line 38 of file inplace_edit_v2.h.

Member Function Documentation

t_size InPlaceEdit::CTableEditHelperV2_ListView::TableEdit_GetColumnCount ( ) const
inlinevirtual

Implements InPlaceEdit::CTableEditHelperV2.

Definition at line 44 of file inplace_edit_v2.h.

int ListView_GetColumnCount(HWND listView)
size_t t_size
Definition: int_types.h:48
virtual HWND TableEdit_GetParentWnd() const =0
void InPlaceEdit::CTableEditHelperV2_ListView::TableEdit_GetColumnOrder ( t_size out,
t_size  count 
) const
virtual

Reimplemented from InPlaceEdit::CTableEditHelperV2.

Definition at line 114 of file inplace_edit_v2.cpp.

114  {
115  pfc::array_t<int> temp; temp.set_size(count);
116  WIN32_OP_D( ListView_GetColumnOrderArray( TableEdit_GetParentWnd(), count, temp.get_ptr() ) );
117  for(t_size walk = 0; walk < count; ++walk) out[walk] = temp[walk];
118  }
const t_item * get_ptr() const
Definition: array.h:213
size_t t_size
Definition: int_types.h:48
void set_size(t_size p_size)
Definition: array.h:104
virtual HWND TableEdit_GetParentWnd() const =0
void InPlaceEdit::CTableEditHelperV2_ListView::TableEdit_GetField ( t_size  item,
t_size  subItem,
pfc::string_base out,
t_size lineCount 
)
virtual

Implements InPlaceEdit::CTableEditHelperV2.

Definition at line 126 of file inplace_edit_v2.cpp.

126  {
128  lineCount = pfc::is_multiline(out) ? 5 : 1;
129  }
bool is_multiline(const char *p_string, t_size p_len)
void get_item_text(HWND p_listview, unsigned p_index, unsigned p_column, pfc::string_base &p_out)
virtual HWND TableEdit_GetParentWnd() const =0
t_size InPlaceEdit::CTableEditHelperV2_ListView::TableEdit_GetItemCount ( ) const
virtual

Implements InPlaceEdit::CTableEditHelperV2.

Definition at line 133 of file inplace_edit_v2.cpp.

133  {
134  LRESULT temp;
135  WIN32_OP_D( ( temp = ListView_GetItemCount( TableEdit_GetParentWnd() ) ) >= 0 );
136  return (t_size) temp;
137  }
size_t t_size
Definition: int_types.h:48
virtual HWND TableEdit_GetParentWnd() const =0
RECT InPlaceEdit::CTableEditHelperV2_ListView::TableEdit_GetItemRect ( t_size  item,
t_size  subItem 
) const
virtual

Implements InPlaceEdit::CTableEditHelperV2.

Definition at line 120 of file inplace_edit_v2.cpp.

120  {
121  RECT rc;
122  WIN32_OP_D( ListView_GetSubItemRect(TableEdit_GetParentWnd(),item,subItem,LVIR_LABEL,&rc) );
123  return rc;
124  }
virtual HWND TableEdit_GetParentWnd() const =0
void InPlaceEdit::CTableEditHelperV2_ListView::TableEdit_SetField ( t_size  item,
t_size  subItem,
const char *  value 
)
virtual

Implements InPlaceEdit::CTableEditHelperV2.

Definition at line 130 of file inplace_edit_v2.cpp.

130  {
131  WIN32_OP_D( listview_helper::set_item_text( TableEdit_GetParentWnd(), item, subItem, value) );
132  }
bool set_item_text(HWND p_listview, unsigned p_index, unsigned p_column, const char *p_name)
virtual HWND TableEdit_GetParentWnd() const =0
void InPlaceEdit::CTableEditHelperV2_ListView::TableEdit_SetItemFocus ( t_size  item,
t_size  subItem 
)
virtual

Implements InPlaceEdit::CTableEditHelperV2.

Definition at line 138 of file inplace_edit_v2.cpp.

138  {
140  }
virtual HWND TableEdit_GetParentWnd() const =0
bool select_single_item(HWND p_listview, unsigned p_index)

The documentation for this class was generated from the following files: