Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
In the function: void MainFrame::CreateIDE()

There are some code snippets like:

Code
    // editor manager
    m_LayoutManager.AddPane(m_pEdMan->GetNotebook(), wxAuiPaneInfo().Name("MainPane").
                            CentrePane());

So, this is the CentrePane, I think we can't make it float.

Edit:
It is a bit complex to construct the cbAuiNotebook, see the code below:

Code
EditorManager::EditorManager()
        : m_pNotebook(nullptr),
        m_pNotebookStackHead(new cbNotebookStack),
        m_pNotebookStackTail(m_pNotebookStackHead),
        m_nNotebookStackSize(0),
        m_isCheckingForExternallyModifiedFiles(false)
{
    m_pData = new EditorManagerInternalData(this);

    m_pNotebook = new cbAuiNotebook(Manager::Get()->GetAppWindow(), ID_NBEditorManager, wxDefaultPosition, wxDefaultSize,
                                    wxAUI_NB_DEFAULT_STYLE | wxAUI_NB_WINDOWLIST_BUTTON | wxNO_FULL_REPAINT_ON_RESIZE | wxCLIP_CHILDREN);
2
The main editor window seems to be anchored, but other windows (Management, Open Files List, Watches or Logs & others) can be moved to other monitor. I have not tried to save their positions, though.

Yes, the editor window(I guess it is wxAuiNotebook) is docked, and can't be floated. But even it can be floated, can we make two floated? We have add a new floating wxAuiNotebook window?

I'm going to check whether wx samples.

EDIT

I just checked the wxAui sample project.
In its menu: View->Notebook, a new floating notebook is created, I can maximize the new notebook in the second monitor, and I can drag the editor(panel) between the old and new wxNotebook.

EDIT2

I added the wxAui sample application screen shot.

The code in aui sample looks like simple:

Code
void MyFrame::OnCreateNotebook(wxCommandEvent& WXUNUSED(event))
{
    m_mgr.AddPane(CreateNotebook(), wxAuiPaneInfo().
                  Caption("Notebook").
                  Float().FloatingPosition(GetStartPosition()).
                  //FloatingSize(FromDIP(wxSize(300,200))).
                  CloseButton(true).MaximizeButton(true));
    m_mgr.Update();
}
3
The main editor window seems to be anchored, but other windows (Management, Open Files List, Watches or Logs & others) can be moved to other monitor. I have not tried to save their positions, though.
4
Using Code::Blocks / Does Code::Blocks support multiple monitor editing?
« Last post by ollydbg on Today at 12:17:39 pm »
I see some old thread here: multi-monitor editing

But is it possible currently.

Maybe, we can drag the wxAuiNotebook to another monitor?
Or a floating editor window in another monitor?
5
Nightly builds / Re: The 01 October 2022 build (12932) is out.
« Last post by Miguel Gimenez on Today at 09:55:18 am »
The OpenFilesList plugin had a typo (missing extension in "fileread-only.png") that prevented image loading. Precisely this morning I was implementing SVG icons in the plugin and detected the problem, it is now fixed in trunk (see r12956).
6
Nightly builds / Re: The 01 October 2022 build (12932) is out.
« Last post by eckard_klotz on Today at 08:14:42 am »
Hello Developers.

Great to see the ongoing work on Code::Blocks.

However I have some doubts with the  icons used for write-protected files in the "open file list".
  • In my nightly download they will be shown as red squares with black frames.
  • But in the project tree they are still shown as normal file-symbols with a lock-symbol inside.

This is not really an issue for me.
  • However, I like to ask you if this is a property of the nightly or may be an issue between my ears.
    • I'm taking about the nightly:  01 October 2022 build (12932)
    • I have downloaded all three provided 7z-Files and copied their content into the same bin-folder.
    • I use it on a WIN 10 laptop as well as on a Win 10 desktop computer.
  • To be honest I like the old icons based on normal file-symbols but with a lock-symbol inside more.
    • This is a very personal view and as already mentioned if you have a different view, I will accept your decision.
  • But I have more the impression that "open file list" has just problems to access the icon-definition and is using a default-icon instead.


Best regards,
                    Eckard Klotz.
7
Plugins development / Re: Code completion using LSP and clangd
« Last post by ollydbg on Today at 05:48:35 am »
I created a patch which can show the "doxygen comments".
...

I think it again, and I think using the original text from the hover message is good enough. I think we don't need to "cut the chaff".

wxString hoverString = contentsValue;

Just show this, and I tested this method, and it works fine.
8
Plugins development / Re: Code completion using LSP and clangd
« Last post by ollydbg on Today at 03:36:18 am »
I did some extra test of how to show the comments.

Here is the log file from CBclangd_client-xxxxx.log:

Code
...

15:07:41.524 >>> readJson() len:240:
{"id":"textDocument/hover","jsonrpc":"2.0","result":{"contents":{"kind":"plaintext","value":"variable m_TcpFile\n\nType: int\nTCP鎺ユ敹鐨勬暟鎹甛n\nint m_TcpFile"},"range":{"end":{"character":13,"line":1},"start":{"character":4,"line":1}}}}


The log file shows the wrong Chinese words.

Code
 int\nTCP鎺ユ敹鐨勬暟鎹甛n\n

The following patch solves this issue:

Code
 clangd_client/src/LSPclient/client.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clangd_client/src/LSPclient/client.cpp b/clangd_client/src/LSPclient/client.cpp
index c4a7729..76d19ca 100644
--- a/clangd_client/src/LSPclient/client.cpp
+++ b/clangd_client/src/LSPclient/client.cpp
@@ -1020,7 +1020,7 @@ bool ProcessLanguageClient::readJson(json &json)
     m_MutexInputBufGuard.Unlock();
 
     if (stdStrInputbuf.size())
-        writeClientLog(wxString::Format(">>> readJson() len:%d:\n%s", length, stdStrInputbuf.c_str()) );
+        writeClientLog(wxString::Format(">>> readJson() len:%d:\n%s", length, GetwxUTF8Str(stdStrInputbuf.c_str()).wx_str()) );
 
     // remove any invalid utf8 chars
     bool validData = DoValidateUTF8data(stdStrInputbuf);
9
Help / Re: Console does not display on Mac when running C code
« Last post by xtie8319 on Today at 12:15:44 am »
The issue is fixed. I am using MAC OS Big Sur.
I followed the tutorial from this guy on YT.
https://www.youtube.com/watch?v=knkAQY9JT-0
10
Plugins development / Re: Code completion using LSP and clangd
« Last post by MaxGaspa on Yesterday at 02:46:09 pm »
@pecan

I'm observing another issue using the clangd plugin.

Using a std::vector the list of functions shown are listed in alphabetical order but it seems there is a maximum number of list members. Look at the attached images, all the functions after max_size() are not listed. For example push_back() is not listed but if I write "push" after the dot the plugin is correctly suggesting push_back (look at the attached images).

So it seems that the plugin knows the function push_back() exists but is not showing in the full list.

Is there a way to increase the number of items in the list? Is that limitation intentional?

Pages: [1] 2 3 4 5 6 ... 10