stringdlg.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef GCHEMPAINT_STRING_DLG_H
00026 #define GCHEMPAINT_STRING_DLG_H
00027
00028 #include <gcu/dialog.h>
00029 #include <string>
00030
00032 namespace gcp {
00033
00034 class Document;
00035
00039 class StringDlg: public gcu::Dialog
00040 {
00041 public:
00045 enum data_type {
00049 SMILES,
00053 INCHI
00054 };
00063 StringDlg (Document *pDoc, std::string& data, enum data_type type);
00067 virtual ~StringDlg ();
00068
00072 bool Apply ();
00076 void Copy ();
00085 void OnGetData (GtkClipboard *clipboard, GtkSelectionData *selection_data, guint info);
00086
00087 private:
00088 enum data_type Type;
00089 std::string Data;
00090 GtkTextView *View;
00091 GtkTextBuffer *Buffer;
00092 };
00093
00094 }
00095
00096 #endif //GCHEMPAINT_STRING_DLG_H