Exemplo n.º 1
0
CodeGenerator::CodeGenerator(void) {
	file = fopen("logs/code/code.c", "w+");
	tabSpace = 0;
	emitInit();
	addTabs(1);
	return;
}//constructor
Exemplo n.º 2
0
LeftSide::LeftSide(ApplicationCommandManager &commands, const Audio::Engine &engine, AudioPluginFormatManager &) : _commands(commands),
	_engine(engine),
	_tsThread("File Tree"),
	_directoryList(nullptr, _tsThread),
	_tabbedComponent(TabbedButtonBar::Orientation::TabsAtLeft),
	_projectTab(_commands),
	_fileTree(_directoryList),
	_masterStrip(commands, 0, engine)
{
    _pluginList = new PluginListComponent(_engine.getMixer()->getFormatManager(), _engine.getMixer()->getKnownPluginList(), File::nonexistent, nullptr);
    #if defined(__APPLE__)
    _pluginList->scanFor(_auFormat);
    #endif

	//_tabbedComponent = new TabbedComponent(TabbedButtonBar::Orientation::TabsAtLeft);
	//Set Up the Project Tab
	//_projectTab = new ProjectTab(_commands);
	//Set Up the File Tree and Directories
	prepareFileTree();
	//Set Up the Plugin List
	/*
	_formats.registerBasicFormats();

	_pluginList = new PluginListComponent(_formats, _plugins, nullptr, nullptr);
	preparePluginList();
	*/
	//Add Tabs to the component
	addTabs();
	addAndMakeVisible(_tabbedComponent);
}
Exemplo n.º 3
0
void MainWindow::dropEvent(QDropEvent* event)
{
    qDebug() << "Drop event";
    auto mimeData = event->mimeData();
    if (mimeData->hasUrls()) {
        QStringList pathList;
        auto urlList = mimeData->urls();
        for (int i=0; i<urlList.size(); ++i) {
            pathList.append(urlList.at(i).toLocalFile());
        }
        addTabs(pathList);
    }
}
Exemplo n.º 4
0
void MainWindow::chooseFiles()
{
    QSettings settings;
    auto initdir = settings.value(LOADDIR_KEY, ".").toString();
    auto files = QFileDialog::getOpenFileNames(
            this,
            tr("Select one or more files to open"),
            initdir,
            FORMAT_LIST);
    addTabs(files);
    if (files.size() > 0) {
        settings.setValue(LOADDIR_KEY, files.first());
    }
}