editor.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <FL/Fl.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Double_Window.H>
#include <FL/fl_ask.H>
#include <FL/Fl_File_Chooser.H>
#include <FL/Fl_Menu_Bar.H>
#include <FL/Fl_Input.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Return_Button.H>
#include <FL/Fl_Text_Buffer.H>
#include <FL/Fl_Text_Editor.H>

Include dependency graph for editor.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

Functions

Variables


Function Documentation

void runCs_cb ( Fl_Widget *  ,
void *   
)

Definition at line 2841 of file winFunc.h.

References runCs().

02842 {
02843     runCs();
02844 }

Here is the call graph for this function:

void runAudioFile_cb ( Fl_Widget *  ,
void *   
)

Definition at line 2851 of file winFunc.h.

References runAudioFile().

02852 {
02853     runAudioFile();
02854 }

Here is the call graph for this function:

void insert_header22050mo_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 21 of file muses_string.h.

References EditorWindow::editor, header_22050_mono, and textbuf.

00022 {
00023 EditorWindow* e = (EditorWindow*) v;
00024 int pos = e->editor->insert_position();
00025 textbuf->insert(pos, header_22050_mono);
00026 }

void insert_header22050ste_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 29 of file muses_string.h.

References EditorWindow::editor, header_22050_stereo, and textbuf.

00030 {
00031 EditorWindow* e = (EditorWindow*) v;
00032 int pos = e->editor->insert_position();
00033 textbuf->insert(pos, header_22050_stereo);
00034 }

void insert_header44100mo_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 37 of file muses_string.h.

References EditorWindow::editor, header_44100_mono, and textbuf.

00038 {
00039 EditorWindow* e = (EditorWindow*) v;
00040 int pos = e->editor->insert_position();
00041 textbuf->insert(pos, header_44100_mono);
00042 }

void insert_header44100ste_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 45 of file muses_string.h.

References EditorWindow::editor, header_44100_stereo, and textbuf.

00046 {
00047 EditorWindow* e = (EditorWindow*) v;
00048 int pos = e->editor->insert_position();
00049 textbuf->insert(pos, header_44100_stereo);
00050 }

void insert_header48000mo_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 53 of file muses_string.h.

References EditorWindow::editor, header_48000_mono, and textbuf.

00054 {
00055 EditorWindow* e = (EditorWindow*) v;
00056 int pos = e->editor->insert_position();
00057 textbuf->insert(pos, header_48000_mono);
00058 }

void insert_header48000ste_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 61 of file muses_string.h.

References EditorWindow::editor, header_48000_stereo, and textbuf.

00062 {
00063 EditorWindow* e = (EditorWindow*) v;
00064 int pos = e->editor->insert_position();
00065 textbuf->insert(pos, header_48000_stereo);
00066 }

void insert_conversions_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 69 of file muses_string.h.

References conversions, EditorWindow::editor, and textbuf.

00070 {
00071 EditorWindow* e = (EditorWindow*) v;
00072 int pos = e->editor->insert_position();
00073 textbuf->insert(pos, conversions);
00074 }

void insert_gen01_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 79 of file muses_string.h.

References EditorWindow::editor, gen01, and textbuf.

00080 {
00081 EditorWindow* e = (EditorWindow*) v;
00082 int pos = e->editor->insert_position();
00083 textbuf->insert(pos, gen01);
00084 }

void insert_gen02_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 87 of file muses_string.h.

References EditorWindow::editor, gen02, and textbuf.

00088 {
00089 EditorWindow* e = (EditorWindow*) v;
00090 int pos = e->editor->insert_position();
00091 textbuf->insert(pos, gen02);
00092 }

void insert_gen03_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 95 of file muses_string.h.

References EditorWindow::editor, gen03, and textbuf.

00096 {
00097 EditorWindow* e = (EditorWindow*) v;
00098 int pos = e->editor->insert_position();
00099 textbuf->insert(pos, gen03);
00100 }

void insert_gen04_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 103 of file muses_string.h.

References EditorWindow::editor, gen04, and textbuf.

00104 {
00105 EditorWindow* e = (EditorWindow*) v;
00106 int pos = e->editor->insert_position();
00107 textbuf->insert(pos, gen04);
00108 }

void insert_gen06_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 111 of file muses_string.h.

References EditorWindow::editor, gen06, and textbuf.

