~ubuntu-branches/ubuntu/quantal/muse/quantal

« back to all changes in this revision

Viewing changes to muse/widgets/projectcreateimpl.cpp

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-07-18 16:07:06 UTC
  • mto: (10.1.11 sid) (1.1.12)
  • mto: This revision was merged to the branch mainline in revision 31.
  • Revision ID: package-import@ubuntu.com-20120718160706-yc6332ishfcq7b7g
ImportĀ upstreamĀ versionĀ 2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
  
77
77
  //createFolderCheckbox->setChecked(MusEGlobal::config.projectStoreInFolder && is_new); // Suggest no folder if not new.
78
78
  
79
 
  connect(templateCheckBox,SIGNAL(clicked()), this, SLOT(templateButtonChanged()));
 
79
  connect(templateCheckBox,SIGNAL(toggled(bool)), this, SLOT(templateButtonChanged(bool)));
80
80
  //connect(templateCheckBox,SIGNAL(clicked()), this, SLOT(updateDirectoryPath()));
81
81
  connect(projDirToolButton,SIGNAL(clicked()), this, SLOT(browseProjDir()));
82
82
  connect(restorePathButton,SIGNAL(clicked()), this, SLOT(restorePath()));
215
215
  }  
216
216
}
217
217
 
218
 
void ProjectCreateImpl::templateButtonChanged()
 
218
void ProjectCreateImpl::templateButtonChanged(bool v)
219
219
{
220
 
  restorePathButton->setEnabled(templateCheckBox->isChecked() ? !overrideTemplDirPath.isEmpty() : !overrideDirPath.isEmpty()); 
 
220
  restorePathButton->setEnabled(v ? !overrideTemplDirPath.isEmpty() : !overrideDirPath.isEmpty()); 
 
221
  winStateCheckbox->setChecked(!v);
221
222
  updateDirectoryPath();
222
223
}
223
224
 
231
232
  updateDirectoryPath();
232
233
}
233
234
 
 
235
 
 
236
bool ProjectCreateImpl::getWriteTopwins() const
 
237
{
 
238
  return winStateCheckbox->isChecked();
 
239
}
 
240
 
 
241
void ProjectCreateImpl::setWriteTopwins(bool v)
 
242
{
 
243
  winStateCheckbox->setChecked(v);
 
244
}
 
245
 
234
246
/*
235
 
bool ProjectCreateImpl::getProjectIsTemplate() const
236
 
{
237
 
  return templateCheckBox->isChecked();
238
 
}
239
 
 
240
247
QString ProjectCreateImpl::getTemplatePath() const
241
248
{
242
249
   return templDirPath;