Clean text rendering in editor.
This commit is contained in:
parent
290b64e230
commit
f16dd7c0d9
45 changed files with 59 additions and 60 deletions
|
@ -1,17 +1,14 @@
|
|||
# Sample GUI
|
||||
|
||||
add_subdirectory(sample-gui)
|
||||
add_subdirectory(notes_tk)
|
||||
add_subdirectory(website-generator)
|
||||
|
||||
# Experimental Below
|
||||
if(WIN32)
|
||||
add_subdirectory(directx-practice)
|
||||
endif()
|
||||
|
||||
# Sample Console
|
||||
add_executable(sample_console console-main.cpp)
|
||||
target_link_libraries(sample_console PUBLIC console core network
|
||||
database geometry audio web)
|
||||
add_executable(notes_tk_console main.cpp)
|
||||
target_link_libraries(notes_tk_console PUBLIC console core network database geometry audio web)
|
||||
set_property(TARGET notes_tk_console PROPERTY FOLDER apps)
|
||||
|
||||
set_property(TARGET sample_console PROPERTY FOLDER apps)
|
||||
|
||||
add_subdirectory(website-generator)
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
set(APP_NAME sample_gui)
|
||||
set(APP_NAME notes_tk)
|
||||
|
||||
message(STATUS "Checking dependencies for app: " ${APP_NAME})
|
||||
|
||||
list(APPEND client_HEADERS
|
||||
MediaTool.h
|
||||
NotesTk.h
|
||||
text_editor/TextEditorView.h
|
||||
text_editor/TextEditorModel.h
|
||||
text_editor/TextEditorController.h
|
||||
|
@ -33,15 +33,15 @@ list(APPEND client_LIB_INCLUDES
|
|||
canvas/CanvasView.cpp
|
||||
canvas/CanvasController.cpp
|
||||
web_client/WebClientView.cpp
|
||||
MediaTool.cpp)
|
||||
NotesTk.cpp)
|
||||
|
||||
set(DEPENDENCIES_FOUND True)
|
||||
if(WIN32)
|
||||
add_executable(${APP_NAME} WIN32 gui-main-win.cpp ${client_LIB_INCLUDES})
|
||||
add_executable(${APP_NAME} WIN32 main-win.cpp ${client_LIB_INCLUDES})
|
||||
else()
|
||||
find_package(X11 QUIET)
|
||||
if(X11_FOUND)
|
||||
add_executable(${APP_NAME} gui-main.cpp ${client_LIB_INCLUDES} ${client_HEADERS})
|
||||
add_executable(${APP_NAME} main.cpp ${client_LIB_INCLUDES} ${client_HEADERS})
|
||||
else()
|
||||
message(STATUS "X11 not found - skipping")
|
||||
set(DEPENDENCIES_FOUND FALSE)
|
|
@ -1,4 +1,4 @@
|
|||
#include "MediaTool.h"
|
||||
#include "NotesTk.h"
|
||||
|
||||
#include "TextEditorView.h"
|
||||
#include "AudioEditorView.h"
|
||||
|
@ -16,17 +16,17 @@
|
|||
#include "DesktopManager.h"
|
||||
#include "MainApplication.h"
|
||||
|
||||
MediaTool::MediaTool(std::unique_ptr<CommandLineArgs> args)
|
||||
NotesTk::NotesTk(std::unique_ptr<CommandLineArgs> args)
|
||||
: GuiApplication(std::move(args))
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void MediaTool::initializeViews()
|
||||
void NotesTk::initializeViews()
|
||||
{
|
||||
auto mainWindow = mDesktopManager->getWindowManager()->getMainWindow();
|
||||
mainWindow->setSize(800, 600);
|
||||
mainWindow->setTitle("Media Tool");
|
||||
mainWindow->setTitle("NotesTK");
|
||||
|
||||
auto tabbedPanel = TabbedPanelWidget::Create();
|
||||
|
||||
|
@ -41,7 +41,7 @@ void MediaTool::initializeViews()
|
|||
|
||||
auto audioEditor = AudioEditorView::Create();
|
||||
audioEditor->setName("audioEditor");
|
||||
tabbedPanel->addPanel(std::move(audioEditor), "audio Editor");
|
||||
tabbedPanel->addPanel(std::move(audioEditor), "Audio Editor");
|
||||
|
||||
auto imageEditor = ImageEditorView::Create();
|
||||
imageEditor->setName("imageEditor");
|
||||
|
@ -60,12 +60,12 @@ void MediaTool::initializeViews()
|
|||
tabbedPanel->addPanel(std::move(mesh), "Mesh Viewer");
|
||||
|
||||
auto topBar = TopBar::Create();
|
||||
auto statusBar = StatusBar::Create();
|
||||
//auto statusBar = StatusBar::Create();
|
||||
|
||||
auto horizontal_spacer = HorizontalSpacer::Create();
|
||||
horizontal_spacer->addWidgetWithScale(std::move(topBar), 1);
|
||||
horizontal_spacer->addWidgetWithScale(std::move(tabbedPanel), 20);
|
||||
horizontal_spacer->addWidgetWithScale(std::move(statusBar), 1);
|
||||
//horizontal_spacer->addWidgetWithScale(std::move(statusBar), 1);
|
||||
|
||||
mainWindow->setWidget(std::move(horizontal_spacer));
|
||||
}
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
#include "GuiApplication.h"
|
||||
|
||||
class MediaTool : public GuiApplication
|
||||
class NotesTk : public GuiApplication
|
||||
{
|
||||
public:
|
||||
MediaTool(std::unique_ptr<CommandLineArgs> args);
|
||||
NotesTk(std::unique_ptr<CommandLineArgs> args);
|
||||
|
||||
protected:
|
||||
void initializeViews() override;
|
|
@ -16,7 +16,6 @@
|
|||
CanvasView::CanvasView()
|
||||
: mController(CanvasController::Create())
|
||||
{
|
||||
std::cout << "Creatin canvas" << std::endl;
|
||||
initialize();
|
||||
}
|
||||
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
ImageViewWidget::ImageViewWidget()
|
||||
{
|
||||
std::cout << "Creating image view widget" << std::endl;
|
||||
mName = "ImageViewWidget";
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
#include <memory>
|
||||
|
||||
#include "MediaTool.h"
|
||||
#include "NotesTk.h"
|
||||
#include "MainApplication.h"
|
||||
#include "CommandLineArgs.h"
|
||||
|
||||
|
@ -11,7 +11,7 @@ int main(int argc, char *argv[])
|
|||
args->recordLaunchPath();
|
||||
|
||||
// Start the gui app
|
||||
auto app = MediaTool(std::move(args));
|
||||
auto app = NotesTk(std::move(args));
|
||||
//app.setUiInterfaceBackend(UiInterfaceFactory::Backend::X11_RASTER);
|
||||
app.run();
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue