sqlines-studio/mainwindow.cpp
// create New script tab (called from menu)
create New script tab (called from menu)
create New script tab ( called from menu )
void MainWindow::createNewScript()
{
    ScriptTab *tab = new ScriptTab();
    QString tab_name = "convert1.sql";
    tab->SetTabName(tab_name);
    tab->SetSourceFile(tab_name);
    int newInd = ui->mainTabWidget->addTab(tab, tab_name);
    ui->mainTabWidget->setCurrentIndex(newInd);
}
void MainWindow :: createNewScript ( ) { ScriptTab * tab = new ScriptTab ( ) ; QString tab_name = " " ; tab -> SetTabName ( tab_name ) ; tab -> SetSourceFile ( tab_name ) ; int newInd = ui -> mainTabWidget -> addTab ( tab , tab_name ) ; ui -> mainTabWidget -> setCurrentIndex ( newInd ) ; }
create New script tab (called from menu)
create New script tab ( called from menu )
// Create a new tab and activate it