コード例 #1
0
void CFileBrowser::on_uploadButton_clicked(){
    CNotify notify;
    if( topItem != 0 ){
        this->loadFileFromDevice();
    } else {
        notify.execInfo("No Source File Selected");
    }
}
コード例 #2
0
void CFileBrowser::on_deleteButton_clicked(){
    CNotify notify;
    if( topItem != 0 ){
        this->deleteFile();
    } else {
        notify.execInfo("No File Selected");
    }
}
コード例 #3
0
void CFileBrowser::on_downloadButton_clicked(){
    CNotify notify;
    if( topItem != 0 ){
        this->saveFileToDevice();
    } else {
        notify.execInfo("No Target Folder Selected");
    }
}
コード例 #4
0
void CFileBrowser::on_formatButton_clicked()
{
    QString filename;
    QTreeWidgetItem* item;

    CNotify notify;
    if( topItem != 0 ){
        item = ui->tree->currentItem();
        filename = item->text(1);
        qDebug("format %s", filename.toLocal8Bit().constData());
        link()->format(filename.toStdString());
        this->refresh();
    } else {
        notify.execInfo("No Mount Selected to Format");
    }
}