[운영체제] 임베디드 프로젝트(Qt 제어 예제를 응용하여 야구게임)
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
해당 자료는 10페이지 까지만 미리보기를 제공합니다.
10페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

[운영체제] 임베디드 프로젝트(Qt 제어 예제를 응용하여 야구게임)에 대한 보고서 자료입니다.

목차

1. 연구개발의 필요성
2. 연구개발 목표
3. 연구개발 내용 및 범위
4. 추진전략 및 방법
5. 연구 결과
6. 기대성과 및 활용방안
7. 연구원 편성표
8. 주요 연구기자재
9. 연구추진 일정 및 계획

첨부 : 소스코드

본문내용

l == 0)
{
printf("Out!\n");
data[0] = 0xff; write(fd, data, 1);
line->setText("Out!!");
}
return 0;
}
int main(int argc, char **argv)
{
QApplication app(argc, argv); //widget뛰우기
Baseball base;
app.setMainWidget(&base);
base.show();
#if 1
if(init_CS2() < 0 ){
printf("CS2 Init error\n");
return -1;
}
#endif
if ((fd = open("/dev/led", O_RDWR|O_SYNC)) < 0) {
printf("Cannot Open the LED device file (/dev/led)\n"); return -1;
}
else printf("LED device driver open OK\n");
return app.exec();
}
Baseball.h
#ifndef BASEBALL_H
#define BASEBALL_H
#include
#include
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QButtonGroup;
class QCheckBox;
class QGroupBox;
class QLabel;
class QLineEdit;
class QPushButton;
class Baseball : public QWidget
{
Q_OBJECT
public:
Baseball( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~Baseball();
QGroupBox* ball;
QCheckBox* ball_1;
QCheckBox* ball_2;
QCheckBox* ball_3;
QLineEdit* line;
QGroupBox* strike;
QCheckBox* strike_1;
QCheckBox* strike_2;
QCheckBox* strike_3;
QLabel* TextLabel1;
QPushButton* button_exit;
QPushButton* button_restart;
QButtonGroup* ButtonGroup1;
QPushButton* button_5;
QPushButton* button_6;
QPushButton* button_0;
QPushButton* button_8;
QPushButton* button_4;
QPushButton* button_7;
QPushButton* button_2;
QPushButton* button_3;
QPushButton* button_9;
QPushButton* button_1;
protected:
bool event( QEvent* );
public slots:
void btn_click(int);
void restart_click();
public:
void init();
int compare_num();
void init_num();
};
#endif // BASEBALL_H
Makefile
####### Compiler, tools and options
CC=arm-linux-gcc
CXX=arm-linux-g++
CFLAGS=-pipe -Wall -W -O2 -DNO_DEBUG
CXXFLAGS=-pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG
INCPATH=-I$(QTDIR)/include
LINK=arm-linux-g++
LFLAGS=
LIBS=$(SUBLIBS) -L$(QTDIR)/lib -lqte
MOC=$(QTDIR)/bin/moc
UIC=$(QTDIR)/bin/uic
TAR=tar -cf
GZIP=gzip -9f
####### Files
HEADERS =baseball.h
SOURCES =baseball.cpp
OBJECTS =baseball.o
INTERFACES =
UICDECLS =
UICIMPLS =
SRCMOC=moc_baseball.cpp
OBJMOC=moc_baseball.o
DIST=
TARGET=baseball
INTERFACE_DECL_PATH = .
####### Implicit rules
.SUFFIXES: .cpp .cxx .cc .C .c
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
####### Build rules
all: $(TARGET)
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
moc: $(SRCMOC)
tmake: Makefile
Makefile: baseball.pro
tmake baseball.pro -o Makefile
dist:
$(TAR) baseball.tar baseball.pro $(SOURCES) $(HEADERS) $(INTERFACES) $(DIST)
$(GZIP) baseball.tar
clean:
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET)
-rm -f *~ core
####### Compile
baseball.o: baseball.cpp \
baseball.h
moc_baseball.o: moc_baseball.cpp \
baseball.h
moc_baseball.cpp: baseball.h
$(MOC) baseball.h -o moc_baseball.cpp
  • 가격3,000
  • 페이지수33페이지
  • 등록일2010.06.15
  • 저작시기2009.1
  • 파일형식한글(hwp)
  • 자료번호#619602
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니