#/******************************************************************************
#* qt-recordMyDesktop *
#*******************************************************************************
#* *
#* Copyright (C) 2007 John Varouhakis *
#* *
#* *
#* This program is free software; you can redistribute it and/or modify *
#* it under the terms of the GNU General Public License as published by *
#* the Free Software Foundation; either version 2 of the License, or *
#* (at your option) any later version. *
#* *
#* This program is distributed in the hope that it will be useful, *
#* but WITHOUT ANY WARRANTY; without even the implied warranty of *
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
#* GNU General Public License for more details. *
#* *
#* You should have received a copy of the GNU General Public License *
#* along with this program; if not, write to the Free Software *
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
#* *
#* *
#* *
#* For further information contact me at johnvarouhakis@gmail.com *
#******************************************************************************/
from PyQt4 import QtGui,QtCore
import locale, gettext
import rmdConfig
def _(s):
return QtCore.QString.fromUtf8(gettext.gettext(s))
def htmlize(s):
return "<html><body>"+s.replace("\n","<br>")+"</html></body>"
gettext.textdomain('qt-recordMyDesktop')
gettext.bindtextdomain('qt-recordMyDesktop',rmdConfig.locale_install_dir)
import os,sys
from rmdTrayIcon import *
import rmdPrefsWidget as pW
import rmdSelectThumb as sT
from rmdStrings import *
class simpleWidget(object):
hidden=[0]
options=None
optionsOpen=[0]
def __subWidgets__(self):
self.labelbox=QtGui.QVBoxLayout()
self.NBox=QtGui.QHBoxLayout()
self.NEBox=QtGui.QVBoxLayout()
self.NEVQBox=QtGui.QHBoxLayout()
self.NESQBox=QtGui.QHBoxLayout()
self.NETABox=QtGui.QVBoxLayout()
self.NWBox=QtGui.QVBoxLayout()
self.NBox.insertLayout(-1,self.NWBox)
self.NBox.insertSpacing(-1,20)
self.NBox.insertLayout(-1,self.NEBox)
self.NEBox.insertLayout(-1,self.NEVQBox)
self.NEBox.insertLayout(-1,self.NESQBox)
self.NEBox.insertSpacing(-1,10)
self.NEBox.insertLayout(-1,self.NETABox)
self.SBox=QtGui.QHBoxLayout()
self.SEBox=QtGui.QHBoxLayout()
self.SWBox=QtGui.QHBoxLayout()
self.SBox.insertLayout(-1,self.SWBox)
self.SBox.insertStretch(-1,0)
self.SBox.insertLayout(-1,self.SEBox)
self.labelbox.insertLayout(-1,self.NBox)
self.labelbox.insertLayout(-1,self.SBox)
self.image=sT.QtThumbSelector(self.window,self,self.values[5],self.hidden)
self.NWBox.insertWidget(-1,self.image)
self.NWBox.setGeometry(QtCore.QRect(0,0,self.image.width(),self.image.height()))
#quality
self.v_quality=QtGui.QSlider(self.window)
self.v_quality.setMaximum(100)
self.v_quality.setMinimum(0)
self.v_quality.setTracking(True)
self.v_quality.setValue(int(round((float(self.values[10])*100.0)/63.0)))
self.v_quality.setOrientation(QtCore.Qt.Horizontal)
self.s_button= QtGui.QCheckBox(self.window)
if self.values[2]:
self.s_button.setCheckState(QtCore.Qt.Checked)
else:
self.s_button.setCheckState(QtCore.Qt.Unchecked)
self.s_quality=QtGui.QSlider(self.window)
self.s_quality.setMaximum(100)
self.s_quality.setMinimum(0)
self.s_quality.setTracking(True)
self.s_quality.setValue(int(round(float(self.values[11])*10.0)))
self.s_quality.setOrientation(QtCore.Qt.Horizontal)
self.s_quality.setEnabled(self.values[2])
self.v_label=QtGui.QLabel(" "+smplLabelStrings[0],self.window)
self.s_label=QtGui.QLabel(smplLabelStrings[1],self.window)
self.advanced_button=QtGui.QPushButton(smplButtonStrings[0],self.window)
self.tipLabel=QtGui.QLabel(smplTipLabelStrings[0],self.window)
self.NEVQBox.insertWidget(-1,self.v_label)
self.NEVQBox.insertWidget(-1,self.v_quality)
self.NESQBox.insertWidget(-1,self.s_button)
self.NESQBox.insertWidget(-1,self.s_label)
self.NESQBox.insertWidget(-1,self.s_quality)
self.NETABox.insertWidget(-1,self.advanced_button)
self.NETABox.insertWidget(-1,self.tipLabel)
style=QtGui.QApplication.style()
icon_rec_pxm=QtGui.QPixmap(os.path.join(rmdConfig.pixmapdir,"qt-recordmydesktop_record.png"))
self.win_button=QtGui.QPushButton(smplButtonStrings[1],self.window)
self.start_button=QtGui.QPushButton(QtGui.QIcon(icon_rec_pxm),smplStrings['Record'],self.window)
self.file_button=QtGui.QPushButton(QtGui.QIcon(style.standardPixmap(QtGui.QStyle.SP_DialogSaveButton)),smplStrings['SaveAs'],self.window)
self.quit_button=QtGui.QPushButton(QtGui.QIcon(style.standardPixmap(QtGui.QStyle.SP_DialogCloseButton)),smplStrings['Quit'],self.window)
self.SWBox.insertWidget(-1,self.win_button)
self.SWBox.insertWidget(-1,self.start_button)
self.SEBox.insertWidget(-1,self.file_button)
self.SEBox.insertWidget(-1,self.quit_button)
self.win_button.show()
self.start_button.show()
self.file_button.show()
self.quit_button.show()
self.v_quality.show()
self.s_button.show()
self.s_quality.show()
self.v_label.show()
self.s_label.show()
self.tipLabel.show()
self.advanced_button.show()
self.window.setLayout(self.labelbox)
def __tooltips__(self):
self.win_button.setToolTip(htmlize(smplTooltipLabels[0]))
self.start_button.setToolTip(htmlize(smplTooltipLabels[1]))
self.file_button.setToolTip(htmlize(smplTooltipLabels[2]))
self.quit_button.setToolTip(htmlize(smplTooltipLabels[3]))
self.v_quality.setToolTip(htmlize(smplTooltipLabels[4]))
self.v_label.setToolTip(htmlize(smplTooltipLabels[4]))
self.s_button.setToolTip(htmlize(smplTooltipLabels[5]))
self.s_quality.setToolTip(htmlize(smplTooltipLabels[6]))
self.s_label.setToolTip(htmlize(smplTooltipLabels[6]))
self.advanced_button.setToolTip(htmlize(smplTooltipLabels[7]))
def __exit__(self,Event=None):
if self.exited==0:
self.update()
self.exited=1
self.optionsOpen[0]=0
if self.save_prefs()==False:
print "Warning!!!Couldn't save preferences"
sys.exit()
def hide(self,Event=None):
if self.image.realFrame != None and self.values[25]==0:
self.image.realFrame.window.hide()
self.window.hide()
self.hidden[0]=1
def show(self,Event=None):
if self.image.realFrame != None and self.values[25]==0:
self.image.realFrame.window.show()
self.window.show()
self.hidden[0]=0
def __swap_visibility__(self,event=None):
if event.type()==QtCore.QEvent.WindowStateChange:
没有合适的资源?快使用搜索试试~ 我知道了~
Qt桌面屏幕录像软件
3星 · 超过75%的资源 需积分: 50 32 下载量 31 浏览量
2017-06-13
10:20:27
上传
评论 3
收藏 193KB GZ 举报
温馨提示
共70个文件
po:14个
py:11个
in:7个
支持跨平台使用,linux等 源代码
资源推荐
资源详情
资源评论
收起资源包目录
qt-recordmydesktop-0.3.7.tar.gz (70个子文件)
qt-recordmydesktop-0.3.7
po
sv.po 17KB
LINGUAS 45B
fr.po 17KB
pl.po 15KB
ca.po 16KB
it.po 17KB
el.po 22KB
es.po 17KB
de.po 16KB
POTFILES.in 156B
Makevars 2KB
pt.po 14KB
Makefile.in.in 6KB
ru.po 18KB
pt_BR.po 17KB
ar.po 16KB
tr.po 15KB
ChangeLog 530B
ja.po 15KB
mkinstalldirs 2KB
py-compile 2KB
m4
as-version.m4 2KB
pychecker.mk 2KB
as-python.m4 7KB
common.mk 476B
python.mk 307B
Makefile.am 148B
Makefile.in 8KB
py-compile-destdir 4KB
as-ac-expand.m4 1KB
aclocal.m4 58KB
config.guess 44KB
Makefile.am 164B
config.sub 32KB
src
rmdConfig.py 2KB
qt-recordmydesktop.desktop 283B
rmdTrayPopup.py 3KB
rmdMonitor.py 5KB
rmdStrings.py 8KB
qt-recordmydesktop_record.svg 6KB
qt-recordmydesktop.svg 4KB
qt-recordmydesktop.png 5KB
Makefile.am 1010B
__init__.py 7B
qt-recordmydesktop_stop.png 402B
rmdConfig.py.in 2KB
Makefile.in 13KB
qt-recordmydesktop_record.png 1KB
rmdTrayIcon.py 14KB
rmdSelectThumb.py 8KB
qt-recordMyDesktop.in 2KB
qt-recordmydesktop_pause.png 350B
qt-recordmydesktop_stop.svg 8KB
rmdSelect.py 4KB
qt-recordmydesktop_pause.svg 10KB
rmdSimple.py 21KB
rmdPrefsWidget.py 17KB
rmdFrame.py 5KB
README 2KB
Makefile.in 19KB
INSTALL 900B
missing 10KB
install-sh 7KB
AUTHORS 318B
configure 208KB
NEWS 0B
ChangeLog 2KB
config.rpath 15KB
COPYING 18KB
configure.ac 2KB
共 70 条
- 1
资源评论
- mynameislinduan2018-04-02不是C++的,看样子是python的,不是我要的,所以没有编译
嵌伏者
- 粉丝: 9
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功