~daniel-sonck/arduinostudio/devel

« back to all changes in this revision

Viewing changes to codeeditor.h

  • Committer: Daniel Sonck
  • Date: 2012-02-05 01:14:01 UTC
  • Revision ID: daniel.sonck@ziggo.nl-20120205011401-4eni52huptny3woa
TheĀ initialĀ version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef CODEEDITOR_H
 
2
#define CODEEDITOR_H
 
3
 
 
4
#include "ui_codeeditor.h"
 
5
#include "sketchobject.h"
 
6
#include <Qsci/qscilexercpp.h>
 
7
 
 
8
class TextInput;
 
9
 
 
10
class CodeEditor : public QWidget, private Ui::CodeEditor {
 
11
    Q_OBJECT
 
12
 
 
13
    SketchObject *m_object;
 
14
 
 
15
    QsciLexerCPP m_stdLexer;
 
16
 
 
17
    TextInput *m_nameEditor,*m_sourceNameEditor;
 
18
public:
 
19
    CodeEditor(QWidget *parent = 0);
 
20
    CodeEditor(SketchObject * object,QWidget *parent = 0);
 
21
 
 
22
protected:
 
23
    void changeEvent(QEvent *e);
 
24
 
 
25
private slots:
 
26
    void on_m_toolAdd_clicked();
 
27
    void on_actionSave_triggered();
 
28
 
 
29
//    void extraSourceCountChange(int count);
 
30
    void extraSourceNew(int count);
 
31
 
 
32
    void nameChanged(QString name);
 
33
};
 
34
 
 
35
#endif // CODEEDITOR_H