00112 {
00113 EditorWindow* e = (EditorWindow*) v;
00114 int pos = e->editor->insert_position();
00115 textbuf->insert(pos, gen06);
00116 }

void insert_gen07_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 119 of file muses_string.h.

References EditorWindow::editor, gen07, and textbuf.

00120 {
00121 EditorWindow* e = (EditorWindow*) v;
00122 int pos = e->editor->insert_position();
00123 textbuf->insert(pos, gen07);
00124 }

void insert_gen08_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 127 of file muses_string.h.

References EditorWindow::editor, gen08, and textbuf.

00128 {
00129 EditorWindow* e = (EditorWindow*) v;
00130 int pos = e->editor->insert_position();
00131 textbuf->insert(pos, gen08);
00132 }

void insert_gen09_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 135 of file muses_string.h.

References EditorWindow::editor, gen09, and textbuf.

00136 {
00137 EditorWindow* e = (EditorWindow*) v;
00138 int pos = e->editor->insert_position();
00139 textbuf->insert(pos, gen09);
00140 }

void insert_gen10_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 143 of file muses_string.h.

References EditorWindow::editor, gen10, and textbuf.

00144 {
00145 EditorWindow* e = (EditorWindow*) v;
00146 int pos = e->editor->insert_position();
00147 textbuf->insert(pos, gen10);
00148 }

void insert_gen11_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 151 of file muses_string.h.

References EditorWindow::editor, gen11, and textbuf.

00152 {
00153 EditorWindow* e = (EditorWindow*) v;
00154 int pos = e->editor->insert_position();
00155 textbuf->insert(pos, gen11);
00156 }

void insert_gen12_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 159 of file muses_string.h.

References EditorWindow::editor, gen12, and textbuf.

00160 {
00161 EditorWindow* e = (EditorWindow*) v;
00162 int pos = e->editor->insert_position();
00163 textbuf->insert(pos, gen12);
00164 }

void insert_gen13_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 167 of file muses_string.h.

References EditorWindow::editor, gen13, and textbuf.

00168 {
00169 EditorWindow* e = (EditorWindow*) v;
00170 int pos = e->editor->insert_position();
00171 textbuf->insert(pos, gen13);
00172 }

void insert_gen15_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 175 of file muses_string.h.

References EditorWindow::editor, gen15, and textbuf.

00176 {
00177 EditorWindow* e = (EditorWindow*) v;
00178 int pos = e->editor->insert_position();
00179 textbuf->insert(pos, gen15);
00180 }

void insert_gen17_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 183 of file muses_string.h.

References EditorWindow::editor, gen17, and textbuf.

00184 {
00185 EditorWindow* e = (EditorWindow*) v;
00186 int pos = e->editor->insert_position();
00187 textbuf->insert(pos, gen17);
00188 }

void insert_gen19_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 191 of file muses_string.h.

References EditorWindow::editor, gen19, and textbuf.

00192 {
00193 EditorWindow* e = (EditorWindow*) v;
00194 int pos = e->editor->insert_position();
00195 textbuf->insert(pos, gen19);
00196 }

void insert_gen20_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 199 of file muses_string.h.

References EditorWindow::editor, gen20, and textbuf.

00200 {
00201 EditorWindow* e = (EditorWindow*) v;
00202 int pos = e->editor->insert_position();
00203 textbuf->insert(pos, gen20);
00204 }

void insert_gen23_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 207 of file muses_string.h.

References EditorWindow::editor, gen23, and textbuf.

00208 {
00209 EditorWindow* e = (EditorWindow*) v;
00210 int pos = e->editor->insert_position();
00211 textbuf->insert(pos, gen23);
00212 }

void insert_gen25_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 215 of file muses_string.h.

References EditorWindow::editor, gen25, and textbuf.

00216 {
00217 EditorWindow* e = (EditorWindow*) v;
00218 int pos = e->editor->insert_position();
00219 textbuf->insert(pos, gen25);
00220 }

void insert_gen27_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 223 of file muses_string.h.

References EditorWindow::editor, gen27, and textbuf.

00224 {
00225 EditorWindow* e = (EditorWindow*) v;
00226 int pos = e->editor->insert_position();
00227 textbuf->insert(pos, gen27);
00228 }

void insert_gen28_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 231 of file muses_string.h.

References EditorWindow::editor, gen28, and textbuf.

