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,
00057 INCHIKEY
00058 };
00067 StringDlg (Document *pDoc, std::string const &data, enum data_type type);
00071 virtual ~StringDlg ();
00072
00076 bool Apply ();
00080 void Copy ();
00089 void OnGetData (GtkClipboard *clipboard, GtkSelectionData *selection_data, guint info);
00090
00091 private:
00092 enum data_type Type;
00093 std::string Data;
00094 GtkTextView *View;
00095 GtkTextBuffer *Buffer;
00096 };
00097
00098 }
00099
00100 #endif //GCHEMPAINT_STRING_DLG_H