*
* \author Martin Vermeer
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
-
#include <config.h>
-#include "xformsBC.h"
-#include "ControlNote.h"
#include "FormNote.h"
+#include "ControlNote.h"
#include "forms/form_note.h"
+
#include "Tooltips.h"
-#include "lyx_forms.h"
+#include "xformsBC.h"
+
#include "insets/insetnote.h"
-#include "debug.h"
-#include <vector>
+#include "lyx_forms.h"
+
-using std::vector;
+using std::string;
typedef FormController<ControlNote, FormView<FD_note> > base_class;
note_gui_tokens(ids_, gui_names_);
- for (int i = 0; i < 3; ++i) {
- }
-
- for (int i = 0; i < 3; ++i) {
+ for (string::size_type i = 0; i < gui_names_.size(); ++i) {
fl_addto_choice(dialog_->choice_type, gui_names_[i].c_str());
}
void FormNote::update()
{
string type(controller().params().type);
- for (int i = 0; i < 3; ++i) {
- if (type == ids_[i])
- fl_set_choice_text(dialog_->choice_type, gui_names_[i].c_str());
- }
+ for (string::size_type i = 0; i < gui_names_.size(); ++i) {
+ if (type == ids_[i])
+ fl_set_choice_text(dialog_->choice_type, gui_names_[i].c_str());
+ }
}
int i = fl_get_choice(dialog_->choice_type);
controller().params().type = ids_[i - 1];
}
-