--- a/FragmentDBWindow.h
+++ b/FragmentDBWindow.h
@@ -1,5 +1,7 @@
 #pragma once
 #include "OpenGLControl.h"
+#include "afxwin.h"
+
 
 // FragmentDBWindow – dialog
 
@@ -21,9 +23,28 @@
 
 	virtual void DoDataExchange(CDataExchange* pDX);    // Podpora DDX/DDV
     virtual BOOL OnInitDialog();
+    
+    vector<FragmentDBStruct> m_fragment_db;
+    CString m_search_key;
 
 	DECLARE_MESSAGE_MAP()
 public:
     afx_msg void OnBnClickedOk();
     afx_msg void OnBnClickedCancel();
+    //afx_msg void OnMouseMove(UINT nFlags, CPoint point);
+    //afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
+	//afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
+
+    void readFragmentDB();
+    void refreshDBList(CString key);
+    void loadFromDB(CString name);
+
+
+    
+    afx_msg void OnLbnSelchangeList1();
+    CListBox m_listBox;
+    afx_msg void OnEnChangeEditSearchDb();
+    CEdit m_selected_name;
+    CEdit m_shelx_restr;
+    CEdit m_atom_list;
 };