comparison main/main.cpp @ 64:f7f676a533e5

* A start to a panner widget to go with thumbwheels
author Chris Cannam
date Wed, 18 Oct 2006 16:38:30 +0000
parents ec77936c268e
children e269ae6ed008
comparison
equal deleted inserted replaced
63:dc7a73ef69af 64:f7f676a533e5
136 gui.move(settings.value("position").toPoint()); 136 gui.move(settings.value("position").toPoint());
137 } 137 }
138 settings.endGroup(); 138 settings.endGroup();
139 139
140 gui.show(); 140 gui.show();
141 /* 141
142 QStringList pathList;
143 for (QStringList::iterator i = args.begin(); i != args.end(); ++i) {
144 if (i == args.begin()) continue;
145 if (!i->startsWith('-')) {
146 pathList.push_back(*i);
147 }
148 }
149 */
150 bool haveSession = false; 142 bool haveSession = false;
151 bool haveMainModel = false; 143 bool haveMainModel = false;
152 144
153 for (QStringList::iterator i = args.begin(); i != args.end(); ++i) { 145 for (QStringList::iterator i = args.begin(); i != args.end(); ++i) {
154 146
183 QMessageBox::critical 175 QMessageBox::critical
184 (&gui, QMessageBox::tr("Failed to open file"), 176 (&gui, QMessageBox::tr("Failed to open file"),
185 QMessageBox::tr("File \"%1\" could not be opened").arg(path)); 177 QMessageBox::tr("File \"%1\" could not be opened").arg(path));
186 } 178 }
187 } 179 }
188 /*
189
190 if (!pathList.isEmpty()) {
191 bool success = false;
192 if (path.endsWith(".sv")) {
193 success = gui.openSessionFile(path);
194 }
195 if (!success) {
196 success = gui.openSomeFile(path);
197 }
198 if (!success) {
199 QMessageBox::critical(&gui, QMessageBox::tr("Failed to open file"),
200 QMessageBox::tr("File \"%1\" could not be opened").arg(path));
201 }
202 }
203 */
204 180
205 int rv = application.exec(); 181 int rv = application.exec();
206 std::cerr << "application.exec() returned " << rv << std::endl; 182 std::cerr << "application.exec() returned " << rv << std::endl;
207 183
208 cleanupMutex.lock(); 184 cleanupMutex.lock();