-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proper Documentation for Beginners #404
Comments
Hi @DibyaXPP, Thank you for interest in our project! Our project definitely lacks good documentation. Unfortunately, I can't do this by myself because I personally will never experience learning curve of AUI, I have never had to learn it for obvious reasons. Thus I need a third party clean vision of AUI and I'm demanding here on growing AUI community.
Glad to hear!
When someone asks a question about AUI I immediately update documentation so it answers the question I was asked. So, can you share your questions about macros and other questions the documentation lacking answers on? I think it's a good idea to answer your questions in your documentation as well. I read the attached pdf and I like it! Especially the part describing purpose of a event loop. AUI's documentation written primarily using markdown, do you mind using markdown as well so we can easily upstream your documentation? Can you share feedback on https://aui-framework.github.io/master/md_docs_Getting_started_with_AUI.html? |
Hi @Alex2772, Unfortunately i don't have much knowledge of Markdown, all MD file i wrote until now are very simple one, so don't know how to add level formatting i want. Can you share feedback on https://aui-framework.github.io/master/md_docs_Getting_started_with_AUI.html? => Looks good. |
Feel free to open issues and ask questions! |
Chapter 1: Covering GUI Builder and Layout Manager is Complete now, |
Good! I think the provided code snippets lack proper indentation. You might want to use clang-format to auto-format them. |
I will run code through Clang format for next chapter. Thanks |
@Alex2772 How to get textarea to work? How to capture it's content on a string? |
https://aui-framework.github.io/master/classATextArea.html#a270fa624c5bb3301b00c6d5f1e8fc3ca |
I have seen that before, next time give me a sample code snippet , like this one but that work. With above code i am getting following error |
Hm, it's strange because Which compiler do you use? As for example, I took AScrollArea::Builder()
.withContents(_new<ATextArea>(
"AUI Framework - Declarative UI toolkit for modern C++20\n"
"Copyright (C) 2020-2024 Alex2772 and Contributors\n"
"\n"
"SPDX-License-Identifier: MPL-2.0\n"
"\n"
"This Source Code Form is subject to the terms of the Mozilla "
"Public License, v. 2.0. If a copy of the MPL was not distributed with this "
"file, You can obtain one at http://mozilla.org/MPL/2.0/.") let {
connect(it->textChanged, this, [this](const AString& changed) {
std::cout << "Text changed: " << changed << std::endl;
});
})
.build()
with_style { ass::Expanding() } << ".input-field" ,
|
Which compiler do you use? => Microsoft Visual Studio Community 2022 (64-bit) - Current One more will you in future allow using CLang CL in Visual Studio? [Have better C++ 23 Support] Update: with your boilar plate code i am getting same error |
Can you update to the latest version?
I will not make any restrictions on using it, however, there's should be proper support from aui.boot side. |
Can you update to the latest version? => I will |
@DibyaXPP hi, any updates? |
Still same error, I will make a new fresh project. don't know what happening, updated to latest Visual Studio 2022 |
Just curious, do you use aui.boot? Which version have you specified? |
I just uused official CMAKE Script # Standard routine
cmake_minimum_required(VERSION 3.16)
project(aui_app)
# Tip: in a production project don't use branch name, use a specific name tag (i.e. v1.1.1),
# but for a sandbox project branch name is perfectly enough
set(AUI_VERSION master)
# Use AUI.Boot
file(
DOWNLOAD
https://raw.githubusercontent.com/aui-framework/aui/${AUI_VERSION}/aui.boot.cmake
${CMAKE_CURRENT_BINARY_DIR}/aui.boot.cmake)
include(${CMAKE_CURRENT_BINARY_DIR}/aui.boot.cmake)
# import AUI
auib_import(aui https://github.com/aui-framework/aui
COMPONENTS core views
VERSION ${AUI_VERSION})
# Create the executable. This function automatically links all sources from the src/ folder,
# creates CMake target and places the resulting executable to bin/ folder.
aui_executable(${PROJECT_NAME})
# Link required libs
aui_link(${PROJECT_NAME} PRIVATE aui::core aui::views) |
Can you specify latest release, i.e. set(AUI_VERSION v6.2.1)
|
@DibyaXPP hi 👋 How it's going? Have you tried the suggested version? |
This time it compiled but failed to run .withContents(_new<ATextArea>(
"AUI Framework - Declarative UI toolkit for modern C++20\n"
"Copyright (C) 2020-2024 Alex2772 and Contributors\n"
"\n"
"SPDX-License-Identifier: MPL-2.0\n"
"\n"
"This Source Code Form is subject to the terms of the Mozilla "
"Public License, v. 2.0. If a copy of the MPL was not distributed with this "
"file, You can obtain one at http://mozilla.org/MPL/2.0/.") let {
connect(it->textChanged, this, [this](const AString& changed) {
std::cout << "Text changed: " << changed << std::endl;
});
})
.build()
with_style { ass::Expanding() } << ".input-field" With your code, now it compiles but got error Similar error with my old simple text area code Sorry for Being late, i was busy with my University |
Please cleanup dlls in build directory. |
what you mean by cleanup? Delete them? |
Exactly. Looks like aui.boot didn’t update them. |
It is working now Thanks, |
@DibyaXPP hi 👋, Do you have any updates? Please let me know if you encounter issues. |
Sorry i am bit busy with my academic affairs, once done i will be back documenting, please wait till 20th of feb |
I am writing detailed documentation for the end users of AUI, with the ultimate goal of achieving maximum developer friendliness.
Since the official documentation is somewhat scarce, I have started writing articles based on examples to document how to use AUI for specific tasks. My goal is to create an easy-to-read and understand guide that covers the entire AUI feature set within the next six months. This effort not only ensures that AUI becomes a practical choice for my future applications instead of Qt but also serves as a go-to guide for beginners. Thanks to @na2axl for helping me figure out certain macros.
I am attaching the first chapter of my documentation, which is still a work in progress. It will contain a [LibreOffice ODT file] for future edits and updates, allowing the community to contribute and improve it collaboratively.
Our First AUI Application.odt
Our First AUI Application.pdf
So far i have figure out
=> Clickable Buttons
=> Check Boxes
=> Radio Buttons
=> Combo Boxes [Done]
=> Text Field
=> List View
Chapters on the above GUI elements will be added within the next week. I still have many other things to figure out, and hopefully, I will get some help along the way. Regardless, the plan is to prevent others—including myself, given my less-than-perfect memory—from going through the same trials and errors I experienced.
The text was updated successfully, but these errors were encountered: