当前位置: 首页>>代码示例>>C++>>正文


C++ Options::Save方法代码示例

本文整理汇总了C++中Options::Save方法的典型用法代码示例。如果您正苦于以下问题:C++ Options::Save方法的具体用法?C++ Options::Save怎么用?C++ Options::Save使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Options的用法示例。


在下文中一共展示了Options::Save方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: itemSelectedsegmentdirectory

void FormEphem::itemSelectedsegmentdirectory( QTreeWidgetItem *item)
{

    qDebug() << "void FormEphem::itemSelectedsegmentdirectory";

    QTreeWidgetItemIterator it1( ui->segmentdirectorywidget );

    opts.segmentdirectorylistinc.clear();

    while (*it1)
    {
        if ( (*it1)->checkState(0) == Qt::Checked )
        {
            opts.segmentdirectorylistinc << "1";
            qDebug() << "1";
        }
        else
        {
            opts.segmentdirectorylistinc << "0";
            qDebug() << "0";
        }
        ++it1;
    }

    opts.Save();


}
开发者ID:Sammalou,项目名称:EUMETCastView,代码行数:28,代码来源:formephem.cpp

示例2: workingdir

MainWindow::~MainWindow()
{

    delete ui;
    delete timer;

    delete formtoolbox;
    delete formephem;
    delete formglobecyl;
    delete cylequidist;
    delete satlist;
    delete seglist;

    opts.Save();
    poi.Save();

    imageptrs->DeleteImagePtrs();

    // Deleting h5 files in program directory

    QDir workingdir(".");
    QStringList filters;
    filters << "*.h5" << "*.HDF" << "IMG_DK01*";
    workingdir.setNameFilters(filters);
    QFileInfoList fileinfolist;

    workingdir.setFilter(QDir::Files | QDir::NoSymLinks);
    workingdir.setSorting(QDir::Name);
    fileinfolist = workingdir.entryInfoList();
    for (int i = 0; i < fileinfolist.size(); ++i)
    {
        QFile h5file(fileinfolist.at(i).fileName());
        if(h5file.remove())
            qDebug() << QString("Deleting h5 and Himawari files : %1").arg(fileinfolist.at(i).fileName());
    }

    QDir workingdir1(".");
    filters.clear();
    filters << "S3A_OL_1_*";
    workingdir1.setNameFilters(filters);
    workingdir1.setFilter(QDir::Dirs | QDir::NoSymLinks);
    QStringList infolist = workingdir1.entryList();

    if(opts.remove_S3A_dirs)
    {
        for (int i = 0; i < infolist.size(); ++i)
        {
            QDir deletedir(infolist.at(i));
            bool gelukt = deletedir.removeRecursively();
            if(gelukt)
                qDebug() << "removing S3A dir : " << infolist.at(i);
        }
    }

    qDebug() << "================closing MainWindow================";
    loggingFile.close();

}
开发者ID:hvanruys,项目名称:EUMETCastView,代码行数:58,代码来源:mainwindow.cpp

示例3: workingdir

MainWindow::~MainWindow()
{

    delete ui;
    delete timer;

    delete formtoolbox;
    delete formephem;
    delete formglobecyl;
    delete cylequidist;
    delete satlist;
    delete seglist;

    opts.Save();
    poi.Save();

    imageptrs->DeleteImagePtrs();

    // Deleting h5 files in program directory

    QDir workingdir(".");
    QStringList filters;
    filters << "*.h5" << "*.HDF" << "IMG_DK01*";
    workingdir.setNameFilters(filters);
    QFileInfoList fileinfolist;

    workingdir.setFilter(QDir::Files | QDir::NoSymLinks);
    workingdir.setSorting(QDir::Name);
    fileinfolist = workingdir.entryInfoList();
    for (int i = 0; i < fileinfolist.size(); ++i)
    {
        QFile h5file(fileinfolist.at(i).fileName());
        if(h5file.remove())
            qDebug() << QString("Deleting h5 and Himawari files : %1").arg(fileinfolist.at(i).fileName());
    }

    qDebug() << "================closing MainWindow================";

}
开发者ID:Sammalou,项目名称:EUMETCastView,代码行数:39,代码来源:mainwindow.cpp

示例4:

Dialog::~Dialog()
{
    delete ui;
    opts.Save();
}
开发者ID:hvanruys,项目名称:eumetcastwatcher,代码行数:5,代码来源:dialog.cpp


注:本文中的Options::Save方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。