Skip to content
This repository was archived by the owner on Aug 9, 2025. It is now read-only.

Commit 1ff98a8

Browse files
author
Jan Drabek
committed
* Initial commit
0 parents  commit 1ff98a8

27 files changed

+1958
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ImageGuess

Icons.qrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<RCC>
2+
<qresource prefix="/toolbars">
3+
<file>images/open-folder.png</file>
4+
<file>images/close-folder.png</file>
5+
<file>images/quit.png</file>
6+
<file>images/go-next.png</file>
7+
<file>images/go-previous.png</file>
8+
<file>images/go-last.png</file>
9+
<file>images/go-first.png</file>
10+
<file>images/unhide.png</file>
11+
<file>images/view-fullscreen.png</file>
12+
</qresource>
13+
</RCC>

ImageGuess

91.3 KB
Binary file not shown.

ImageGuess.pro

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# -------------------------------------------------
2+
# Project created by QtCreator 2010-06-12T15:23:14
3+
# -------------------------------------------------
4+
QT += multimedia
5+
TARGET = ImageGuess
6+
TEMPLATE = app
7+
SOURCES += main.cpp \
8+
mainwindow.cpp \
9+
helpdialog.cpp
10+
HEADERS += mainwindow.h \
11+
helpdialog.h
12+
FORMS += mainwindow.ui \
13+
helpdialog.ui
14+
TRANSLATIONS += po/imageguess_cs_CZ.ts
15+
CODECFORTR = UTF-8
16+
RESOURCES += Icons.qrc
17+
OTHER_FILES += TODO \
18+
README

ImageGuess.pro.user

