Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding files for new tab list UI.

  • Loading branch information...
commit e3dd8204ff743dcccb0705f3dc285019a41f21db 1 parent 18be37c
@adamv adamv authored
View
47 src/CompletionPopup.cpp
@@ -37,30 +37,6 @@ class CompletionList : public wxListBox {
};
-
-CompletionPopup::CompletionPopup(EditorCtrl& parent, const wxPoint& pos, const wxPoint& topPos, const wxString& target, const wxArrayString& completions):
- wxDialog(&parent, wxID_ANY, wxEmptyString, pos, wxDefaultSize, wxNO_BORDER)
-{
- CompletionList* clist = new CompletionList(*this, parent, target, completions);
-
- // Create Layout
- wxBoxSizer *mainSizer = new wxBoxSizer(wxVERTICAL);
- mainSizer->Add(clist, 1, wxEXPAND);
-
- SetSizerAndFit(mainSizer);
-
- // Make sure that there is room for dialog
- const int screenHeight = wxSystemSettings::GetMetric(wxSYS_SCREEN_Y);
- const wxSize size = GetSize();
- if (pos.y + size.y > screenHeight) {
- Move(pos.x, topPos.y - size.y);
- }
-
- Show();
- clist->SetFocus();
-}
-
-
BEGIN_EVENT_TABLE(CompletionList, wxListBox)
EVT_KILL_FOCUS(CompletionList::OnKillFocus)
EVT_CHAR(CompletionList::OnChar)
@@ -190,3 +166,26 @@ void CompletionList::SetCompletions(const wxArrayString& completions) {
SetSelection(0);
}
}
+
+
+CompletionPopup::CompletionPopup(EditorCtrl& parent, const wxPoint& pos, const wxPoint& topPos, const wxString& target, const wxArrayString& completions):
+ wxDialog(&parent, wxID_ANY, wxEmptyString, pos, wxDefaultSize, wxNO_BORDER)
+{
+ CompletionList* clist = new CompletionList(*this, parent, target, completions);
+
+ // Create Layout
+ wxBoxSizer *mainSizer = new wxBoxSizer(wxVERTICAL);
+ mainSizer->Add(clist, 1, wxEXPAND);
+
+ SetSizerAndFit(mainSizer);
+
+ // Make sure that there is room for dialog
+ const int screenHeight = wxSystemSettings::GetMetric(wxSYS_SCREEN_Y);
+ const wxSize size = GetSize();
+ if (pos.y + size.y > screenHeight) {
+ Move(pos.x, topPos.y - size.y);
+ }
+
+ Show();
+ clist->SetFocus();
+}
View
2  src/CompletionPopup.h
@@ -21,7 +21,7 @@
class EditorCtrl;
-class CompletionPopup : public wxDialog {
+class CompletionPopup: public wxDialog {
public:
CompletionPopup(EditorCtrl& parent, const wxPoint& pos, const wxPoint& topPos, const wxString& target, const wxArrayString& completions);
};
View
10 src/CurrentTabsPopup.cpp
@@ -0,0 +1,10 @@
+#include "CurrentTabsPopup.h"
+
+CurrentTabsPopup::CurrentTabsPopup(wxWindow* parent, const wxPoint& pos):
+ wxDialog(parent, wxID_ANY, wxEmptyString, pos, wxDefaultSize, wxNO_BORDER)
+{
+ wxBoxSizer *mainSizer = new wxBoxSizer(wxVERTICAL);
+ SetSizerAndFit(mainSizer);
+
+ Show();
+}
View
14 src/CurrentTabsPopup.h
@@ -0,0 +1,14 @@
+#ifndef __CURRENTTABSPOPUP_H__
+#define __CURRENTTABSPOPUP_H__
+
+#include "wx/wxprec.h"
+#ifndef WX_PRECOMP
+ #include <wx/wx.h>
+#endif
+
+class CurrentTabsPopup: public wxDialog {
+public:
+ CurrentTabsPopup(wxWindow* parent, const wxPoint& pos);
+};
+
+#endif
View
8 src/e.vcproj
@@ -2018,6 +2018,14 @@
>
</File>
<File
+ RelativePath=".\CurrentTabsPopup.cpp"
+ >
+ </File>
+ <File
+ RelativePath=".\CurrentTabsPopup.h"
+ >
+ </File>
+ <File
RelativePath=".\DetectTripleClicks.cpp"
>
</File>
Please sign in to comment.
Something went wrong with that request. Please try again.