Re: GNOME::Editor



ok, here's my latest go at GNOME::Editor. Just merging miguel's and
sopwith's suggestions together really

Would we need any other functionality in here?

module GNOME {
  interface EditorFactory {
    exception NotFound {};
    Object open (in string path) raises (NotFound);
  };

  interface Editor : GNOME::object {
    enum {
      SCROLL_START,
      SCROLL_CURRENT,
      SCROLL_END
    } ScrollFrom;

    exception SaveError {};

    void Save () raises (SaveError);
    void SaveAs (in string path) raises (SaveError);
    void Close ();

    attribute CurrentLine;
    void Scroll (in unsigned long offset, in ScrollFrom whence);
  };
};

cya,
Martijn


-- 
Martijn van Beers
martijn@earthling.net



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]