예제 #1
0
/// Builds the truth table.
void MainWindow::build_table(FunctionParser* const parser)
{
    if(!parser || !parser->size())
        return;

    insert_columns();

    const unsigned int size = 1 << parser->size();
    for(unsigned int row = 0; row < size; ++row)
        if(!insert_row(row, parser))
            return;
}
channel_check_listctrl::channel_check_listctrl( wxWindow *parent,
                              wxWindowID id,
                              wxFileConfig* configuration,
                              int default_image_list_index,
                              long options,
                              const wxPoint& pos, const wxSize& size,
                              long style, const wxValidator& validator,
                              const wxString& name )
   : channel_listctrl_base( parent, id, configuration, default_image_list_index, options,
                            pos, size, style, validator, name )
{
    wxLogDebug( "Entering channel_check_listctrl constructor" );
    insert_columns();

    initialize_listctrl_content();
    wxLogDebug( "Completed channel_check_listctrl constructor" );
}