MattyNotes
mattygroupbox.h
Go to the documentation of this file.
1 #ifndef MATTYGROUPBOX_H
2 #define MATTYGROUPBOX_H
3 
4 #ifdef _MSC_VER
5 #pragma once
6 #endif // _MSC_VER
7 
8 #include <QGroupBox>
9 #include <QLabel>
10 #include <QSpacerItem>
11 #include <QPushButton>
12 #include <QHBoxLayout>
13 #include <QVBoxLayout>
14 #include <QGridLayout>
15 #include <QWidget>
16 
17 #include "mattynote.h"
18 
20  public QGroupBox
21 {
22  Q_OBJECT
23 public:
24  MattyGroupBox(const class MattyNote & ThisNote = MattyNote(), QWidget* parent = 0);
25 
27 
28  void hideNote();
29  void expandNote();
30  void changeExpandHideMode();
31 
32 private:
33  void buildFrame();
34  void fillFrame(const class MattyNote & ThisNote);
35  QLabel* NoteTypeLabel;
38  QLabel* NoteTextLabel;
39  QSpacerItem* horizontalSpacer_1;
40  QSpacerItem* horizontalSpacer_2;
41  QSpacerItem* verticalSpacer;
42  QPushButton* editNoteButton;
43  QPushButton* deleteNoteButton;
44  QHBoxLayout* horizontalLayout_1;
45  QHBoxLayout* horizontalLayout_2;
46  QVBoxLayout *verticalLayout;
47  QGridLayout *gridLayout;
49 
51  void mouseDoubleClickEvent(QMouseEvent * e);
52  //void mousePressEvent(QMouseEvent * e);
53 
54  private slots:
55  void deleteNote();
56  void editNote();
57 };
58 
59 #endif // MATTYGROUPBOX_H
Definition: mattygroupbox.h:19
void fillFrame(const class MattyNote &ThisNote)
Definition: mattygroupbox.cpp:21
void changeExpandHideMode()
Definition: mattygroupbox.cpp:62
void buildFrame()
Definition: mattygroupbox.cpp:76
QLabel * NoteCrTimeAndDateLabel
Definition: mattygroupbox.h:36
void editNote()
Definition: mattygroupbox.cpp:176
QPushButton * editNoteButton
Definition: mattygroupbox.h:42
void hideNote()
Definition: mattygroupbox.cpp:50
QWidget * horizontalLineWidget
Definition: mattygroupbox.h:48
QGridLayout * gridLayout
Definition: mattygroupbox.h:47
QHBoxLayout * horizontalLayout_1
Definition: mattygroupbox.h:44
void expandNote()
Definition: mattygroupbox.cpp:56
QLabel * NoteTypeLabel
Definition: mattygroupbox.h:35
void mouseDoubleClickEvent(QMouseEvent *e)
Definition: mattygroupbox.cpp:201
class MattyNote ThisGroupBoxNote
Definition: mattygroupbox.h:50
~MattyGroupBox()
Definition: mattygroupbox.cpp:46
QLabel * NoteEventTimeAndDateLabel
Definition: mattygroupbox.h:37
MattyGroupBox(const class MattyNote &ThisNote=MattyNote(), QWidget *parent=0)
Definition: mattygroupbox.cpp:11
QVBoxLayout * verticalLayout
Definition: mattygroupbox.h:46
QSpacerItem * verticalSpacer
Definition: mattygroupbox.h:41
QLabel * NoteTextLabel
Definition: mattygroupbox.h:38
QSpacerItem * horizontalSpacer_2
Definition: mattygroupbox.h:40
void deleteNote()
Definition: mattygroupbox.cpp:188
QSpacerItem * horizontalSpacer_1
Definition: mattygroupbox.h:39
QPushButton * deleteNoteButton
Definition: mattygroupbox.h:43
Definition: mattynote.h:11
QHBoxLayout * horizontalLayout_2
Definition: mattygroupbox.h:45