wex  v20.04.0
Public Types | Public Member Functions | List of all members
wex::listview_data Class Reference

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

#include <wex/listview-data.h>

Public Types

enum  type_t {
  FOLDER, FIND, HISTORY, KEYWORD,
  FILE, NONE
}
 The supported lists. More...
 
enum  image_t { , IMAGE_ART, IMAGE_FILE_ICON, IMAGE_OWN }
 Which images to use. More...
 
enum  { MENU_REPORT_FIND = 0, MENU_TOOL = 1 }
 Menu flags, they determine how the context menu will appear. More...
 

Public Member Functions

 listview_data (listview *lv=nullptr)
 Default constructor.
 
 listview_data (listview *lv, const listview_data &r)
 Copy constructor.
 
 listview_data (control_data &data, listview *lv=nullptr)
 Constructor from control data.
 
 listview_data (window_data &data, listview *lv=nullptr)
 Constructor from window data.
 
listview_dataoperator= (const listview_data &r)
 Assignment operator.
 
const auto & control () const
 Returns control data.
 
listview_datacontrol (control_data &data)
 Sets control data.
 
const auto & image () const
 Returns image type.
 
listview_dataimage (image_t type)
 Sets image type.
 
bool inject ()
 injects data.

 
const auto & lexer () const
 Returns lexer.
 
listview_datalexer (const wex::lexer *lexer)
 Sets lexer.
 
const auto & menu () const
 Returns menu flags.
 
listview_datamenu (menu_t flags, control_data::action_t action=control_data::SET)
 Sets menu flags.
 
const auto & type () const
 Returns type.
 
listview_datatype (type_t type)
 Sets type.
 
const std::string type_description () const
 Returns the list type as a string.
 
const auto & window () const
 Returns window data.
 
listview_datawindow (window_data &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

KEYWORD 

a list to show keywords

FILE 

a list associated with a file

NONE 

a list without predefined columns