@@ -69,6 +69,9 @@ ProvisioningEditor::ProvisioningEditor(QWidget* parent) : QDialog(parent)
6969  group_template = new  QActionGroup (this );
7070  group_template->addAction (ui.actionTemplateEduroamLong );
7171  group_template->addAction (ui.actionTemplateEduroamShort );
72+   group_template->addAction (ui.actionTemplateeap_peap );
73+   group_template->addAction (ui.actionTemplateeap_tls );
74+   group_template->addAction (ui.actionTemplateeap_ttls );
7275
7376  group_freeform = new  QActionGroup (this );
7477  group_freeform->addAction (ui.actionGlobal );
@@ -162,6 +165,10 @@ ProvisioningEditor::ProvisioningEditor(QWidget* parent) : QDialog(parent)
162165  menu_template = new  QMenu (tr (" Templates" this );menu_template->addAction (ui.actionTemplateEduroamShort );
163166  menu_template->addAction (ui.actionTemplateEduroamLong );
164167  menu_template->addAction (ui.actionTemplateEduroamShort );
168+   menu_template->addSeparator ();
169+   menu_template->addAction (ui.actionTemplateeap_peap );
170+   menu_template->addAction (ui.actionTemplateeap_tls );
171+   menu_template->addAction (ui.actionTemplateeap_ttls );
165172
166173  //  add menus to UI
167174  menubar->addMenu (menu_global);
@@ -427,14 +434,18 @@ void ProvisioningEditor::templateTriggered(QAction* act)
427434  //  get the source string depending on the action
428435  if  (act == ui.actionTemplateEduroamLong ) source = " :/text/text/eduroam_long.txt" 
429436  else  if  (act == ui.actionTemplateEduroamShort ) source = " :/text/text/eduroam_short.txt" 
430-   
437+ 		else  if  (act == ui.actionTemplateeap_peap ) source = " :/text/text/eap-peap.txt" 
438+ 			else  if  (act == ui.actionTemplateeap_tls ) source = " :/text/text/eap-tls.txt" 
439+ 				else  if  (act == ui.actionTemplateeap_ttls ) source = " :/text/text/eap-ttls.txt" 
440+ 					else  return ;
441+ 
431442  //  get the text
432443  QFile file (source);
433444  if  (file.open (QIODevice::ReadOnly | QIODevice::Text)) {  
434445    QByteArray ba = file.readAll ();
435446
436-     //  seed  the textedit with  the template 
437-     this -> seedTextEdit (QString (ba));
447+     //  append  the template to  the textedit 
448+     ui. plainTextEdit_main -> appendPlainText (QString (ba)  );
438449  } //  if 
439450
440451
@@ -592,8 +603,7 @@ void ProvisioningEditor::processFileList(const QStringList& sl_conf)
592603
593604// 
594605//  Slot to seed the QTextEdit window with data read from file.  Connected to
595- //  fileReadCompleted signal in root helper.  Also called directly from
596- //  the templateTriggered slot. 
606+ //  fileReadCompleted signal in root helper. 
597607void  ProvisioningEditor::seedTextEdit (const  QString& data)
598608{
599609  //  clear the text edit and seed it with the read data
0 commit comments