Hi everyone. 
I need a system that searches of large text files, you must have a main form and a search form that runs on a different thread because it freezes the system. I must also open up new forms of search that works simultaneously and I can stop, pause and restart the search.
Main Form - frmTelaPrincipal.cpp
void clsTelaPrincipal::on_actionCadastro_de_Clientes_tr iggered()
{
clsCadClientes *objfrmCadClientes = new clsCadClientes;
ui->mdiArea->addSubWindow(objfrmCadClientes);
objfrmCadClientes->show();
void clsTelaPrincipal::on_actionCadastro_de_Clientes_tr iggered()
{
clsCadClientes *objfrmCadClientes = new clsCadClientes;
ui->mdiArea->addSubWindow(objfrmCadClientes);
objfrmCadClientes->show();
To copy to clipboard, switch view to plain text mode
Search Form - frmCadClientes.cpp
void clsCadClientes::on_cmdTextEdit_clicked()
{
Open file routine here...
ui->txtEdit->setPlainText(in.readAll());
file.close();
}
}
void clsCadClientes::on_cmdSearch_clicked()
{
while (ui->txtEdit->find(ui->lineEdit->text()))
{
ui->txtEdit->setTextBackgroundColor("yellow");
}
void clsCadClientes::on_cmdTextEdit_clicked()
{
Open file routine here...
ui->txtEdit->setPlainText(in.readAll());
file.close();
}
}
void clsCadClientes::on_cmdSearch_clicked()
{
while (ui->txtEdit->find(ui->lineEdit->text()))
{
ui->txtEdit->setTextBackgroundColor("yellow");
}
To copy to clipboard, switch view to plain text mode
How do I post the source code?
marcos.miranda
msn: jmbm.trab@bol.com.br
Bookmarks