00232 {
00233 EditorWindow* e = (EditorWindow*) v;
00234 int pos = e->editor->insert_position();
00235 textbuf->insert(pos, gen28);
00236 }

void insert_cstags_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 239 of file muses_string.h.

References cs_tags, EditorWindow::editor, and textbuf.

00240 {
00241 EditorWindow* e = (EditorWindow*) v;
00242 int pos = e->editor->insert_position();
00243 textbuf->insert(pos, cs_tags);
00244 }

void save_cb (  ) 

Definition at line 404 of file editor.h.

References filename, save_file(), and saveas_cb().

Referenced by check_save().

00404                {
00405   if (filename[0] == '\0') {
00406     // No filename - get one!
00407     saveas_cb();
00408     return;
00409   }
00410   else save_file(filename);
00411 }

Here is the call graph for this function:

void saveas_cb (  ) 

Definition at line 413 of file editor.h.

References dataScore, filename, and save_file().

Referenced by save_cb().

00413                  {
00414   char *newfile;
00415   if ( dataScore == 0 )
00416   {
00417   newfile = fl_file_chooser("Save File As?", "*.sco", filename); 
00418   if (newfile != NULL) save_file(newfile);
00419   }
00420   else if ( dataScore == 1 )
00421   {
00422   newfile = fl_file_chooser("Save File As?", "*.txt", filename); 
00423   if (newfile != NULL) save_file(newfile);
00424   }
00425   else if ( dataScore == 2 )
00426   {
00427   newfile = fl_file_chooser("Save File As?", "*.orc", filename); 
00428   if (newfile != NULL) save_file(newfile);
00429   }
00430 }

Here is the call graph for this function:

void find2_cb ( Fl_Widget *  ,
void *   
)

Definition at line 200 of file editor.h.

References EditorWindow::editor, find_cb(), EditorWindow::search, and textbuf.

Referenced by find_cb().

00200                                      {
00201   EditorWindow* e = (EditorWindow*)v;
00202   if (e->search[0] == '\0') {
00203     // Search string is blank; get a new one...
00204     find_cb(w, v);
00205     return;
00206   }
00207 
00208   int pos = e->editor->insert_position();
00209   int found = textbuf->search_forward(pos, e->search, &pos);
00210   if (found) {
00211     // Found a match; select and update the position...
00212     textbuf->select(pos, pos+strlen(e->search));
00213     e->editor->insert_position(pos+strlen(e->search));
00214     e->editor->show_insert_position();
00215   }
00216   else fl_alert("No occurrences of \'%s\' found!", e->search);
00217 }

Here is the call graph for this function:

void replall_cb ( Fl_Widget *  ,
void *   
)

Definition at line 362 of file editor.h.

References EditorWindow::editor, EditorWindow::replace_dlg, EditorWindow::replace_find, EditorWindow::replace_with, and textbuf.

Referenced by EditorWindow::EditorWindow().

00362                                      {
00363   EditorWindow* e = (EditorWindow*)v;
00364   const char *find = e->replace_find->value();
00365   const char *replace = e->replace_with->value();
00366 
00367   find = e->replace_find->value();
00368   if (find[0] == '\0') {
00369     // Search string is blank; get a new one...
00370     e->replace_dlg->show();
00371     return;
00372   }
00373 
00374   e->replace_dlg->hide();
00375 
00376   e->editor->insert_position(0);
00377   int times = 0;
00378 
00379   // Loop through the whole string
00380   for (int found = 1; found;) {
00381     int pos = e->editor->insert_position();
00382     found = textbuf->search_forward(pos, find, &pos);
00383 
00384     if (found) {
00385       // Found a match; update the position and replace text...
00386       textbuf->select(pos, pos+strlen(find));
00387       textbuf->remove_selection();
00388       textbuf->insert(pos, replace);
00389       e->editor->insert_position(pos+strlen(replace));
00390       e->editor->show_insert_position();
00391       times++;
00392     }
00393   }
00394 
00395   if (times) fl_message("Replaced %d occurrences.", times);
00396   else fl_alert("No occurrences of \'%s\' found!", find);
00397 }

void replace2_cb ( Fl_Widget *  ,
void *   
)

Definition at line 333 of file editor.h.

References EditorWindow::editor, EditorWindow::replace_dlg, EditorWindow::replace_find, EditorWindow::replace_with, and textbuf.

