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:
00042 enum data_type {
00043 SMILES,
00044 INCHI
00045 };
00046 StringDlg (Document *pDoc, std::string& data, enum data_type type);
00047 virtual ~StringDlg ();
00048
00049 virtual bool Apply ();
00050 void Copy ();
00051 void OnGetData (GtkClipboard *clipboard, GtkSelectionData *selection_data, guint info);
00052
00053 private:
00054 enum data_type Type;
00055 std::string Data;
00056 GtkTextView *View;
00057 GtkTextBuffer *Buffer;
00058 };
00059
00060 }
00061
00062 #endif //GCHEMPAINT_STRING_DLG_H