File: MessageList.h

package info (click to toggle)
mriconvert 1%3A2.1.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,488 kB
  • sloc: cpp: 17,029; makefile: 11
file content (39 lines) | stat: -rw-r----- 615 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef MESSAGE_LIST_H_
#define MESSAGE_LIST_H_

#include <vector>
#include <wx/fdrepdlg.h>


class wxListView;


namespace jcs {

typedef std::vector<wxString> Message;
typedef std::vector<Message> MessageList;


class MessageListDlg : public wxDialog
{
public:
	MessageListDlg(const wxString& title);
	void AddMessages(const MessageList& messages);
	void SetColumns(const Message& columns);

	void OnSave (wxCommandEvent& event);

protected:

    DECLARE_EVENT_TABLE()

private:
	wxListView* mpListView;
	wxString mGetItemText(long index, int column) const;

};

}

#endif