void MainWindow::CellDoubleClicked(int row, int count) { if (count != MODIFY) { EditRow(row); } }
int EditCommand :: Execute( ALib::CommandLine & cmd ) { GetSkipOptions( cmd ); for ( int i = 2; i < cmd.Argc(); i++ ) { if ( cmd.Argv( i ) == FLAG_EDIT ) { AddSubCmd( cmd.Argv( i + 1 ) ); i++; } } ALib::CommaList cl( cmd.GetValue( FLAG_COLS, "" ) ); CommaListToIndex( cl, mCols ); IOManager io( cmd ); CSVRow row; while( io.ReadCSV( row ) ) { if ( Skip( io, row ) ) { continue; } if ( ! Pass( io, row ) ) { EditRow( row ); } io.WriteRow( row ); } return 0; }
bool CSVReportSet::triggerSlot(WObject *sender, const WSlot_ *slot, void **args) { if (slot == slots_ + 0) { sender_ = sender; hideSmsList(); return true; } if (slot == slots_ + 1) { sender_ = sender; showSmsList(); return true; } if (slot == slots_ + 2) { sender_ = sender; hideSmsList1(); return true; } if (slot == slots_ + 3) { sender_ = sender; showSmsList1(); return true; } if (slot == slots_ + 4) { sender_ = sender; hideSmsList2(); return true; } if (slot == slots_ + 5) { sender_ = sender; showSmsList2(); return true; } if (slot == slots_ + 6) { sender_ = sender; SaveConfig(); return true; } if (slot == slots_ + 7) { sender_ = sender; SaveConfig1(); return true; } if (slot == slots_ + 8) { sender_ = sender; ShowSendForm(); return true; } if (slot == slots_ + 9) { sender_ = sender; SelAll(); return true; } if (slot == slots_ + 10) { sender_ = sender; SelNone(); return true; } if (slot == slots_ + 11) { sender_ = sender; SelInvert(); return true; } if (slot == slots_ + 12) { sender_ = sender; BeforeDelPhone(); return true; } if (slot == slots_ + 13) { sender_ = sender; DelPhone(); return true; } if (slot == slots_ + 14) { sender_ = sender; AddPhone(); return true; } if (slot == slots_ + 15) { sender_ = sender; EditRow(*((const std::string *)args[0])); return true; } if (slot == slots_ + 16) { sender_ = sender; MainHelp(); return true; } if (slot == slots_ + 17) { sender_ = sender; Translate(); return true; } if (slot == slots_ + 18) { sender_ = sender; ExChange(); return true; } return WContainerWidget::triggerSlot(sender, slot, args); }