Mercurial > mercurial > hgweb_qlipbrd.cgi
diff include/mainframe.h @ 1:e4aa0e7a07ad
Second release.
author | pyon@macmini |
---|---|
date | Sun, 13 Sep 2015 14:56:42 +0900 |
parents | cb3403ca39b1 |
children |
line wrap: on
line diff
--- a/include/mainframe.h Sun Aug 30 21:53:19 2015 +0900 +++ b/include/mainframe.h Sun Sep 13 14:56:42 2015 +0900 @@ -1,10 +1,11 @@ // Filename: mainframe.h -// Last Change: 2015-08-30 Sun 20:35:50. +// Last Change: 2015-09-13 Sun 13:44:36. // #ifndef __MAINFRAME_H__ #define __MAINFRAME_H__ #include <wx/listctrl.h> +#include <wx/listbox.h> #include <wx/gdicmn.h> #include <wx/font.h> #include <wx/colour.h> @@ -19,26 +20,34 @@ #include <wx/frame.h> #include <wx/timer.h> +#include "qdata.h" +WX_DECLARE_HASH_MAP( int, QlipData*, wxIntegerHash, wxIntegerEqual, QlipDataHash ); + class MainFrame : public wxFrame { DECLARE_EVENT_TABLE() private: - wxTimer m_timer; - int m_current; - long m_counter; - wxString m_last; + wxTimer m_timer; + int m_current; + int m_counter; + int m_period; + bool m_bottom; + QlipDataHash QH; protected: enum { - ID_MNABOUT = wxID_HIGHEST + 1, + ID_MNAPPDIR = wxID_HIGHEST + 1, + ID_MNINTERVAL, + ID_MNABOUT, ID_MNEXIT, ID_MNLDPGIN, ID_MNSVPGIN, ID_TIMER, ID_TGL, - ID_LIST, + ID_LISTVIEW, + ID_LISTBOX, ID_BTNUP, ID_BTNDOWN, @@ -52,9 +61,13 @@ wxMenu* m_menuPlugin; wxTextCtrl* m_textCtrlShow; + wxTextCtrl* m_textCtrlRemain; wxToggleButton* m_toggleBtn; - wxListView* m_listView; + wxStaticText* m_staticTextCycle; + wxListView* m_lisViewCycle; + wxStaticText* m_staticTextHist; + wxListBox* m_listBoxHist; wxButton* m_buttonUp; wxButton* m_buttonDown; @@ -67,13 +80,16 @@ ~MainFrame(); // Event Handlers + void OnMNAppdir( wxCommandEvent& ); + void OnMNInterval( wxCommandEvent& ); void OnMNAbout( wxCommandEvent& ); void OnMNExit( wxCommandEvent& ); void OnMNLoad( wxCommandEvent& ); void OnMNSaveAs( wxCommandEvent& ); - void OnDClickItem( wxListEvent& ); - void OnSelectItem( wxListEvent& ); + void OnLViewDClickItem( wxListEvent& ); + void OnLViewSelectItem( wxListEvent& ); + void OnLBoxDClickItem( wxCommandEvent& ); void OnToggle( wxCommandEvent& ); void OnTimer( wxTimerEvent& ); @@ -88,7 +104,12 @@ void EnableButtons( bool ); void SwapListItem( long, long ); void ReNumberList(); - void DoProcess(); + int CreateID(); + void AddStackTime(); + void UpdateView(); + void UpdateHistory( wxString ); + int GetEmptyStack(); + int ToInt( wxString ); }; #endif //__MAINFRAME_H__