Permalink
Browse files

Implement "Copy as text to clipboard" in Tracks list (for loggbook

purposes) and inte Route Properties.
  • Loading branch information...
JesperWe committed Jun 18, 2012
1 parent 0e88138 commit 8a4e8d885da3f88b68c86966c5b05ba5f8168620
Showing with 3,192 additions and 3,229 deletions.
  1. +4 −0 include/routemanagerdialog.h
  2. +18 −15 include/routeprop.h
  3. +1,642 −1,699 src/routemanagerdialog.cpp
  4. +1,528 −1,515 src/routeprop.cpp
@@ -33,6 +33,10 @@ enum {
SORT_ON_NAME
};
enum TrackContextMenu {
TRACK_MERGE = 1,
TRACK_COPY_TEXT
};
class wxButton;
class Route;
View
@@ -79,6 +79,7 @@ class HyperlinkList;
#define ID_ROUTEPROP_OK 7007
#define ID_ROUTEPROP_SPLIT 7107
#define ID_ROUTEPROP_EXTEND 7207
#define ID_ROUTEPROP_COPYTXT 7307
#define ID_PLANSPEEDCTL 7008
#define ID_TEXTCTRL4 7009
#define ID_TEXTCTRLDESC 7010
@@ -151,6 +152,7 @@ class RouteProp: public wxDialog
void OnRoutepropListClick( wxListEvent& event );
void OnRoutepropSplitClick( wxCommandEvent& event );
void OnRoutepropExtendClick( wxCommandEvent& event );
void OnRoutepropCopyTxtClick( wxCommandEvent& event );
bool IsThisRouteExtendable();
bool IsThisTrackExtendable();
void OnEvtColDragEnd(wxListEvent& event);
@@ -184,6 +186,7 @@ class RouteProp: public wxDialog
wxButton* m_CancelButton;
wxButton* m_OKButton;
wxButton* m_CopyTxtButton;
wxButton* m_ExtendButton;
wxButton* m_SplitButton;
@@ -242,10 +245,10 @@ class LatLonTextCtrl: public wxTextCtrl
///////////////////////////////////////////////////////////////////////////////
/// Class MarkInfoDef
///////////////////////////////////////////////////////////////////////////////
class MarkInfoDef : public wxDialog
class MarkInfoDef : public wxDialog
{
private:
protected:
wxNotebook* m_notebookProperties;
wxPanel* m_panelBasicProperties;
@@ -282,7 +285,7 @@ class MarkInfoDef : public wxDialog
wxStdDialogButtonSizer* m_sdbSizerButtons;
wxButton* m_sdbSizerButtonsOK;
wxButton* m_sdbSizerButtonsCancel;
// Virtual event handlers, overide them in your derived class
virtual void OnPositionCtlUpdated( wxCommandEvent& event ) { event.Skip(); }
virtual void OnDescChangedBasic( wxCommandEvent& event ) { event.Skip(); }
@@ -294,18 +297,18 @@ class MarkInfoDef : public wxDialog
virtual void OnDescChangedExt( wxCommandEvent& event ) { event.Skip(); }
virtual void OnMarkInfoCancelClick( wxCommandEvent& event ) { event.Skip(); }
virtual void OnMarkInfoOKClick( wxCommandEvent& event ) { event.Skip(); }
public:
MarkInfoDef( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Mark Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 450,550 ), long style = wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxRESIZE_BORDER );
MarkInfoDef( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Mark Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 450,550 ), long style = wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxRESIZE_BORDER );
~MarkInfoDef();
void m_hyperlink17OnContextMenu( wxMouseEvent &event )
{
m_hyperlink17->PopupMenu( m_menuLink, event.GetPosition() );
}
};
///////////////////////////////////////////////////////////////////////////////
@@ -314,28 +317,28 @@ class MarkInfoDef : public wxDialog
class LinkPropDlgDef : public wxDialog
{
private:
protected:
wxStaticText* m_staticTextLinkDesc;
wxStaticText* m_staticTextLinkUrl;
wxButton* m_buttonBrowseLocal;
wxStdDialogButtonSizer* m_sdbSizerButtons;
wxButton* m_sdbSizerButtonsOK;
wxButton* m_sdbSizerButtonsCancel;
// Virtual event handlers, overide them in your derived class
virtual void OnLocalFileClick( wxCommandEvent& event ) { event.Skip(); }
virtual void OnCancelClick( wxCommandEvent& event ) { event.Skip(); }
virtual void OnOkClick( wxCommandEvent& event ) { event.Skip(); }
public:
wxTextCtrl* m_textCtrlLinkDescription;
wxTextCtrl* m_textCtrlLinkUrl;
LinkPropDlgDef( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Link Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 468,247 ), long style = wxDEFAULT_DIALOG_STYLE );
~LinkPropDlgDef();
};
class MarkInfoImpl : public MarkInfoDef
Oops, something went wrong.

0 comments on commit 8a4e8d8

Please sign in to comment.