History

Merge branch 'master' of https://github.com/highfidelity/hifi into record_feature

Atlante45 committed 12 years ago

Commit 6d567e62 parents 1d30b52 bec149e31 files · +2326 −651Browse files

Showing the changes to interface/src/Application.cpp (1 of 31 files). Show all

Unified · Split

interface/src/Application.cpp+11−10
@@ -137,7 +137,8 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 136 unmodified lines
137137 _frameCount(0),
138138 _fps(60.0f),
139139 _justStarted(true),
140− _voxelImporter(NULL),
140+ _voxelImportDialog(NULL),
141+ _voxelImporter(),
141142 _importSucceded(false),
142143 _sharedVoxelSystem(TREE_SCALE, DEFAULT_MAX_VOXELS_PER_SYSTEM, &_clipboard),
143144 _modelClipboardRenderer(),
@@ -432,7 +433,7 @@ Application::~Application() { · 288 unmodified lines
432433 delete idleTimer;
433434
434435 _sharedVoxelSystem.changeTree(new VoxelTree);
435− delete _voxelImporter;
436+ delete _voxelImportDialog;
436437
437438 // let the avatar mixer know we're out
438439 MyAvatar::sendKillAvatar();
@@ -467,8 +468,8 @@ void Application::saveSettings() { · 28 unmodified lines
467468 Menu::getInstance()->saveSettings();
468469 _rearMirrorTools->saveSettings(_settings);
469470
470− if (_voxelImporter) {
471− _voxelImporter->saveSettings(_settings);
471+ if (_voxelImportDialog) {
472+ _voxelImportDialog->saveSettings(_settings);
472473 }
473474 _settings->sync();
474475 _numChangedSettings = 0;
@@ -1621,17 +1622,17 @@ void Application::exportVoxels(const VoxelDetail& sourceVoxel) { · 1146 unmodified lines
16211622 void Application::importVoxels() {
16221623 _importSucceded = false;
16231624
1624− if (!_voxelImporter) {
1625− _voxelImporter = new VoxelImporter(_window);
1626− _voxelImporter->loadSettings(_settings);
1625+ if (!_voxelImportDialog) {
1626+ _voxelImportDialog = new VoxelImportDialog(_window);
1627+ _voxelImportDialog->loadSettings(_settings);
16271628 }
16281629
1629− if (!_voxelImporter->exec()) {
1630+ if (!_voxelImportDialog->exec()) {
16301631 qDebug() << "Import succeeded." << endl;
16311632 _importSucceded = true;
16321633 } else {
16331634 qDebug() << "Import failed." << endl;
1634− if (_sharedVoxelSystem.getTree() == _voxelImporter->getVoxelTree()) {
1635+ if (_sharedVoxelSystem.getTree() == _voxelImporter.getVoxelTree()) {
16351636 _sharedVoxelSystem.killLocalVoxels();
16361637 _sharedVoxelSystem.changeTree(&_clipboard);
16371638 }
@@ -1746,7 +1747,7 @@ void Application::init() { · 108 unmodified lines
17461747 // Cleanup of the original shared tree
17471748 _sharedVoxelSystem.init();
17481749
1749− _voxelImporter = new VoxelImporter(_window);
1750+ _voxelImportDialog = new VoxelImportDialog(_window);
17501751
17511752 _environment.init();
17521753

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t