wex v26.10.0
wex::data::listview Class Reference

Offers user data to be used by listview. More...

#include <wex/data/listview.h>

Public Types

enum  type_t {
  FOLDER , FIND , HISTORY , FILE ,
  TSV , NONE
}
 The supported lists. More...
enum  image_t { }
 Which images to use. More...
enum  { MENU_REPORT_FIND = 0 , MENU_TOOL = 1 }
 Menu flags, they determine how the context menu will appear. More...
typedef std::bitset< 2 > menu_t
 A typedef containing menu flags.

Public Member Functions

 listview ()
 Default constructor.
 listview (data::control &data)
 Constructor from control data.
 listview (data::window &data)
 Constructor from window data.
const data::control & control () const
 Returns control data.
listview & control (const data::control &data)
 Sets control data.
factory::listview * get_listview ()
 Returns listview.
image_t image () const
 Returns image type.
listview & image (image_t type)
 Sets image type.
bool inject ()
 Injects data into the listview (if it was set).
const wex::lexer * lexer () const
 Returns lexer.
listview & lexer (const wex::lexer *lexer)
 Sets lexer.
menu_t menu () const
 Returns menu flags.
listview & menu (menu_t flags, data::control::action_t action=data::control::SET)
 Sets menu flags.
bool revision () const
 Returns is revision member.
listview & revision (bool rhs)
 Sets is revision member, to enable revision like menus.
listview & set_listview (factory::listview *rhs)
 Sets listview.
type_t type () const
 Returns type.
listview & type (type_t type)
 Sets type.
const std::string type_description () const
 Returns the list type as a string.
const data::window & window () const
 Returns window data.
listview & window (const data::window &data)
 Sets window data.

Detailed Description

Offers user data to be used by listview.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Menu flags, they determine how the context menu will appear.

Enumerator
MENU_REPORT_FIND 

for adding find and replace in files

MENU_TOOL 

for adding tool menu

◆ image_t

Which images to use.

Enumerator
IMAGE_ART 

using wxArtProvider

IMAGE_FILE_ICON 

using the wxFileIconsTable

IMAGE_OWN 

use your own images

◆ type_t

The supported lists.

Enumerator
FOLDER 

a list containing folders only

FIND 

a list to show find results

HISTORY 

a list to show history items

FILE 

a list associated with a file

TSV 

a list with tab separated values for columns

NONE 

a list without predefined columns