Lines changed: 533 additions & 0 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 255 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,255 @@
1+
#############################################################################
2+
# Makefile for building: ImageGuess
3+
# Generated by qmake (2.01a) (Qt 4.6.3) on: ne 6 13 14:01:32 2010
4+
# Project: ImageGuess.pro
5+
# Template: app
6+
# Command: /usr/bin/qmake -spec /usr/share/qt/mkspecs/linux-g++-64 -unix -o Makefile ImageGuess.pro
7+
#############################################################################
8+
9+
####### Compiler, tools and options
10+
11+
CC = gcc
12+
CXX = g++
13+
DEFINES = -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
14+
CFLAGS = -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT $(DEFINES)
15+
CXXFLAGS = -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT $(DEFINES)
16+
INCPATH = -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtMultimedia -I/usr/include -I. -I.
17+
LINK = g++
18+
LFLAGS = -m64 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-O1
19+
LIBS = $(SUBLIBS) -L/usr/lib -lQtMultimedia -lQtGui -lQtCore -lpthread
20+
AR = ar cqs
21+
RANLIB =
22+
QMAKE = /usr/bin/qmake
23+
TAR = tar -cf
24+
COMPRESS = gzip -9f
25+
COPY = cp -f
26+
SED = sed
27+
COPY_FILE = $(COPY)
28+
COPY_DIR = $(COPY) -r
29+
STRIP = strip
30+
INSTALL_FILE = install -m 644 -p
31+
INSTALL_DIR = $(COPY_DIR)
32+
INSTALL_PROGRAM = install -m 755 -p
33+
DEL_FILE = rm -f
34+
SYMLINK = ln -f -s
35+
DEL_DIR = rmdir
36+
MOVE = mv -f
37+
CHK_DIR_EXISTS= test -d
38+
MKDIR = mkdir -p
39+
40+
####### Output directory
41+
42+
OBJECTS_DIR = ./
43+
44+
####### Files
45+
46+
SOURCES = main.cpp \
47+
mainwindow.cpp \
48+
helpdialog.cpp moc_mainwindow.cpp \
49+
moc_helpdialog.cpp \
50+
qrc_Icons.cpp
51+
OBJECTS = main.o \
52+
mainwindow.o \
53+
helpdialog.o \
54+
moc_mainwindow.o \
55+
moc_helpdialog.o \
56+
qrc_Icons.o
57+
DIST = /usr/share/qt/mkspecs/common/g++.conf \
58+
/usr/share/qt/mkspecs/common/unix.conf \
59+
/usr/share/qt/mkspecs/common/linux.conf \
60+
/usr/share/qt/mkspecs/qconfig.pri \
61+
/usr/share/qt/mkspecs/features/qt_functions.prf \
62+
/usr/share/qt/mkspecs/features/qt_config.prf \
63+
/usr/share/qt/mkspecs/features/exclusive_builds.prf \
64+
/usr/share/qt/mkspecs/features/default_pre.prf \
65+
/usr/share/qt/mkspecs/features/release.prf \
66+
/usr/share/qt/mkspecs/features/default_post.prf \
67+
/usr/share/qt/mkspecs/features/warn_on.prf \
68+
/usr/share/qt/mkspecs/features/qt.prf \
69+
/usr/share/qt/mkspecs/features/unix/thread.prf \
70+
/usr/share/qt/mkspecs/features/moc.prf \
71+
/usr/share/qt/mkspecs/features/resources.prf \
72+
/usr/share/qt/mkspecs/features/uic.prf \
73+
/usr/share/qt/mkspecs/features/yacc.prf \
74+
/usr/share/qt/mkspecs/features/lex.prf \
75+
/usr/share/qt/mkspecs/features/include_source_dir.prf \
76+
ImageGuess.pro
77+
QMAKE_TARGET = ImageGuess
78+
DESTDIR =
79+
TARGET = ImageGuess
80+
81+
first: all
82+
####### Implicit rules
83+
84+
.SUFFIXES: .o .c .cpp .cc .cxx .C
85+
86+
.cpp.o:
87+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
88+
89+
.cc.o:
90+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
91+
92+
.cxx.o:
93+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
94+
95+
.C.o:
96+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
97+
98+
.c.o:
99+
$(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
100+
101+
####### Build rules
102+
103+
all: Makefile $(TARGET)
104+
105+
$(TARGET): ui_mainwindow.h ui_helpdialog.h $(OBJECTS)
106+
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
107+
108+
Makefile: ImageGuess.pro /usr/share/qt/mkspecs/linux-g++-64/qmake.conf /usr/share/qt/mkspecs/common/g++.conf \
109+
/usr/share/qt/mkspecs/common/unix.conf \
110+
/usr/share/qt/mkspecs/common/linux.conf \
111+
/usr/share/qt/mkspecs/qconfig.pri \
112+
/usr/share/qt/mkspecs/features/qt_functions.prf \
113+
/usr/share/qt/mkspecs/features/qt_config.prf \
114+
/usr/share/qt/mkspecs/features/exclusive_builds.prf \
115+
/usr/share/qt/mkspecs/features/default_pre.prf \
116+
/usr/share/qt/mkspecs/features/release.prf \
117+
/usr/share/qt/mkspecs/features/default_post.prf \
118+
/usr/share/qt/mkspecs/features/warn_on.prf \
119+
/usr/share/qt/mkspecs/features/qt.prf \
120+
/usr/share/qt/mkspecs/features/unix/thread.prf \
121+
/usr/share/qt/mkspecs/features/moc.prf \
122+
/usr/share/qt/mkspecs/features/resources.prf \
123+
/usr/share/qt/mkspecs/features/uic.prf \
124+
/usr/share/qt/mkspecs/features/yacc.prf \
125+
/usr/share/qt/mkspecs/features/lex.prf \
126+
/usr/share/qt/mkspecs/features/include_source_dir.prf \
127+
/usr/lib/libQtMultimedia.prl \
128+
/usr/lib/libQtGui.prl \
129+
/usr/lib/libQtCore.prl
130+
$(QMAKE) -spec /usr/share/qt/mkspecs/linux-g++-64 -unix -o Makefile ImageGuess.pro
131+
/usr/share/qt/mkspecs/common/g++.conf:
132+
/usr/share/qt/mkspecs/common/unix.conf:
133+
/usr/share/qt/mkspecs/common/linux.conf:
134+
/usr/share/qt/mkspecs/qconfig.pri:
135+
/usr/share/qt/mkspecs/features/qt_functions.prf:
136+
/usr/share/qt/mkspecs/features/qt_config.prf:
137+
/usr/share/qt/mkspecs/features/exclusive_builds.prf:
138+
/usr/share/qt/mkspecs/features/default_pre.prf:
139+
/usr/share/qt/mkspecs/features/release.prf:
140+
/usr/share/qt/mkspecs/features/default_post.prf:
141+
/usr/share/qt/mkspecs/features/warn_on.prf:
142+
/usr/share/qt/mkspecs/features/qt.prf:
143+
/usr/share/qt/mkspecs/features/unix/thread.prf:
144+
/usr/share/qt/mkspecs/features/moc.prf:
145+
/usr/share/qt/mkspecs/features/resources.prf:
146+
/usr/share/qt/mkspecs/features/uic.prf:
147+
/usr/share/qt/mkspecs/features/yacc.prf:
148+
/usr/share/qt/mkspecs/features/lex.prf:
149+
/usr/share/qt/mkspecs/features/include_source_dir.prf:
150+
/usr/lib/libQtMultimedia.prl:
151+
/usr/lib/libQtGui.prl:
152+
/usr/lib/libQtCore.prl:
153+
qmake: FORCE
154+
@$(QMAKE) -spec /usr/share/qt/mkspecs/linux-g++-64 -unix -o Makefile ImageGuess.pro
155+
156+
dist:
157+
@$(CHK_DIR_EXISTS) .tmp/ImageGuess1.0.0 || $(MKDIR) .tmp/ImageGuess1.0.0
158+
$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/ImageGuess1.0.0/ && $(COPY_FILE) --parents mainwindow.h helpdialog.h .tmp/ImageGuess1.0.0/ && $(COPY_FILE) --parents Icons.qrc .tmp/ImageGuess1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp helpdialog.cpp .tmp/ImageGuess1.0.0/ && $(COPY_FILE) --parents mainwindow.ui helpdialog.ui .tmp/ImageGuess1.0.0/ && $(COPY_FILE) --parents po/imageguess_cs_CZ.ts .tmp/ImageGuess1.0.0/ && (cd `dirname .tmp/ImageGuess1.0.0` && $(TAR) ImageGuess1.0.0.tar ImageGuess1.0.0 && $(COMPRESS) ImageGuess1.0.0.tar) && $(MOVE) `dirname .tmp/ImageGuess1.0.0`/ImageGuess1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/ImageGuess1.0.0
159+
160+
161+
clean:compiler_clean
162+
-$(DEL_FILE) $(OBJECTS)
163+
-$(DEL_FILE) *~ core *.core
164+
165+
166+
####### Sub-libraries
167+
168+
distclean: clean
169+
-$(DEL_FILE) $(TARGET)
170+
-$(DEL_FILE) Makefile
171+
172+
173+
check: first
174+
175+
mocclean: compiler_moc_header_clean compiler_moc_source_clean
176+
177+
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
178+
179+
compiler_moc_header_make_all: moc_mainwindow.cpp moc_helpdialog.cpp
180+
compiler_moc_header_clean:
181+
-$(DEL_FILE) moc_mainwindow.cpp moc_helpdialog.cpp
182+
moc_mainwindow.cpp: mainwindow.h
183+
/usr/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp
184+
185+
moc_helpdialog.cpp: helpdialog.h
186+
/usr/bin/moc $(DEFINES) $(INCPATH) helpdialog.h -o moc_helpdialog.cpp
187+
188+
compiler_rcc_make_all: qrc_Icons.cpp
189+
compiler_rcc_clean:
190+
-$(DEL_FILE) qrc_Icons.cpp
191+
qrc_Icons.cpp: Icons.qrc \
192+
images/open-folder.png \
193+
images/close-folder.png \
194+
images/quit.png \
195+
images/go-previous.png \
196+
images/view-fullscreen.png \
197+
images/go-next.png \
198+
images/go-first.png \
199+
images/go-last.png \
200+
images/unhide.png
201+
/usr/bin/rcc -name Icons Icons.qrc -o qrc_Icons.cpp
202+
203+
compiler_image_collection_make_all: qmake_image_collection.cpp
204+
compiler_image_collection_clean:
205+
-$(DEL_FILE) qmake_image_collection.cpp
206+
compiler_moc_source_make_all:
207+
compiler_moc_source_clean:
208+
compiler_uic_make_all: ui_mainwindow.h ui_helpdialog.h
209+
compiler_uic_clean:
210+
-$(DEL_FILE) ui_mainwindow.h ui_helpdialog.h
211+
ui_mainwindow.h: mainwindow.ui
212+
/usr/bin/uic mainwindow.ui -o ui_mainwindow.h
213+
214+
ui_helpdialog.h: helpdialog.ui
215+
/usr/bin/uic helpdialog.ui -o ui_helpdialog.h
216+
217+
compiler_yacc_decl_make_all:
218+
compiler_yacc_decl_clean:
219+
compiler_yacc_impl_make_all:
220+
compiler_yacc_impl_clean:
221+
compiler_lex_make_all:
222+
compiler_lex_clean:
223+
compiler_clean: compiler_moc_header_clean compiler_rcc_clean compiler_uic_clean
224+
225+
####### Compile
226+
227+
main.o: main.cpp mainwindow.h
228+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
229+
230+
mainwindow.o: mainwindow.cpp mainwindow.h \
231+
ui_mainwindow.h \
232+
helpdialog.h
233+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
234+
235+
helpdialog.o: helpdialog.cpp helpdialog.h \
236+
ui_helpdialog.h
237+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o helpdialog.o helpdialog.cpp
238+
239+
moc_mainwindow.o: moc_mainwindow.cpp
240+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
241+
242+
moc_helpdialog.o: moc_helpdialog.cpp
243+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_helpdialog.o moc_helpdialog.cpp
244+
245+
qrc_Icons.o: qrc_Icons.cpp
246+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qrc_Icons.o qrc_Icons.cpp
247+
248+
####### Install
249+
250+
install: FORCE
251+
252+
uninstall: FORCE
253+
254+
FORCE:
255+

README

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
README
2+
---------------------------------------------------------------
3+
4+
Installation

Resources.qrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<RCC>
2+
<qresource prefix="/mainMenuToolbar"/>
3+
</RCC>

TODO

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
TODOs
2+
--------------------------------------------------------------------------
3+
4+
* Solve "hiding" of menubar better (menubar->hide() disable all shortcuts)
5+
* Edge problem - image is visible with certain windows sizes

helpdialog.cpp

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#include "helpdialog.h"
2+
#include "ui_helpdialog.h"
3+
4+
HelpDialog::HelpDialog(QWidget *parent) :
5+
QDialog(parent),
6+
ui(new Ui::HelpDialog)
7+
{
8+
this->setModal(true);
9+
ui->setupUi(this);
10+
// Set transparent background to the help content
11+
ui->textEdit->setStyleSheet("background: transparent;");
12+
}
13+
14+
HelpDialog::~HelpDialog()
15+
{
16+
delete ui;
17+
}
18+
19+
void HelpDialog::changeEvent(QEvent *e)
20+
{
21+
QDialog::changeEvent(e);
22+
switch (e->type()) {
23+
case QEvent::LanguageChange:
24+
ui->retranslateUi(this);
25+
break;
26+
default:
27+
break;
28+
}
29+
}
30+
31+
void HelpDialog::on_close_clicked()
32+
{
33+
this->close();
34+
}

0 commit comments

Comments
 (0)