Ignore:
Timestamp:
Dec 10, 2009, 3:01:11 AM (10 years ago)
Author:
sven
Message:
  • Fixed more bugs
  • Cardeditor is now capable of writing text live using Codecs
  • Toolbars for Cardeditor, Codec changing menu
  • etc...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • punch-card/punch-card-editor/src/app/decktexteditor.h

    r47 r48  
    44#include <QPlainTextEdit>
    55#include <QDockWidget>
     6#include <QSharedPointer>
    67
    78class TextEditorDock;
     
    1617
    1718        EditorWindow* main;
    18         QPunchCard::Codec* codec;
    1919        DeckTextEditor* editor;
     20        QWidget* code_bar;
     21        QWidget* color_bar;
    2022public:
    2123        TextEditorDock(EditorWindow* parent);
    2224
     25private:
     26        void create_code_bar();
     27        void create_color_bar();
     28
    2329public slots:
    2430        void setCard(DeckIndex i);
     31        void setCodec(QString by_name);
     32        void showTextConverterDialog();
    2533
    2634signals:
     
    3240        Q_OBJECT
    3341
    34         EditorWindow* main;
     42        QPointer<EditorWindow> main;
     43        QSharedPointer<const Codec> codec;
     44        friend class TextEditorDock;
    3545
    3646public:
     
    5363        void numberAreaPaintEvent(NumberArea* area, QPaintEvent* event);
    5464        QSize numberAreaSize(const NumberArea* area) const;
     65        bool translateBlock(const QTextBlock& block);
    5566
    5667public slots:
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License