2depth 추가
git-svn-id: svn://192.168.0.12/source@170 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
@@ -429,6 +429,37 @@ void YMBasicWidget::FileImport()
|
||||
ViewResult();
|
||||
}
|
||||
|
||||
void YMBasicWidget::SaveFile()
|
||||
{
|
||||
/*
|
||||
QString strFilename = QFileDialog::getSaveFileName(0,"save file",QDir::currentPath(),
|
||||
"csv files (*.csv);;All files (*.*)",new QString("Text files (*.csv)"));
|
||||
if (strFilename.toLower().right(4) != QString(".csv"))
|
||||
strFilename += ".csv";
|
||||
QFile file(strFilename);
|
||||
if(!file.open(QFile::WriteOnly | QFile::Text)) return;
|
||||
|
||||
QTextStream out(&file);
|
||||
|
||||
STable* pTable = (STable*)((QTabWidget*)(m_ptwTable->currentWidget()))->currentWidget();
|
||||
int nCountIndex = pTable->columnCount() - 1;
|
||||
int nKeywordIndex = pTable->columnCount() - 2;
|
||||
|
||||
QString strCKeyword = m_pleCKeyword->text().trimmed();
|
||||
for (int i = 0; i < pTable->rowCount(); i++)
|
||||
{
|
||||
QString strKeyword = pTable->item(i, nKeywordIndex)->text().trimmed();
|
||||
int nCount = pTable->item(i, nCountIndex)->text().trimmed().toInt();
|
||||
for(int j = 0; j < nCount; j++)
|
||||
{
|
||||
out << strCKeyword << ";" << strKeyword << endl;
|
||||
}
|
||||
}
|
||||
file.close();
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
void YMBasicWidget::FileExport()
|
||||
{
|
||||
QString strFilename = QFileDialog::getSaveFileName(0,"Exoprt file",QDir::currentPath(),
|
||||
|
||||
Reference in New Issue
Block a user