void GraphicsReportView::refresh_dirs_graphs() { if(slidingDownBts) slidingDownBts->deleteLater(); slidingDownBts = new GraphicSlidingDownBts(this); slidingDownBts->setPos(110+5,0); slidingDownBts->setBtsRect(QRectF(0,0,110+5+110,54)); QString dirName; load_avDirectories_directories(); for(int i=0;i<avDirectories.count();i++) { dirName = FSC_RUNS_FOLDERS_ROOT; if(avDirectories[i].length() == 16) // old format { dirName.append(avDirectories[i]); slidingDownBts->addBt(name_from_old_format(avDirectories[i]), dirName); } else { dirName.append(avDirectories[i]); slidingDownBts->addBt(name_from_new_format(avDirectories[i]), dirName); } } slidingDownBts->construction_finished(); connect(slidingDownBts, SIGNAL(bt_selected(QString)), this, SLOT(file_selected(QString))); }
void GraphicsReportView::refresh_dirs_graphs() { if(slidingDownBts) slidingDownBts->deleteLater(); slidingDownBts = new GraphicSlidingDownBts(this); slidingDownBts->setPos(110+5,0); slidingDownBts->setBtsRect(QRectF(0,0,110+5+110,54)); QString dirName; load_avDirectories_directories(); for(int i=0; i<avDirectories.count(); i++) { #ifdef Q_WS_MAEMO_5 qDebug() << "In Maemo home = " << QDir::homePath(); dirName = QDir::homePath() + QString("/PushSnowboarding/"); #else dirName = FSC_RUNS_FOLDERS_ROOT; #endif if(avDirectories[i].length() == 16) // old format { dirName.append(avDirectories[i]); slidingDownBts->addBt(name_from_old_format(avDirectories[i]), dirName); } else { dirName.append(avDirectories[i]); slidingDownBts->addBt(name_from_new_format(avDirectories[i]), dirName); } } slidingDownBts->construction_finished(); connect(slidingDownBts, SIGNAL(bt_selected(QString)), this, SLOT(file_selected(QString))); }
void item_selected(void) { current_directory.AddPart(entries[selection].name); if(entries[selection].is_directory) { refresh_entries(); announce_directory_changed(); } else if (file_selected) { file_selected(entries[selection].name); } }
//------------------------------------------------------------------------------ // Name: item_selected // Desc: //------------------------------------------------------------------------------ void RecentFileManager::item_selected() { if(auto action = qobject_cast<QAction *>(sender())) { const QString s = action->data().toString(); emit file_selected(s); } }
void ProjectNavigator::item_selected(QTreeWidgetItem *item, int column) { std::cerr << "ProjectNavigator, file selected: " << column << std::endl; std::cerr << "ProjectNavigator, file path: " << item->data(column, Qt::UserRole).toString().toStdString() << std::endl; emit file_selected(item->data(0, Qt::UserRole).toString()); }
// QFileDialog void fileSelected_(const QString &file) { file_selected(file); }