Referenced by EditorWindow::EditorWindow().

00333                                       {
00334   EditorWindow* e = (EditorWindow*)v;
00335   const char *find = e->replace_find->value();
00336   const char *replace = e->replace_with->value();
00337 
00338   if (find[0] == '\0') {
00339     // Search string is blank; get a new one...
00340     e->replace_dlg->show();
00341     return;
00342   }
00343 
00344   e->replace_dlg->hide();
00345 
00346   int pos = e->editor->insert_position();
00347   int found = textbuf->search_forward(pos, find, &pos);
00348 
00349   if (found) {
00350     // Found a match; update the position and replace text...
00351     textbuf->select(pos, pos+strlen(find));
00352     textbuf->remove_selection();
00353     textbuf->insert(pos, replace);
00354     textbuf->select(pos, pos+strlen(replace));
00355     e->editor->insert_position(pos+strlen(replace));
00356     e->editor->show_insert_position();
00357   }
00358   else fl_alert("No occurrences of \'%s\' found!", find);
00359 }

void replcan_cb ( Fl_Widget *  ,
void *   
)

Definition at line 399 of file editor.h.

References EditorWindow::replace_dlg.

Referenced by EditorWindow::EditorWindow().

00399                                      {
00400   EditorWindow* e = (EditorWindow*)v;
00401   e->replace_dlg->hide();
00402 }

int check_save ( void   ) 

Definition at line 128 of file editor.h.

References changed, and save_cb().

Referenced by close_cb(), and new_cb().

00128                      {
00129 
00130   if (!changed) return 1;
00131 
00132   int r = fl_choice("The current file has not been saved.\n"
00133                     "Would you like to save it now?",
00134                     "Cancel", "Save", "Discard");
00135 
00136   if (r == 1) {
00137     save_cb(); // Save the file...
00138     return !changed;
00139     }
00140 
00141  return (r == 2) ? 1 : 0;
00142  if (r == 2) return !changed;
00143  
00144 }

Here is the call graph for this function:

void load_file ( char *  newfile,
int  ipos 
)

Definition at line 148 of file editor.h.

References changed, filename, loading, and textbuf.

Referenced by insert_cb(), and open().

00148                                         {
00149   loading = 1;
00150   int insert = (ipos != -1);
00151   changed = insert;
00152   if (!insert) strcpy(filename, "");
00153   int r;
00154   if (!insert) r = textbuf->loadfile(newfile);
00155   else r = textbuf->insertfile(newfile, ipos);
00156   if (r)
00157     fl_alert("Error reading from file \'%s\':\n%s.", newfile, strerror(errno));
00158   else
00159     if (!insert) strcpy(filename, newfile);
00160   loading = 0;
00161   textbuf->call_modify_callbacks();
00162 }

void save_file ( char *  newfile  ) 

Definition at line 165 of file editor.h.

References changed, filename, and textbuf.

Referenced by save_cb(), and saveas_cb().

00165                               {
00166   if (textbuf->savefile(newfile))
00167     fl_alert("Error writing to file \'%s\':\n%s.", newfile, strerror(errno));
00168   else
00169     strcpy(filename, newfile);
00170   changed = 0;
00171   textbuf->call_modify_callbacks();
00172 }

void copy_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 174 of file editor.h.

References EditorWindow::editor.

00174                                   {
00175   EditorWindow* e = (EditorWindow*)v;
00176   Fl_Text_Editor::kf_copy(0, e->editor);
00177 }

void cut_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 179 of file editor.h.

References EditorWindow::editor.

00179                                  {
00180   EditorWindow* e = (EditorWindow*)v;
00181   Fl_Text_Editor::kf_cut(0, e->editor);
00182 }

void delete_cb ( Fl_Widget *  ,
void *   
)

Definition at line 184 of file editor.h.

References textbuf.

00184                                   {
00185   textbuf->remove_selection();
00186 }

void find_cb ( Fl_Widget *  w,
void *  v 
)

Definition at line 188 of file editor.h.

References find2_cb(), and EditorWindow::search.

Referenced by find2_cb().

00188                                     {
00189   EditorWindow* e = (EditorWindow*)v;
00190   const char *val;
00191 
00192   val = fl_input("Search String:", e->search);
00193   if (val != NULL) {
00194     // User entered a string - go find it!
00195     strcpy(e->search, val);
00196     find2_cb(w, v);
00197   }
00198 }

