|
Public Methods
|
| |
main_listctrl (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize
&size=wxDefaultSize, long style=wxLC_REPORT, const wxValidator &validator=wxDefaultValidator, const wxString &name="the_main_listctrl") |
| |
Constructor.
|
| |
main_listctrl () |
| |
~main_listctrl () |
| |
Destructor.
|
| void |
init () |
| |
Initialize the listctrl.
|
| void |
gui_add_channel () |
| |
Add a channel in the GUI manner.
|
| void |
gui_add_channel_wizard () |
| |
Add a channel using an add_channel_wizard object.
|
| void |
gui_configure_channel () |
| |
Handle lauching of a channel_dialog to configure channel currently selected channel..
|
| void |
gui_delete_channels (bool prompt_first=TRUE) |
| |
Delete the channels selected in the listctrl, in the GUI manner.
|
| void |
gui_update_selected_channels () |
| |
Update the selected channels in a GUI way.
|
| void |
gui_update_due_channels () |
| |
Update all due channels in a GUI way.
|
| void |
gui_update_all_channels () |
| |
Update all channels in a GUI way.
|
| void |
paste_text_url_as_new_channel (const wxString &url) |
| |
Paste text from clipboard as a new channel.
|
| void |
paste_fullnames_as_new_separate_channels (const wxArrayString &fullnames) |
| |
Paste files from clipboard as separate new channels.
|
| void |
on_paste_url_as_new_channel_menuitem () |
| |
Action to execute when user chose 'Paste url...' from a menu.
|
| void |
on_paste_fullnames_as_new_separate_channels_menuitem () |
| |
Action to execute when user chose 'Paste filenames...' from a menu.
|
Protected Methods
|
| void |
load_rows () |
| |
Loads the rows of the listctrl with channel names and due dates.
|
| void |
insert_row (wxString &channel_section) |
| |
Inserts an individual row into the listctrl.
|
| void |
refresh_row (long row_number) |
| |
Refreshes a row, updating a row's channel name and due date if they have changed.
|
| void |
refresh_rows (wxArrayString &channel_sections) |
| |
Refreshes rows, updating rows' channel name and due date if they have changed.
|
| void |
get_selected_channel_sections (wxArrayString *channel_sections) |
| |
Get the section of configuration file of channels selected in the listctrl.
|
| void |
get_selected_row_numbers (wxArrayInt *row_numbers) |
| |
Get the row numbers that are selected in the listctrl (with top row=0).
|
| wxString |
get_cell_contents_string (long row_number, int column) |
| |
Gets the string contents of a 'cell' [a box of a certain row, in a certain column].
|
| wxString |
get_row_channel_section (long row_number) |
| |
Get the wxString of a channel's section in the config, based on its row number.
|
| void |
set_row_channel_section (const wxString &channel_section, long row_number) |
| |
Set a channel's section in the configuration, by its row number.
|
| void |
insert_row_channel_section (const wxString &channel_section, long row_number) |
| |
Insert a channel section in the array, before the specified index.
|
| void |
remove_row_channel_section (long row_number) |
| |
Deletes a channel section in the array, at the specified index.
|
| bool |
ensure_destinations_provided (const wxArrayString &channel_sections) |
| |
A GUI check to ensure that a channel about to be updated has a destination.
|
| void |
popup_menu (wxMouseEvent &event) |
| |
Popup a context sensitive menu.
|
| void |
launch_dialog_for_new_channel (const wxString &new_channel_section) |
| |
Launch a channel_dialog for a newly created channel.
|
| wxString |
get_channel_name_from_text_entry_dialog () |
| |
Gets a channel name from a popup text entrry dialog.
|
| void |
OnSize (wxSizeEvent &event) |
| |
Overriden virtual: action to execute in response to a resize event.
|
| void |
set_column_widths () |
| |
Sets the column widths. Called during init() an OnSize()
.
|
Protected Attributes
|
| wxWindow * |
m_parent |
| |
Parent window of the listctrl.
|
| wxArrayString |
m_row_channel_section_array |
| |
An array of section names of the individual rows of the listctrl.
|
It works via keeping a non-visible array of strings of the channel sections in m_row_channel_section_array that is kept in sync with the order of the channels in the listctrl.