CCNoterWindow provides a simple notepad window with basic text formatting. More...
#include <CCNoterWindow.h>
Public Member Functions | |
CCNoterWindow (QWidget *parent=nullptr) | |
Constructor for CCNoterWindow. | |
void | load_file () |
Load a text file into the editor. | |
void | chooseFont () |
Open a font selection dialog. | |
void | save_file () |
Save the current text to a file. | |
void | set_font_size (int size) |
Set the font size of the current text. | |
~CCNoterWindow () | |
Destructor for CCNoterWindow. | |
CCNoterWindow provides a simple notepad window with basic text formatting.
This class represents the main window of the CCNoter application, offering functionality for editing rich text, adjusting font size, and toggling bold/italic styles.
CCNoterWindow::CCNoterWindow | ( | QWidget * | parent = nullptr | ) |
Constructor for CCNoterWindow.
parent | The parent widget. |
void CCNoterWindow::set_font_size | ( | int | size | ) |
Set the font size of the current text.
size | The desired font size. |