Here is the call graph for this function:

void set_title ( Fl_Window *  w  ) 

Definition at line 221 of file editor.h.

References changed, filename, and title.

Referenced by changed_cb().

00221                              {
00222 
00223   if (filename[0] == '\0') strcpy(title, "Untitled");
00224   else {
00225     char *slash;
00226     slash = strrchr(filename, '/');
00227 #ifdef WIN32
00228     if (slash == NULL) slash = strrchr(filename, '\\');
00229 #endif
00230     if (slash != NULL) strcpy(title, slash + 1);
00231     else strcpy(title, filename);
00232   }
00233 
00234   if (changed) strcat(title, " (modified)");
00235       
00236   w->label(title);
00237 }

void changed_cb ( int  ,
int  nInserted,
int  nDeleted,
int  ,
const char *  ,
void *  v 
)

Definition at line 240 of file editor.h.

References changed, loading, set_title(), and w.

Referenced by close_cb(), and new_view().

00240                                                                             {
00241   if ((nInserted || nDeleted) && !loading) changed = 1;
00242   EditorWindow *w = (EditorWindow *)v;
00243   set_title(w);
00244   if (loading) w->editor->show_insert_position();
00245 }

Here is the call graph for this function:

void new_cb ( Fl_Widget *  ,
void *   
)

Definition at line 247 of file editor.h.

References changed, check_save(), filename, and textbuf.

00247                                {
00248   if (!check_save()) return;
00249 
00250   filename[0] = '\0';
00251   textbuf->select(0, textbuf->length());
00252   textbuf->remove_selection();
00253   changed = 0;
00254   textbuf->call_modify_callbacks();
00255 }

Here is the call graph for this function:

void open (  ) 

Definition at line 258 of file editor.h.

References dataScore, load_file(), orcPath, outData, and scoPath.

Referenced by open_cb(), open_data_cb(), open_orc_cb(), and open_score_cb().

00259 {
00260 //  if (!check_save()) return;
00261 
00262     if (dataScore == 0)
00263     {
00264       char *newfile = fl_file_chooser("Open File?", "*.sco", scoPath->value());
00265       if (newfile != NULL) load_file(newfile, -1);
00266     }
00267     if (dataScore == 1)
00268     {
00269       char *newfile = fl_file_chooser("Open File?", "*.txt", outData->value());
00270       //{ title = outData->value(); }
00271       if (newfile != NULL) load_file(newfile, -1);
00272     }
00273     if (dataScore == 2)
00274     {
00275       char *newfile = fl_file_chooser("Open File?", "*orc|*csd", orcPath->value());
00276       //{ title = orcPath->value(); }
00277       if (newfile != NULL) load_file(newfile, -1);
00278     }
00279 }

Here is the call graph for this function:

void open_cb ( Fl_Widget *  ,
void *   
)

Definition at line 281 of file editor.h.

References open().

00282 {
00283     open();
00284 }

Here is the call graph for this function:

void insert_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 286 of file editor.h.

References dataScore, filename, load_file(), and w.

00286                                     {
00287 
00288   if (dataScore == 0) {
00289   char *newfile = fl_file_chooser("Insert File?", "*.sco", filename);
00290   EditorWindow *w = (EditorWindow *)v;
00291   if (newfile != NULL) load_file(newfile, w->editor->insert_position());
00292   }
00293   
00294   else if (dataScore == 1) {
00295   char *newfile = fl_file_chooser("Insert File?", "*.txt", filename);
00296   EditorWindow *w = (EditorWindow *)v;
00297   if (newfile != NULL) load_file(newfile, w->editor->insert_position());
00298   }
00299   else if (dataScore == 2) {
00300   char *newfile = fl_file_chooser("Insert File?", "*.orc", filename);
00301   EditorWindow *w = (EditorWindow *)v;
00302   if (newfile != NULL) load_file(newfile, w->editor->insert_position());
00303   }
00304 }

Here is the call graph for this function:

void paste_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 306 of file editor.h.

References EditorWindow::editor.

00306                                    {
00307   EditorWindow* e = (EditorWindow*)v;
00308   Fl_Text_Editor::kf_paste(0, e->editor);
00309 }

void close_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 313 of file editor.h.

References changed, changed_cb(), check_save(), num_windows, textbuf, and w.

Referenced by new_view().

00313                                    {
00314 
00315   Fl_Window* w = (Fl_Window*)v;
00316   if (changed && !check_save())
00317 //  if (num_windows == 1 && !check_save())
00318  {
00319   return;
00320   }
00321   textbuf->remove_modify_callback(changed_cb, w);
00322   delete w;
00323   num_windows--;
00324 //  if (!num_windows) exit(0);
00325 }

Here is the call graph for this function:

void replace_cb ( Fl_Widget *  ,
void *  v 
)

Definition at line 328 of file editor.h.

References EditorWindow::replace_dlg.

00328                                      {
00329   EditorWindow* e = (EditorWindow*)v;
00330   e->replace_dlg->show();
00331 }

Fl_Window * new_view (  ) 

Definition at line 503 of file editor.h.

References changed_cb(), close_cb(), menuitems, num_windows, textbuf, title, and w.

Referenced by editor_win(), and view_cb().

00503                       {
00504     
00505     EditorWindow* w = new EditorWindow(700, 400, title);
00506     w->begin();
00507     Fl_Menu_Bar* m = new Fl_Menu_Bar(0, 0, 700, 30);
00508     
00509     m->copy(menuitems, w);
00510     
00511     w->editor = new Fl_Text_Editor(0, 30, 700, 370);
00512     w->editor->buffer(textbuf);
00513     w->editor->textfont(FL_COURIER);
00514     w->resizable(w->editor);
00515     //w->set_modal();//LNL
00516     w->end();
00517     w->callback((Fl_Callback *)close_cb, w);
00518 
00519     textbuf->add_modify_callback(changed_cb, w);
00520     textbuf->call_modify_callbacks();
00521     num_windows++;
00522     return w;
00523 }

Here is the call graph for this function:

void view_cb ( Fl_Widget *  ,
void *   
)

Definition at line 435 of file editor.h.

References new_view(), and w.

00435                                 {
00436   Fl_Window* w = new_view();
00437   w->show();
00438 }

Here is the call graph for this function:

void editor_win (  ) 

Definition at line 525 of file editor.h.

References new_view(), and textbuf.

Referenced by open_data_cb(), open_orc_cb(), and open_score_cb().

00526 {
00527   textbuf = new Fl_Text_Buffer;
00528   Fl_Window* w_editor = new_view();
00529   w_editor = new_view();
00530   w_editor->show();
00531 }

Here is the call graph for this function:


Variable Documentation

int changed = 0

Definition at line 73 of file editor.h.

Referenced by changed_cb(), check_save(), close_cb(), load_file(), new_cb(), save_file(), and set_title().

char filename[256] = ""

Definition at line 74 of file editor.h.

Referenced by insert_cb(), load_file(), new_cb(), save_cb(), save_file(), saveas_cb(), and set_title().

char title[256]

Definition at line 75 of file editor.h.

Referenced by new_view(), and set_title().

Fl_Text_Buffer* textbuf = 0

Definition at line 76 of file editor.h.

Referenced by close_cb(), delete_cb(), editor_win(), find2_cb(), insert_conversions_cb(), insert_cstags_cb(), insert_gen01_cb(), insert_gen02_cb(), insert_gen03_cb(), insert_gen04_cb(), insert_gen06_cb(), insert_gen07_cb(), insert_gen08_cb(), insert_gen09_cb(), insert_gen10_cb(), insert_gen11_cb(), insert_gen12_cb(), insert_gen13_cb(), insert_gen15_cb(), insert_gen17_cb(), insert_gen19_cb(), insert_gen20_cb(), insert_gen23_cb(), insert_gen25_cb(), insert_gen27_cb(), insert_gen28_cb(), insert_header22050mo_cb(), insert_header22050ste_cb(), insert_header44100mo_cb(), insert_header44100ste_cb(), insert_header48000mo_cb(), insert_header48000ste_cb(), load_file(), new_cb(), new_view(), replace2_cb(), replall_cb(), and save_file().

int loading = 0

Definition at line 147 of file editor.h.

Referenced by changed_cb(), and load_file().

int num_windows = 0

Definition at line 311 of file editor.h.

Referenced by close_cb(), and new_view().

Fl_Menu_Item menuitems[]

Definition at line 440 of file editor.h.

Referenced by new_view().


Generated on Sun Jul 1 20:30:06 2012 for Csmusgen by  doxygen 1.4.7